These is some commonly used Centos, Rocky (RHEL Linux) commands. You no need to learn more. They are enough to use.
Note:
- ↵: Enter
- <>: Something can change
- (): Note
Commonly used Linux (Rocky, Centos, RHEL) commands
- reboot ↵ (mean reboot system)
- systemctl restart <something> ↵ (restart a program)
- systemctl status <something> ↵ (watch working status of a program)
- systemctl stop <something> ↵ (stop a program)
- kill -9 <number of process ID> ↵ (kill a process by ID)
- date ↵ (show current time on machine)
- cp <source folder or file address> <destination folder> ↵ (copy file or folder)
- mv <source folder or file address> <destination folder> ↵ (move file or folder)
- cd <folder name or address, or nothing for current folder> ↵ (go to desk on that folder)
- ls -l <folder address> ↵ (listing files, folders on current folder with permission)
- rm -f <file name or address> ↵ (remove file)
- rm -rf <folder name, or address> ↵ (remove folder)
- mkdir <folder name, or address> ↵ (create folder)
- cat <file name, or address> ↵ (Show content of this file)
- vi <file name, or address> ↵ (Edit content of this file)
- curl <url> ↵ (Call an internet address by GET method and return body)
- wget <url> ↵ (download file from url to /root)
- chown -R username:groupname <file/folder name or address> ↵ (set Owner)
- chmod <number> <file/folder name or address> ↵ (set permission)