Newest 2026-2027 Complete 600 Questions And
Correct Detailed Answers (Verified Answers) Already
Graded A+ Brand New Version!!
_________schedules jobs for later execution, but jobs are executed as soon as the system load
permits. - CORRECT ANSWER: batch
:!cmd - CORRECT ANSWER: Runs cmd command and returns to Command Mode
:.w build.sql - CORRECT ANSWER: Writes current line to file build.sql
:$w build.sql - CORRECT ANSWER: Writes last line to file build.sql
:3,10w build.sql - CORRECT ANSWER: Writes lines 3 to 10 to file build.sql
:e note1 - CORRECT ANSWER: Stops editing current file and edits file note1
:e! - CORRECT ANSWER: Loads last saved edition of current file (Like Revert in Microsoft
Windows)
:e# - CORRECT ANSWER: Returns to editing most recently edited file
:n1,n2w build.sql - CORRECT ANSWER: Writes lines n1 to n2 to file build.sql
:q - CORRECT ANSWER: Quits editing mode when no changes are made to file
,:q! - CORRECT ANSWER: Quits editing mode after abandoning changes
:sh - CORRECT ANSWER: Escapes to UNIX shell (use exit to return to vi)
:w - CORRECT ANSWER: Saves file and remains in editing mode
:w n2w.pl - CORRECT ANSWER: Like Save As ..... in Microsoft Windows
:w! n2w.pl - CORRECT ANSWER: Like Save As ..... in Microsoft Windows, but overwrites
existing file
:wq - CORRECT ANSWER: Saves file and quits editing mode
:x - CORRECT ANSWER: Saves file and quits editing mode
!(flname) - CORRECT ANSWER: All except flname (Korn and Bash)
!(flname1|flname2) - CORRECT ANSWER: All except flname1 and flname2 (Korn and Bash)
? - CORRECT ANSWER: A single character
[!ijk] - CORRECT ANSWER: A single character that is NOT an i, j, or k (Not in C shell)
[Ctrl-z] - CORRECT ANSWER: Suspends current foreground job
[Ctrl-z] - CORRECT ANSWER: Suspends current session and escapes to UNIX shell (only for
shells supporting job control; use fg to return to vi)
,[ijk] - CORRECT ANSWER: A single character - either an I, j, or k
[x-z] - CORRECT ANSWER: A single character within the ASCII range of the characters x and
z
{pat1,pat2,...} - CORRECT ANSWER: pat1, pat2, etc. (Not in Bourne shell)
* - CORRECT ANSWER: Any number of characters including none
/dev/null - CORRECT ANSWER: Quite often, especially in shell programming, you'll want to
check whether a program runs successfully without seeing its output or saving it to a file
/dev/null accepts any stream without growing in size (a.k.a., "the bit bucket")
/dev/tty - CORRECT ANSWER: Indicates one's terminal
Make no mistake: This is not the file that represents the standard output or standard error
Commands generally don't write to this file, but you'll be required to redirect some statements in
shell scripts to this file
~ - CORRECT ANSWER: acts as a shorthand representation of the home directory
$ kill -9 $$ - CORRECT ANSWER: $$ stores PID of current shell
$ kill -9 121 - CORRECT ANSWER: not recommended way of using kill
$ kill -s KILL 0 - CORRECT ANSWER: kills all processes, including the login shell
, $ kill -s KILL 121 - CORRECT ANSWER: recommended way of using kill
$_ - CORRECT ANSWER: signifies the last argument to the previous command
2.1 Enter a : and press [Enter]. Next run type :. What do you conclude? - CORRECT ANSWER:
The : must be a command that does nothing. The command type : indicates that the command is
built into the shell.
2.2 UNIX commands must be in lowercase and must not have extensions. True or false? -
CORRECT ANSWER: False, you can use uppercase and provide extensions to command
filenames, although convention follows the opposite
2.3 Name three UNIX commands whose names are more than five characters long. - CORRECT
ANSWER: printf, script, and passwd.
2.4 Find out whether these commands are internal or external: echo, date, pwd, and ls. -
CORRECT ANSWER: echo and pwd are internal commands; date and ls are external.
2.5 If two commands with the same filename exist in two directories in PATH, how can they be
executed? - CORRECT ANSWER: The command that occurs first in the PATH list would
require no special treatment. The other command needs to be used with a pathname.
2.6 How is the current directory indicated in PATH? - CORRECT ANSWER: With a dot.
2.7 How many options are there in this command? ls -lut chap01 note3 - CORRECT ANSWER:
Three.
2.8 If you find yourself using options preceded by two hyphens (like --all), which flavor of
UNIX could you be using? - CORRECT ANSWER: Linux.