Basic Commands Flashcards
Runlevel
-determines which level machine is running on
Init 0-6
-whole server action
0 - Halt (sleep mode) 1 - Single-user mode (safe) 2 - Multi-user mode w/out networking $3 - Multi-user mode w/ networking$ 4 - NO FUNCTION 5 - Graphic User Interface (GUI) 6 - Reboot
Chkconfig
- sees all services running
- Chkconfig (service) on/off (turns service on/off at startup)
- Chkconfig | grep service (checks particular run levels of service)
- Chkconfig –level (run level[s]) on/off (turns particular run levels on/off for selected service)
Fg
-brings the most recent job to foreground
bg
-lists stopped or background jobs; resumes a stopped job in the background
Ln -s FILE LINK
-create a symbolic LINK to FILE
Pwd
-show current directory
Ls -al
-formatted listings w/ hidden files
gzip -d FILE.gz
-decompressed FILE.gz back to FILE
Ctrl +r
-bring up a recent command
Ctrl +u
-erases the whole line
Ctrl +w
-erases one word in the current line
Ctrl +d
-log out of current session (like “exit” command)
Ctrl +c
-halts the current command
Ctrl +l
Clear
-erase all
More FILE
-output the contents of FILE
!!
-repeats the last command
Ssh-copy-id USER@HOST
-add your key to HOST for USER to enable a keyed or password-less login
W
-display who is online
Finger USER
-display information about USER