-
Notifications
You must be signed in to change notification settings - Fork 0
[EN] Basic Linux Commands
This guide is intended for people who are starting to use the Linux terminal. The Linux terminal is a command-line interface that provides access to the operating system through commands. It is widely used by developers, system administrators, and people who want to automate tasks.
Before you start using the commands, you need to open the terminal. The terminal can be opened from the Applications menu or by using the keyboard shortcut (Ctrl + Alt + T in many distributions).
One of the most common tasks in the terminal is to navigate the file system. The ls (list) command displays all the files and directories within the current directory:
ls
To switch to another directory, use the cd (change directory) command, followed by the directory name:
cd directory_name
To go back to the previous directory, use the cd .. command:
cd ..
To create a new directory, use the mkdir (make directory) command, followed by the directory name:
mkdir directory_name
To delete a directory, use the rmdir (remove directory) command, followed by the directory name:
rmdir directory_name
To create a new file, use the touch command, followed by the file name:
touch file_name
To delete a file, use the rm (remove) command, followed by the file name:
To view the content of a file, use the cat command, followed by the file name:
cat file_name
To search for files and directories, use the find command, followed by the file or directory name and the path to be searched:
find file_name path