LINUX Flashcards
What is the command to get a list of all users?
ls /home
What is the command to get all the binaries that must be contained in a single user mode?
ls /bin
What is the command to get all the system binaries?
ls /sbin
What is the command to get all the configuration files?
ls /etc
What is the command to get the essential shared libraries?
ls /lib
What is the command to get the optional add-ons?
ls /opt
What is the command to get the processes files?
ls /proc
What is the command to get to the special or device files?
ls /dev
What is the command to get to the temporary lading place for files?
ls /tmp
What is the command to get to the files used in booting the operating system?
ls /boot
What is the command used by the system administrator, when installing software locally?
ls /usr
What is the command used to get to the variable data files?
ls /var
What is the command used to run linux programs, that contains program data and installation instructions?
ls /run
What is the command to access the subdirectories where removable media devices, inserted into a computer are mounted?
ls /media
What is the command to display a list of everything in a directory?
ls
What is the command to get a long list?
ls -l
What is the command to get a list in a table format?
ls -t
What is the command to get a list in a readable format?
ls -r
What is the command to get a list of all the hidden directories?
ls -a
What is the command to create a directory?
mkdir
What is the code to change directory?
cd
What is the code to take us out of present working directory (pwd) back just one step?
cd ..
What is the command to create multiple directories at once?
mkdir (directory 1) (directory 2) …(directory n)
where n is any positive integer greater than 0
What is the command to go all the way back to the home user?
cd
or
cd ~
What is the command to clear the screen of all commands?
clear
or
CTRL+ L on the keyboard
What is the command to create a txt file?
touch (filename)
What is the command to go into a txt file to edit it?
vi (file name)
Once the file opens, press i on the keyboard to enter INSERT MODE
When done with typing, press ESC on the keyboard to come out of INSERT MODE
Then press :wq! to save and exit or :q! to exit without saving.
What is the command to delete a file?
rm
What is the command to delete an empty directory?
rmdir
What is the command to delete a directory that isn’t empty?
rm -r
What is the command to forcefully remove a directory?
rm - f