ACTUAL Exam Questions and CORRECT
Answers
ls (linux) - CORRECT ANSWER - list files in directory; current directory is used if no
directory is supplied
cd (Linux) - CORRECT ANSWER - Change the current working directory
pwd (linux) - CORRECT ANSWER - Print the current working directory
cp (linux) - CORRECT ANSWER - copy a file
mv (linux) - CORRECT ANSWER - Move or rename a file
rm (linux) - CORRECT ANSWER - Delete a file
mkdir (linux) - CORRECT ANSWER - Create a directory
rmdir (linux) - CORRECT ANSWER - Delete a directory
cat (linux) - CORRECT ANSWER - Print one or more files to STDOUT
grep (linux) - CORRECT ANSWER - Search for text within a file or STDIN
File (linux) - CORRECT ANSWER - Identify the file type
, Head (linux) - CORRECT ANSWER - Display the first 10 lines of a file
Tail (linux) - CORRECT ANSWER - Display the last 10 lines of a file
Tail -F (linux) - CORRECT ANSWER - Display new data a it is appended to the end of a
file (useful for watching logs)
less (linux) - CORRECT ANSWER - Display text from STDIN or a file one screen at a
time
ps (linux) - CORRECT ANSWER - Display a list of running processes
lsof (linux) - CORRECT ANSWER - Display a list of open files
netstat (linux) - CORRECT ANSWER - Display TCP & UDP connection info
ifconfig (linux) - CORRECT ANSWER - Display information about your network
interfaces, such as your IP address
su (linux) - CORRECT ANSWER - Temporarily switch to a different user Root is used of
no username is specified
sort (linux) - CORRECT ANSWER - Sort the contents of a file or STDIN
uniq (linux) - CORRECT ANSWER - Remove duplicate lines form a sorted file or sorted
STDIN
chmod (linux) - CORRECT ANSWER - Change the permissions (mode) of a file or
directory