Linux Flashcards
Displays the path of the current directory on screen.
pwd (print working directory)
Displays the IP address and the subnet mask assigned to this system.
ifconfig
Displays a list of files and subdirectories that exist within a directory.
- a (displays all files, including hidden files)
- l (displays a detailed (long) listing of directory contents)
- R (displays the contents of the directory and all of its subdirectories)
ls
Displays a brief summary of how to use the command.
–help
Starts a new Bourne-again shell session.
bash
Displays the manual page for a command. Use Q key to quit and go back to the shell prompt.
man
Displays more extensive documentation about the command.
info
Changes directories in the file system.
cd
Copies files and directories from one location in the file system to another.
cp
Moves and/or renames files and directories form one location or name to another.
mv
Deletes files and directories form the file system.
rm
Displays the contents of a text file on the screen.
cat
Displays the contents of a text file on the screen, pausing the output one screen at a time.
less
Displays the first few lines of a text file on the screen.
head
Displays the last few lines of a text file on the screen.
tail
Edits the contents of a text file. Uses four different operating modes: Command mode Command-line mode Insert mode Replace mode
vi
Allows you to switch user accounts.
su
Shuts down or reboots the system in a secure manner.
+m (specifies when to perform the shutdown operation. m is the amount of time in minutes)
-h (instructs the system to shut down and power down)
-r (instructs the system to reboot after the shutdown)
-p (powers off the machine)
message (specifies a message that is sent to all users that accompanies the standard shutdown notification.
shutdown