Commands
Command List
Explain Linux/Unix commands
Search Commands
apt
Package management tool for Debian-based Linux distributions.
apt-file
Search for files within packages in the APT package management system.
awk
Pattern scanning and text processing language for manipulating structured data.
basename
Extract the filename or directory name from a pathname.
break
Exits from a for, while, until, or select loop in shell scripts.
case
Performs conditional branching based on pattern matching in shell scripts.
cat
Concatenate and display file contents to standard output.
chgrp
Change the group ownership of files and directories.
chmod
Change file mode bits (permissions) for files and directories.
chsh
Change the login shell for a user.
cmp
Compare two files byte by byte.
continue
Resume a suspended job by bringing it to the foreground.
cp
Copy files and directories from source to destination.
curl
Transfer data from or to a server using various protocols.
cut
Extract selected portions of each line from files.
date
Display or set the system date and time.
dd
Convert and copy files with block-level operations.
df
Display disk space usage for file systems.
diff
Compare files line by line.
diff3
Compare three files line by line.
dig
Query DNS name servers for domain information.
dirname
Output the directory portion of a pathname.
dmesg
Display or control the kernel ring buffer, showing system messages and hardware information.
docker
Manage Docker containers, images, networks, and volumes.
docker-build
Build an image from a Dockerfile.
docker-compose
Define and run multi-container Docker applications.
docker-run
Creates and starts a new container from an image.
dpkg
Package management tool for Debian-based systems that handles installation, removal, and information about .deb packages.
du
Estimate file space usage for directories and files.
echo
Display a line of text or variables to standard output.
egrep
Search for patterns using extended regular expressions.
env
Display the current environment variables or run a command in a modified environment.
eval
Evaluate and execute arguments as shell commands.
expr
Evaluate expressions and output the result.
false
Return a successful exit status (0) regardless of input.
ffmpeg
Multimedia file converter and processor for audio, video, and other media files.
file
Determine file type by examining file contents.
find
Search for files in a directory hierarchy.
for
Execute a command for each item in a list.
free
Display amount of free and used memory in the system.
function
Define shell functions for later execution.
gdb
Debug programs interactively with the GNU Debugger.
getent
Retrieves entries from administrative databases.
getopt
Parse command-line options in shell scripts.
git
Distributed version control system for tracking changes in source code during software development.
git-add
Add file contents to the index (staging area) for the next commit.
git-branch
List, create, or delete branches in a Git repository.
git-commit
Record changes to the repository by saving staged content as a new commit.
git-merge
Combines changes from different branches into the current branch.
git-pull
Fetch from and integrate with another repository or a local branch.
git-push
Update remote refs along with associated objects.
git-rebase
Reapply commits on top of another base tip, rewriting the commit history.
git-reset
Reset current HEAD to the specified state.
git-stash
Temporarily stores modified, tracked files to save changes without committing.
git-switch
Switch branches or restore working tree files.
gpasswd
Administers /etc/group and /etc/gshadow by modifying group memberships and properties.
grep
Search for patterns in files.
groupadd
Create a new group on the system.
groupdel
Delete a group from the system.
groupmod
Modify a group definition on the system.
groups
Display the groups a user belongs to.
gunzip
Decompress files compressed with gzip.
gzip
Compress or expand files using the gzip algorithm.
hd
Display file contents in hexadecimal, decimal, octal, or ASCII format.
head
Display the first part of files.
host
DNS lookup utility for querying domain name servers.
hostname
Display or set the system’s hostname.
http
Send arbitrary HTTP requests and display responses.
if
Evaluates conditional expressions and executes commands based on the result.
imagemagick
Create, edit, compose, or convert digital images with a comprehensive suite of command-line tools.
install
Copy files and set attributes.
iostat
Display CPU and I/O statistics for devices and partitions.
iotop
Monitor I/O usage by processes on the system.
ip
Network configuration tool for managing interfaces, routing, and addresses.
ipcs
Display information about active IPC facilities (shared memory segments, message queues, and semaphores).
journalctl
Query and display messages from the systemd journal.
jq
Process and transform JSON data with a lightweight command-line processor.
kill
Terminate or send signals to processes.
killall
Terminates processes by name rather than by process ID.
[
Evaluates conditional expressions and returns a status based on the evaluation.
less
Display text files in a scrollable interface with search capabilities.
ln
Create links between files.
ls
List directory contents.
lsof
Lists open files and the processes that opened them.
ltrace
Trace library calls of a program.
mkdir
Create directories with specified names.
mkfifo
Create named pipes (FIFOs) with specified names.
more
Display file contents one screen at a time.
mv
Move (rename) files and directories.
nc
Create and manage network connections for data transfer, port scanning, and network debugging.
od
Display file contents in various formats, primarily octal, decimal, or hexadecimal.
openssl
Manage cryptographic functions including certificate creation, encryption, and secure connections.
pandoc
Universal document converter that transforms files between markup formats.
passwd
Change user password.
patch
Apply a diff file to an original file or files.
perf
Performance analysis tool for Linux, providing hardware counter statistics and tracing capabilities.
ping
Send ICMP ECHO_REQUEST packets to network hosts to verify connectivity.
printf
Format and print data according to a specified format string.
ps
Display information about active processes.
pstack
Print a stack trace of running processes.
pstree
Display running processes as a tree.
pwd
Print the full pathname of the current working directory.
readlink
Print the resolved symbolic links or canonical file names.
realpath
Print the resolved absolute file path.
rg
Search for patterns in files using regular expressions, with support for recursive directory traversal.
rm
Remove files or directories from the filesystem.
rmdir
Remove empty directories from the filesystem.
rsync
Synchronize files and directories between local and remote systems or between local directories.
scp
Securely copy files between hosts on a network using SSH for data transfer.
script
Make a typescript of a terminal session.
sed
Stream editor for filtering and transforming text.
seq
Print a sequence of numbers.
set
Display or set shell options and positional parameters.
sftp
Securely transfer files between hosts over an encrypted SSH connection.
shift
Shifts positional parameters in shell scripts, removing the first parameter and renumbering the remaining ones.
sleep
Suspends execution for a specified amount of time.
sort
Sort lines of text files.
source
Execute commands from a file or script in the current shell environment.
split
Split a file into pieces.
ss
Display socket statistics, providing information about network connections.
ssh
Securely connect to remote systems over an encrypted network connection.
ssh-add
Adds private key identities to the OpenSSH authentication agent.
ssh-agent
Authentication agent for SSH private keys that holds keys in memory to avoid repeated passphrase entry.
ssh-copy-id
Installs your public key in a remote machine’s authorized_keys file to enable passwordless SSH authentication.
ssh-keygen
Generate, manage, and convert authentication keys for SSH.
stat
Display file or file system status information.
stdbuf
Modify buffering operations for standard streams.
strace
Trace system calls and signals for a process.
su
Switch user identity or become another user.
sudo
Execute a command as another user, typically with elevated privileges.
sudoedit
Edit files securely as another user, typically root.
systemctl
Control the systemd system and service manager.
tail
Display the last part of files.
tar
Manipulate tape archives by creating, extracting, listing, or updating files in archive format.
tcpdump
Capture and analyze network traffic on a system.
tee
Read from standard input and write to both standard output and files.
top
Display and update sorted information about processes.
touch
Create or update file timestamps.
tr
Translate or delete characters from standard input, writing to standard output.
tree
Display directory contents in a hierarchical tree structure.
true
Return a successful exit status (0).
truncate
Shrink or extend the size of a file to a specified size.
uname
Print system information about the operating system.
uniq
Filter adjacent matching lines from input, or report unique lines.
unlink
Remove a single file.
until
Execute a command repeatedly until a condition is met.
unzip
Extract files from ZIP archives.
update-alternatives
Manages symbolic links determining default commands in the alternatives system.
update-locale
Configure system locale settings by updating /etc/default/locale.
visudo
Edit the sudoers file safely with syntax checking.
vmstat
Report virtual memory statistics.
w
Display information about users currently logged in and their processes.
wc
Count lines, words, and bytes in files.
wget
Download files from the web via HTTP, HTTPS, and FTP protocols.
which
Locate a command’s executable file in the user’s PATH.
while
Execute commands repeatedly as long as a condition is true.
whoami
Display the effective user ID of the current user.
xargs
Execute commands using arguments from standard input.
xdg-mime
Query or set file type associations in desktop environments.
xdg-open
Opens a file or URL in the user’s preferred application.
yes
Output a string repeatedly until killed.
zip
Create or update ZIP archives by compressing files and directories.