Linux common commands and some common problems

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.