Lists files and directories in the current directory.
Example: ls
Changes the current working directory.
Example: cd /home/user/Documents
Prints the current working directory.
Example: pwd
Creates a new directory.
Example: mkdir new_directory
Removes an empty directory.
Example: rmdir empty_directory
Removes files or directories.
Example: rm file.txt
or rm -r directory
Creates a new empty file.
Example: touch new_file.txt
Copies files or directories.
Example: cp file.txt new_file.txt
or cp -r directory new_directory
Moves or renames files or directories.
Example: mv file.txt new_file.txt
or mv directory new_directory
Displays the contents of a file.
Example: cat file.txt
Allows you to view the contents of a file one page at a time.
Example: less file.txt
Displays the first few lines of a file.
Example: head file.txt
Displays the last few lines of a file.
Example: tail file.txt
Searches for a pattern in a file.
Example: grep "pattern" file.txt
Finds files or directories that match specific criteria.
Example: find /home/user -name "*.txt"
Displays information about running processes.
Example: ps aux
Sends a signal to terminate a process.
Example: kill PID
Changes the permissions of a file or directory.
Example: chmod 755 file.txt
Changes the owner of a file or directory.
Example: chown user:group file.txt
Archives files into a tarball.
Example: tar -czvf archive.tar.gz file1.txt file2.txt
Extracts files from a zip archive.
Example: unzip archive.zip
Displays information about system processes and resource usage.
Example: top
Displays information about memory usage.
Example: free -m
Displays information about disk space usage.
Example: df -h
Displays information about disk usage for specific directories.
Example: du -sh /home/user/Documents
Checks connectivity to a network host.
Example: ping google.com
Securely connects to a remote server.
Example: ssh user@server
Copies files securely between hosts.
Example: scp file.txt user@server:/path/to/destination
Retrieves data from a URL.
Example: curl https://www.example.com
Downloads files from the internet.
Example: wget https://www.example.com/file.txt
Manages software packages on Debian-based systems.
Example: apt update && apt upgrade
Manages software packages on Red Hat-based systems.
Example: yum update
Manages system services on systemd-based systems.
Example: systemctl start service
Displays system logs.
Example: journalctl -xe
Displays information about network interfaces.
Example: ifconfig
Displays and configures IP addresses, routes, and tunnels.
Example: ip addr show
Displays and configures network routing.
Example: route -n
Displays information about network connections and socket usage.
Example: netstat -an
Manages firewall rules.
Example: iptables -A INPUT -p tcp --dport 22 -j ACCEPT
Displays or sets the hostname of the system.
Example: hostname
Displays information about the Linux kernel.
Example: uname -a
Displays the current date and time.
Example: date
Displays the name of the current user.
Example: whoami
Switches to another user account.
Example: su - user
Executes a command as another user with elevated privileges.
Example: sudo command
Adds a new user account.
Example: adduser new_user
Changes the password for a user account.
Example: passwd user
Modifies user account properties