Linux common commands and Operations (second bomb)

Source: Internet
Author: User
Tags clear screen

Ctrl L Clear CTRL D close Terminal CTRL ALT T open terminal pwd View current directory Shift CTRL c copy Shift CTRL v Paste shift CTRL n open new Terminal F11 fullscreen (any) Cat view file contents rm-r Delete directory ls -L View detailed stat of all files view details of the specified file who view the online login user (tty1-6 is a text-based console, 7 is the X-window (graphics) console) WhoAmI view current operation user Ifconfig View network condition clear clear screen
Dpkg-l view so the packages that have been installed
Tar-   C archive file-   x compressed file-   z gzip compressed file   -j bzip2 compressed file-   v show compression or decompression process-   f Use file name   Tar-cvf/home/abc.tar/ HOME/ABC              only packaged, uncompressed   TAR-ZCVF/HOME/ABC.TAR.GZ/HOME/ABC        packaged, and gzip compressed   tar-jcvf/home/abc.tar.bz2/ HOME/ABC      Packaging, and bzip2 compression   of course, if you want to extract, you can directly replace the above command  TAR-CVF  /TAR-ZCVF     /TAR-JCVF "C" for "X".
Shutdown-     R shutdown Restart-     h shutdown does not restart     now shutdown halt shutdown reboot restart
Gedit. BASHRC Open User environment variable (note: User environment variable)
Vim uses VIM in three modes: Command mode, insert mode, edit mode, use ESC or I or: to toggle mode. Command mode:    : Q exit                                               : q!  Force exit:                                               Wq  Save and exit                                              : Set number Displays line numbers    : set Nonumber hidden line number    in command mode number +ESC is transferred to the specified beginning
RPM makes a package, this package file association is too large, installation is troublesome, this red Hat developed Yum installation method, as long as the configuration of two files can be installed, so that a software installation package
Tar to be compiled first in the installation (Red Hat system Centos,fedora, Hongqi) apt-get install (online install) and dpkg-i (install package) are to download the compiled binary Deb package in Debian, Ubuntu, Rain forest wind and the like Linux system, APT is equivalent to yum installation, dpkg equivalent to RPM installation, are compiled by others, directly installed
Make and GCC are used to compile the source code, and the decimal source code is compiled into binary machine codes./configure resolve dependencies, generate Makefilemake compile make install make installation make clean cleanup temp file or./****. Bin directly installs executable files or./***** Open an executable file
sudo apt-get update update source sudo apt-get upgrade update installed package sudo apt-get dist-upgrade upgrade system sudo apt-get install sudo apt-get-f in Stall fix install sudo apt-get remove--purge Remove package and profile sudo apt-get autoremove--purge (delete package and its dependent packages + profiles etc (only valid for 6.10, highly recommended))
Ubuntu left side taskbar settings gsettings set Com.canonical.Unity.Launcher launcher-position Bottom (left) gsettings set Org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/launcher-minimize-window true (minimized)

Linux common commands and Operations (second bomb)

Related Article

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.