Here are some of the most commonly used Linux command-line interface (CLI) commands for managing files, directories, system processes, users, and more:
Keyboard Shortcut to Clear Terminal
You can use a keyboard shortcut to clear the terminal:
ls
– Lists files and directories.bash
Copy code
ls # Lists files in the current directory
ls -l # Lists files with details like permissions, ownership, and size
ls -a # Shows hidden files (files starting with a dot)
cd
– Changes the current directory.bash
Copy code
cd /path/to/directory # Navigates to a specific directory
cd ~ # Navigates to the home directory
cd .. # Moves up one directory level
pwd
– Prints the current working directory.bash
Copy code
pwd # Shows the full path of the current directory
mkdir
– Creates a new directory.bash
Copy code
mkdir new_directory # Creates a new directory named 'new_directory'
touch
– Creates a new Filetouch file_name # Creates a new file (CamelCaseSuggested)
rmdir
– Removes an empty directory.bash
Copy code
rmdir directory_name # Removes the specified empty directory