CLI Flashcards
CLI stands for ?
Command Line Interface.
” cat “ is used for ?
Type out or combine files.
” head “ is used for ?
Show the first few lines of a file.
” tail “ is used for ?
Show the last few lines of a file.
” man “ is used for ?
View the documentation.
The command is ?
The name of the program you are executing.
” sudo “ is used for ?
Provide user with administrative privileges.
Virtual Terminal is ?
Console sessions that use the entire display and keyboard outside of a graphical environment.
Virtual Terminal is helpful when ?
You run into problem with the graphical desktop. You can switch to VT and troubleshoot.
” shutdown -r “ is used for ?
Reboot the system.
To reboot the system, use command ?
shutdown -r
To cancel rebooting the system, use command ?
shutdown -c
The schedule shutting down the system ?
shutdown -h HH:mm “Message”
To locate program, use ?
” which “ or “ whereis “
i.e “which diff”, “whereis diff”
Display the current working directory ?
pwd
Change your current home directory ?
cd
Change to parent directory ?
cd ..
Change to previous directory ?
cd -
An absolute pathname is ?
Start with the root directory and follows the tree.
Always starts with /.
A relative pathname is ?
Start from the present working directory.
Never starts with /.
Displays a tree view of the filesystem ?
tree or tree -d
List all files, including hidden files and directories ?
ls -a
Create hard link from two files ?
ln file1 file2 (with file1 already exists)