Welcome to the Linux Commands Tutorial! Below you will find a list of essential Linux commands that are commonly used in daily operations. These commands can help you navigate, manage files, and perform various tasks on your Linux system.
Navigation
cd
: Change directory.cd /
: Go to the root directory.cd ~
: Go to your home directory.
pwd
: Print working directory.ls
: List files and directories.ls -l
: Detailed list of files and directories.ls -a
: List all files, including hidden ones.
mkdir
: Make directory.mkdir my_directory
: Create a new directory named "my_directory".
rmdir
: Remove directory.rmdir my_directory
: Remove the directory named "my_directory".
cd ..
: Go up one directory level.
File Management
cp
: Copy files and directories.cp file.txt /path/to/destination/
: Copy "file.txt" to the specified destination.
mv
: Move or rename files and directories.mv file.txt /path/to/destination/
: Move "file.txt" to the specified destination.
rm
: Remove files and directories.rm file.txt
: Remove the file named "file.txt".
cat
: Concatenate files and display them on the screen.cat file.txt
: Display the contents of "file.txt".
less
: View files in a pager.less file.txt
: View "file.txt" in a pager.
System Information
hostname
: Display the name of the current host.uname
: Display system information.uname -a
: Display detailed system information.
date
: Display or set the system date and time.date
: Display the current date and time.date "new date"
: Set the system date and time to "new date".
System Management
top
: Display the running processes with the highest CPU usage.free
: Display the amount of free and used memory and swap space.df
: Display the amount of disk space used and available on Linux file systems.kill
: Terminate a process.kill -9 <PID>
: Forcefully terminate the process with the specified Process ID (PID).
For more information on Linux commands, you can visit our Linux Commands Reference.
Linux Commands