Linux cainiao must also know several basic ubuntu commands

Source: Internet
Author: User

Linux cainiao must also know several basic ubuntu commands 1: sudo should be one of the most common commands in linux, because you can temporarily obtain root permissions even if you are not a root user, for example, installing and uninstalling, changing the configuration of various services, and so on, remember that this 2: apt-get: apt is a software management tool under ubuntu, File Installation and uninstallation, for example, sudo apt-get install zhcon sudo apt-get remove zhcon3: cd: is the same as cd in cmd in wwindows. It is used to enter a path, for example: cd/etc4: ls: displays the File 5: grep filtering Command 6: ps in this directory to display the process, and-le is to display the information of all processes, often used with grep. For example, I installed wine on ubuntu and qq on wine, which often gets stuck, this command is useful at this time. First, find the wine process pidps-le | grep wine and then kill the process. 2518 25287: Check the kernel version, uname-a has requirements on the Linux kernel version because it is willing to write software. For example, the nw336v2 Nic I bought has a maximum driver support of 2.6 kernel while the ubuntu 12.04 kernel has reached 3.2, of course, 8: shutdown command: Sometimes gnome is dead, you have to go to the character interface to restart or shut down. There are a lot of commands for shutdown -- help. If it is too troublesome, use the poweroff command. sudo poweroff is neat and neat. 9: run the ifconfig command to check the network connection status, this command will list all your current network connection conditions. 10: If you only want to view and edit a text command, cat is used for the longest time, however, if you want to edit it, you need to use other tools. If you have installed gedit or gvim on the GUI, we strongly recommend that you install it, search in the attachment of the Software Center) Then you can use sudo gedit/etc/testsudo gvim/etc/test to edit files of non-users because sudo is used.

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.