QUESTIONS COMPLETE WITH
CORRECT ANSWERS
\Q\.LS - ANSWERS✔-list files in current directory
\Q\.pwd - ANSWERS✔-print the path of the current working directory
\Q\.clear - ANSWERS✔-clear whatever was being displayed to the terminal
\Q\.date - ANSWERS✔-prints the current date and time
\Q\.passwd - ANSWERS✔-change the password of the current user
\Q\.ls -l - ANSWERS✔-list more information on files in the current directory
\Q\.ls -a - ANSWERS✔-show all the files in the directory including the hidden files
\Q\.ls file - ANSWERS✔-shows the file named file if it exists
\Q\.exit - ANSWERS✔-exits the current shell instance, logging out if none left
\Q\.What is argc? - ANSWERS✔-Number of arguments (short for argument
,count)
\Q\.What is argv? - ANSWERS✔-this is an array of C strings, one string per
command line argument.
\Q\.echo - ANSWERS✔-prints its command line arguments
\Q\.more - ANSWERS✔-show content of file, page by page
\Q\.logout - ANSWERS✔-logout from system
\Q\.who - ANSWERS✔-displays who is on the system
\Q\.script - ANSWERS✔-make record of the terminal session
\Q\.uname - ANSWERS✔-print current OS detail(version etc)
\Q\.man - ANSWERS✔-find and display system manual pages
\Q\./ - ANSWERS✔-Root directory, top most directory in any UNIX file structure
\Q\.~ - ANSWERS✔-Home directory. Directory owned by user, default location when user logs in
\Q\.. - ANSWERS✔-current dirrectory, default location for working with files
, \Q\... - ANSWERS✔-Parent irectory immediately above the current directory
\Q\.Absolute path - ANSWERS✔-traces a pth from root to a file or a directory. Always beings
with the root (/) directory.
EXAMPLE: /home/student/Desktop/assign1.txt
\Q\.Relative path - ANSWERS✔-a path that begins at the current working directory, no initial
forward flash(/).
EXAMPLE: Desktop/assign1.txt
\Q\.mkdir - ANSWERS✔-make a new directory
\Q\.cd - ANSWERS✔-change directory
\Q\.rmdir - ANSWERS✔-Removes an empty directory
\Q\.rmdir -r - ANSWERS✔-Removes a directory that contains files
\Q\.ls -t - ANSWERS✔-shows files sorted by time stamp
\Q\.ls -S - ANSWERS✔-shows files sorted by file size
\Q\.ls -r - ANSWERS✔-shows files in reverse sorted order
\Q\.cp [source] [target] - ANSWERS✔-to copy
source - is one or more paths for items to copy