50+ Linux Commands With Screenshots (Download PDF) 2
50+ Linux Commands With Screenshots (Download PDF) 2
DevOps Linux
# 5 minutes read
Introduction
Without a doubt, Linux is very prevalent and famous for
its powerful Linux commands. In order to employ Linux
effectively, all users must be aware of how to utilize
terminal commands. Although the Linux commands
operating system has a GUI (Graphical User Interface),
you can discover that various functionalities operate
faster when they are operated as commands via the
terminal. Thus, under this guide, we have provided
insights into the most basic commands of Linux one
must know while working on the Linux-based system.
Plunge into the segments below and acquire all the
details.
1. ls
It lists the files and directories in the current directory.
2. cd
Changes the current directory.
Syntax: cd [directory]
cd command
3. pwd
Shows the current working directory.
Syntax: pwd
pwd command
4. Mkdir
Creates a new directory.
Mkdir command
5. rmdir
Deletes an empty directory.
rmdir command
6. rm
Deletes a file or directory.
Syntax: rm [file/directory]
rm command
7. cp
Copies a file or directory.
cp command
8. mv
Moves or renames a file or directory.
mv command
9. touch
Creates a new empty file.
touch command
10. cat
Displays the contents of a file.
11. less
Displays the contents of a file one screen at a time.
12. head
Displays the first few lines of a file.
13. tail
Displays the last few lines of a file.
14. grep
Searches for a pattern in a file.
15. find
Searches for files in a directory hierarchy.
16. tar
Creates or extracts a compressed archive.
17. gzip
Compresses a file.
18. gunzip
Decompresses a compressed file.
19. bzip2
Compresses a file.
20. bunzip2
Decompresses a compressed file.
du
Shows the disk usage of files and directories.
df
Shows the disk space usage of filesystems.
Syntax: df [options]
top
Displays the current system status.
Syntax: top
ps
Lists the currently running processes.
Syntax: ps [options]
kill
Sends a signal to a process to terminate it.
ping
Tests the network connectivity to a host.
ifconfig
Configures network interfaces.
netstat
Shows network connections, routing tables, and
network statistics.
ssh
Connects to a remote host using SSH.
scp
Copies files securely between hosts using SSH.
ftp
Transfers files between hosts using FTP.
chmod
Changes the permissions of files and directories.
chown
Changes the owner of files and directories.
passwd
Changes the password of the current user.
su
Switches to another user account.
sudo
Executes a command with superuser privileges.