Basic Linux Commands Flashcards
Learn about some basic linux commands
Which command list directory contents?
ls
What is cd command for?
Changes the current directory
Which command displays the present working directory?
pwd
What is cat command for?
Concatenates and displays file contents
Which command displays arguments to the screen?
echo
What is man command for?
For displaying the documentation of a command
Which command clears the content shown in the shell?
clear
How do we navigate when using the man command?
Enter -> Move down one line Space -> Move down one page g -> Move to the top of the page G -> Move to the bottom of the page q -> Quit
Which command is use to locate where another command resides?
which / whereis
How can we see the content of an environment variable?
echo $ENV_NAME /
Which command is use to create a directory?
mkdir
Which command is use to remove a directory?
rmdir
What is the touch command for?
creating files or changing the modification date of existing ones.
How can we create files with cat?
cat > filename (you write something or just CTRL+C, and the file is created)
How can we see hidden files with ls?
ls -l or ll which is a common alias in Linux systems