iwconfig: Displays information about wireless network interfaces. Example:
iwconfig
shows the configuration of wireless network interfaces.chmod: Changes the permissions of files and directories. Example:
chmod 755 file.txt
changes the permissions of file.txt.chown: Changes the owner of files and directories. Example:
chown user:group file.txt
changes the owner and group of file.txt.chroot: Changes the root directory for a command. Example:
chroot /newroot /bin/bash
runs the /bin/bash command with /newroot as the root directory.tar: Archives files into a tarball. Example:
tar -cvf archive.tar file1 file2
creates an archive named archive.tar containing file1 and file2.gzip: Compresses files. Example:
gzip file.txt
compresses file.txt into file.txt.gz.gunzip: Decompresses files. Example:
gunzip file.txt.gz
decompresses file.txt.gz into file.txt.ps: Displays information about running processes. Example:
ps aux
shows a detailed list of all processes.kill: Terminates processes. Example:
kill PID
terminates the process with the specified PID.top: Displays real-time system information. Example:
top
shows a dynamic view of system processes and resource usage.df: Shows disk space usage. Example:
df -h
displays disk space usage in a human-readable format.du: Displays disk usage of files and directories. Example:
du -sh directory
shows the total disk usage of the directory in a human-readable format.free: Shows system memory usage. Example:
free -m
displays memory usage in megabytes.ln: Creates links to files. Example:
ln -s target link
creates a symbolic link named link pointing to the target.watch: Executes a command repeatedly and displays the output. Example:
watch -n 1 ls -l
executesls -l
every 1 second and displays the output.lsof: Lists open files and the processes that opened them. Example:
lsof /path/file
shows the processes that have the specified file open.ssh-keygen: Generates SSH keys for secure authentication. Example:
ssh-keygen -t rsa
generates an RSA SSH key pair.scp: Securely copies files between different hosts. Example:
scp file.txt user@remotehost:/path
copies file.txt to the specified path on the remote host.rsync: Synchronizes files and directories between two locations. Example:
rsync -avz source/ destination/
synchronizes the contents of the source directory with the destination directory.
awk: A powerful text processing tool for extracting and manipulating data within files. Example:
awk '{print $1}' file.txt
prints the first column of data in file.txt.sed: A stream editor for filtering and transforming text. Example:
sed 's/old/new/g' file.txt
replaces all occurrences of "old" with "new" in file.txt.find: Searches for files and directories based on specified criteria. Example:
find /path -name "file*.txt"
searches for files starting with "file" and ending with ".txt" in the specified path.locate: Quickly finds files by name. Example:
locate file.txt
locates the file named file.txt.history: Displays a list of previously executed commands. Example:
history | tail -n 10
shows the last 10 commands from the history.useradd: Adds a new user to the system. Example:
useradd newuser
adds a user named newuser.userdel: Deletes a user from the system. Example:
userdel olduser
deletes the user named olduser.passwd: Allows users to change their passwords. Example:
passwd
prompts the user to change their password.su: Switches to another user account. Example:
su - username
switches to the account of the specified username.sudo: Executes commands with superuser privileges. Example:
sudo command
executes the specified command with elevated permissions.chroot: Changes the root directory for a command. Example:
chroot /newroot /bin/bash
runs the /bin/bash command with /newroot as the root directory.tar: Archives files into a tarball. Example:
tar -cvf archive.tar file1 file2
creates an archive named archive.tar containing file1 and file2.gzip: Compresses files. Example:
gzip file.txt
compresses file.txt into file.txt.gz.gunzip: Decompresses files. Example:
gunzip file.txt.gz
decompresses file.txt.gz into file.txt.ps: Displays information about running processes. Example:
ps aux
shows a detailed list of all processes.kill: Terminates processes. Example:
kill PID
terminates the process with the specified PID.top: Displays real-time system information. Example:
top
shows a dynamic view of system processes and resource usage.df: Shows disk space usage. Example:
df -h
displays disk space usage in a human-readable format.du: Displays disk usage of files and directories. Example:
du -sh directory
shows the total disk usage of the directory in a human-readable format.free: Shows system memory usage. Example:
free -m
displays memory usage in megabytes.
Certainly! Here are 20 more commonly used Linux commands:
awk: A powerful text processing tool for extracting and manipulating data within files. Example:
awk '{print $1}' file.txt
prints the first column of data in file.txt.sed: A stream editor for filtering and transforming text. Example:
sed 's/old/new/g' file.txt
replaces all occurrences of "old" with "new" in file.txt.find: Searches for files and directories based on specified criteria. Example:
find /path -name "file*.txt"
searches for files starting with "file" and ending with ".txt" in the specified path.locate: Quickly finds files by name. Example:
locate file.txt
locates the file named file.txt.history: Displays a list of previously executed commands. Example:
history | tail -n 10
shows the last 10 commands from the history.useradd: Adds a new user to the system. Example:
useradd newuser
adds a user named newuser.userdel: Deletes a user from the system. Example:
userdel olduser
deletes the user named olduser.passwd: Allows users to change their passwords. Example:
passwd
prompts the user to change their password.su: Switches to another user account. Example:
su - username
switches to the account of the specified username.sudo: Executes commands with superuser privileges. Example:
sudo command
executes the specified command with elevated permissions.chroot: Changes the root directory for a command. Example:
chroot /newroot /bin/bash
runs the /bin/bash command with /newroot as the root directory.tar: Archives files into a tarball. Example:
tar -cvf archive.tar file1 file2
creates an archive named archive.tar containing file1 and file2.gzip: Compresses files. Example:
gzip file.txt
compresses file.txt into file.txt.gz.gunzip: Decompresses files. Example:
gunzip file.txt.gz
decompresses file.txt.gz into file.txt.ps: Displays information about running processes. Example:
ps aux
shows a detailed list of all processes.kill: Terminates processes. Example:
kill PID
terminates the process with the specified PID.top: Displays real-time system information. Example:
top
shows a dynamic view of system processes and resource usage.df: Shows disk space usage. Example:
df -h
displays disk space usage in a human-readable format.du: Displays disk usage of files and directories. Example:
du -sh directory
shows the total disk usage of the directory in a human-readable format.free: Shows system memory usage. Example:
free -m
displays memory usage in megabytes.