DEV Community

tShan
tShan

Posted on

Here's a list of some commonly used Linux commands:

Here's a list of some commonly used Linux commands:

ls - list the contents of a directory
cd - change the current working directory
pwd - print the current working directory
mkdir - create a new directory
rmdir - remove an empty directory
touch - create a new empty file
cat - concatenate and print the contents of files
echo - display a message or the contents of a variable
cp - copy files or directories
mv - move or rename files or directories
rm - remove files or directories
chmod - change the permissions of files or directories
chown - change the owner of a file or directory
man - display the manual page for a command
df - display disk usage information
du - estimate the disk space used by a file or directory
top - display information about the running processes
ps - display information about the currently running processes
kill - terminate a process
sudo - run a command with superuser privileges
apt-get - package manager for Debian-based systems
yum - package manager for Red Hat-based systems
pacman - package manager for Arch-based systems
ln - create a symbolic link
find - search for files that match specified criteria
grep - search for patterns in text files
sort - sort the contents of a file
uniq - remove duplicate lines from a file
wc - count the number of lines, words, or characters in a file
tar - create or extract compressed archive files
Enter fullscreen mode Exit fullscreen mode

This is by no means an exhaustive list, but it should give you a good starting point for exploring the world of Linux commands.

Top comments (0)