Common Linux Commands1 View Linux version 1.1 view Linux kernel version uname-r or uname-a1.2 view the specific version number of Linux cat/proc/version1.3 view the hostname of the Linux system hostname 2 start or shut down the FTP service Service vsftp start 3 View Linux hard disk size Df-lh4 view the Linux memory size free5 See the number of CPUs ls/proc/acpi/processor see information about CPUs CAT/PROC/CPU Info6 View the absolute path of the current directory Pwd7 terminal shut down Firewall service iptables stop-----------------------------------------------Linux system VI editor VI TE ST//Edit test file contents Esc key +:+q! Launch VI interface 8 How to solve the Linux system display garbled problem (1) View Current user command WhoAmI if not root, first switch to root user, the command is: su-root//user and Shell environment both become root (su is the switch use R switch User) su root//simply switches the root identity, but the shell environment is still a normal user's Shell (2) Edit vi Config file environment variable VI/ECT/VIMRC
ESC key +wq! Save content and Launch VI 9 How to view hard disk size commands df-h 10 real-time monitoring Linux system command top provides real-time monitoring of the Linux system's CPU, memory, swap space, and disk IO usage. If you want to stop real-time monitoring, you can use CTRL + C key combination to terminate.
Linux common commands and some common problems