What are some common Linux commands?
There are many commonly used commands in Linux, and the following are some of the most common ones:
- List the files and directories in the current directory.
- cd: Change to the current working directory
- pwd: displays the path of the current working directory.
- Create a directory using mkdir.
- rm: delete files or directories
- cp: Copy file or directory
- mv: move files or directories
- Touch command is used to create an empty file or modify the timestamp of a file.
- cat: view the contents of a file.
- View the file content page by page.
- grep: search for specified string in a file
- Search for files or directories in the specified directory.
- Change the permissions of a file or directory.
- chown: change the owner of a file or directory
- chgrp: Change the group ownership of a file or directory.
- tar: compressing and decompressing files
- gzip: compressing files
- unzip: extract files
- top: display system resource usage information.
- Please check process information.
- terminate a process
- Ifconfig: displays and configures network interface information.
- ping: check network connectivity
- ssh: remotely log in to another computer.
- SCP is used to copy files between a local and remote computer.
- “Switch user”
- Run the command with superuser privileges using sudo.
- apt-get allows you to install, upgrade, or remove software packages on Debian or Ubuntu systems.
- yum: Install, upgrade, or remove software packages on CentOS or Red Hat systems.
These are just some commonly used commands in Linux systems, there are many other powerful commands that can be further learned and used as needed.