What is the purpose of /dev/null ? This is an empty file used as the filesystem
ID: 3803150 • Letter: W
Question
What is the purpose of /dev/null ?
This is an empty file used as the filesystem template for new files
This is a special directory used for source code development files
This file is a system device called a bit bucket which accepts input and does nothing with it.
This is a device file that maps to the zero key on the keyboard
QUESTION 3
You have a directory named "CIS003" that has some files in it. You want to delete the directory and all the contents. What command would you type?
rmdir CIS003
del -R CIS003/*
rm -r CIS003
rmdir -all CIS003
QUESTION 4
In most Unix command line interfaces, which key can you press to get to a previously typed command (command history)?
Shift + Enter
Up Arrow
ESC Key
Space Key
QUESTION 7
If your current working directory is /usr, which of the following commands would bring you to the /usr/bin directory? (there might be more than one right answer)
cd ..
cd /usr/bin
cd bin
cd ./bin
QUESTION 8
Which command is used to search the contents of a file for lines that contain a particular pattern?
grep
ls
tee
wc
QUESTION 10
You want to create a symbolic link named "docs" in your home directory that points to /usr/share/doc
What command would you type to create that symbolic link?
ln -s docs /usr/share/doc/
ln -s /usr/share/doc/ docs
ln /usr/share/doc/ -> docs
lnk -s /usr/share/doc/ .
QUESTION 14
Which of the following commands will bring you to your home directory (there might be more than one)?
cd
cd /
cd $HOME
cd ~
QUESTION 17
When using the vi text editor to edit a file, why can you just start typing away right after opening the file?
Vi takes a minute at startup to verify the file syntax.
Vi needs to be told if the file is ascii or binary after opening the file.
Vi starts in read-only mode by default.
Vi is a modal text editor, and is in command mode by default when first opened.
QUESTION 20
Which command would you type to view all connected filesystems in Unix?
lm -a
ls /
ps axm
mount
a.This is an empty file used as the filesystem template for new files
b.This is a special directory used for source code development files
c.This file is a system device called a bit bucket which accepts input and does nothing with it.
d.This is a device file that maps to the zero key on the keyboard
QUESTION 3
You have a directory named "CIS003" that has some files in it. You want to delete the directory and all the contents. What command would you type?
a.rmdir CIS003
b.del -R CIS003/*
c.rm -r CIS003
d.rmdir -all CIS003
Explanation / Answer
1) option a (This is an empty file used as the filesystem template for new files).
3) option c (rm -r CIS003) - where rm command deletes files and with option r deletes directiories and all files in it
4) oprtion b (uparrow) - when we want recently commands then we can use uparrow to get those commands.
7) option b and c - (cd /usr/bin and cd bin) - option b we are sending the absolute path of directory so it directly move to specified directory and option c assumes you are in /usr directory so it goes to bin folder inside of it.
8) option a (grep) - it is used to search for text in the files using regular expressions
10) option b (ln -s /usr/share/doc docs) - first is soucefile and second file is name you want to create shortcut
14) option a, c and d (cd , cd $HOME and cd ~) - these all commands can change you to home directory.
17) option d (Vi is a modal text editor, and is in command mode by default when first opened.)
20) option b (ls /) - to view all connected file systems in UNIX
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.