*COMMANDS* EXAM QUESTIONS AND
CORRECT ANSWERS
, alias - ANSWER*A shell function that allows you to substitute one command for
another*
~ syntax is alias < the created alias >="< desired command with arguments >"
apropos - ANSWER* User inputs a string, descriptions of binaries will be searched to
locate the name of an unknown program or command*
cat - ANSWER* Concatenate and print (display) the content of files *
cd - ANSWER* changes working directory to a different directory *
chage - ANSWER* changes a user's password expiration policy *
chgrp - ANSWER* Utility that changes the group membership of a file *
chkconfig - ANSWER* controls what services are started at which runlevels *
Run levels:
Level 0 - Halt Mode - Shuts down system
Level 1 - Single-User Mode - Does not configure network interfaces, start daemons, or
allow non-root logins
Level 2 - Multi-User Mode - Does not configure network interfaces or start daemons
Level 3 - Multi-User Mode with Networking - Starts the system normally
Level 4 - Mode Defined by User - Action Defined by User
Level 5 - X11 Mode - As runlevel 3 + display manager(X)
Level 6 - Reboot Mode - Reboots the systemontrol what services are started at which
runlevelsontrol what services are started at which runlevels
chmod - ANSWER*change permissions of a file*
+ugw
+rwx
chown - ANSWER* change ownership/group membership of a file *
~recursively changes files in directory -R
cp - ANSWER* copy a file or directory *