UrbanPro

Learn Linux from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is /dev/null in Unix?

Asked by Last Modified  

6 Answers

Learn Linux

Follow 6
Answer

Please enter your answer

Training Professional

/dev/null is the null file Is is a special file which contains nothing.
Comments

Linux Admin Trainer

/dev/null is a file. if we want to nullify something we can redirect the output to this file. Ex: find / -name linux >> /dev/null
Comments

Trainer

Its a file which stands for the null file or if i comoare it with windows OS,we can call it as a permanently deleting the file by pressing Shift+del key .
Comments

Linux Administration Certification and UNIX Shell Scripting

It is a bit bucket in Unix where you dump things you don't need. When you need to discard output from your command , you can redirect it to /dev/null. In Unix, an external device is treated as a file. All such devices are found as files in /dev directory. It is a Null device . Suppose you need to...
read more
It is a bit bucket in Unix where you dump things you don't need. When you need to discard output from your command , you can redirect it to /dev/null. In Unix, an external device is treated as a file. All such devices are found as files in /dev directory. It is a Null device . Suppose you need to search for a pattern, but do not need it to be displayed to the console, but need the exit code of the command, we can do grep pattern filename > /dev/null # search without displaying it to console. echo $? # exit code You can also redirect your standard error messages from a command to /dev/null as $cmd 2> /dev/null Here 2> represents standard error. /dev/null is the bit-bucket: the place where you dump anything you don't need. /dev/null is a special file-system object that throws away everything written into it. Redirecting a stream into it means hiding an output. read less
Comments

IT Professional Trainer with 13 Years of Experience

its an black hole you can send any junk data.
Comments

Programming Tutor

it is used to dispose off unwanted files or devices in Unix. it is a special file, not a directory, therefore, one cannot use mv command to move files in /dev/null.
Comments

View 4 more Answers

Related Questions

We are looking for IT Training for Online Training Could you please how i select them
First Of All Congratulations Raheem Your Decision is good . In order to select them you need to do One Main Thing Attend the Demo Sessions .
Raheem
0 0
8
What is openstack ?
OpenStack is open source platform for building and managing cloud computing platforms for public and private clouds in a cloud computing environment.
Vivek

I am having 5+ years exp in civil engineering now I am thinking to move in IT sector can u suggest me which field is better to learn ? I am thinking to do Linux+devops+aws or powerBi 

Hi Waseem, I am a Devops and cloud engineed since last approximatelt 4 years.Linux,DevOps (techniques and tools) and Cloud, all are very much intera-related. DevOps and Cloud both are burning needs in...
Waseem

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Linux File System
Linux File system: Right click on Desktop and click open interminal Login to Linux system and run simple commands: Check present Working Directory: $pwd /home/cloudera/Desktop Change Directory: $cd...

How To Start Shell Scripting?
Hi learners, I would like to share my knowledge in shell scripting: Every new Linux learners goal is to learn shell scripting. But only a few starts quickly writing the shell scripts.Why? The reasons...

LINUX - SETTING UP YUM REPOSITORY
If we buy RHEL 7 the system by default will be connected to Red Hat Network (RHN). All packages and updates will be installed from RHN. So RHN will be our main source and repository. Since we have...
A

Aseem .

1 0
0

Linux Syllabus
Part I Geting Familiar with Red Hat Enterprise Linux Chapter 1 Geting Started with Red Hat Enterprise Linux Linux, Open Source, and Red Hat Origins of Linux Distributions Fedora Red Hat Enterprise...

How to detect duplicate address manually in a network from Linux ?
Below script will help you to detect duplicate IP address in a subnet The key command is the arping command which will send out an ARP packet with DAD (duplicate address detection) If the return...

Recommended Articles

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Linux Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Linux Classes?

The best tutors for Linux Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Linux with the Best Tutors

The best Tutors for Linux Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more