What are some commonly used Linux system commands?
There are many commonly used Linux system commands, here are some of them:
- Change directory.
- List the contents of the directory.
- pwd: displays the path of the current working directory.
- mkdir: create directory
- rmdir: remove directory
- Create an empty file using touch command.
- rm: remove files or directories
- cp: copy files or directories
- mv: moving files or directories
- cat: View the contents of a file or concatenate the contents of a file to another file.
- View file content page by page.
- grep: Search for matching strings in a file.
- search for files in the file system
- Top: Displaying the processes and resource usage in the system.
- Display the processes of the current user.
- terminate a process
- Change the permissions of a file or directory using chmod.
- chown: change the owner of a file or directory
- change the group ownership of a file or directory
- tar: compressing and decompressing files
- compress files using gzip
- unzip: decompressing files
- SSH: Log in to a remote host using a secure encrypted connection.
- SCP: Copying files between a local host and a remote host.
- wget: download files from the internet
- ifconfig: View and configure network interface information.
- ping: testing the network connection with another host
- Netstat displays information about network connections, routing tables, and network interfaces.
- iptables: Setting up firewall rules
- systemctl: managing system services
This is just a small portion of common Linux commands; there are many other commands used for various purposes.