Linux common Commands--constantly updated

Source: Internet
Author: User
Tags file copy gz file

Linux commands:

!. 1.[[email Protected]/root]# said landing into the system, where # is super? User is root? user's system prompt

#. 2.reboot command to restart the system
$. 3. Turn off the system to use (the command can only be used by the super-user): shutdown[option [TIME] [WARNING]

Information
%. -K: No, no, no, it's just a warning. I want you to give it all? user & -r: After shutdown? Restart now
‘. -H: Does not start after shutdown
(.-F: Skip fsck When fast shutdown is restarted
). -N: Fast shutdown without the INIT program
*. -C: Cancel? A shutdown that has been shipped to the line

!+. 4. File Operations Command
!!. ls-8 column list? The file name includes hidden files. The beginning of the? File
!#. ls-l the. Long format column list? file
!$. Ls-f in the column listed in the?????????????????????????????? &. RmDir filen8me Delete already built? Catalog
! '. CD filen8me into? file? directory
! (. cp-r source? file? file copy? File
!). rm-r filen8me Delete the directory and all The child? Catalog
!*. rm-f do not confirm mandatory deletion? File
#+. rm-i filen8me Delete? file
#!. mv source? File path paths? File path paths move? Files Command
# # #. MV Filen8me1 filen8m E2 Rename
#$. c8t filen8me display? text? file contents
#%. c8t file1 file2 file3 show 3 in turn? file
#&. c8t-n filen8me display? Line number at the same time as the document contents
# '. More filen8me display? text? file (with more content)
# (. PWD Displays the current route path
#). 5. User and User group Management
#*. USER8DD usern8me Create a new? user
$+. Userdel usern8me Delete? user
$!. GROUP8DD groupn8me Create a new? user group
$#. Groupdel groupn8me Delete? user group
$$. Su-usern8me give ordinary user privileges or Super user identity
$%. Chomd[who][+|-|=][mode]filen8me the courage to change? file or? Access permissions for the directory $&. chown[? User: Group]? file? The owner and the group
$ ' that are used to change a particular file or directory. 6. The Process Management command
$ (. Ps-e Show All Processes
$). Ps-f full Format
$*. ps-l? long format
%+. Top dynamic Display current process and other conditions input, you can add parameters:

%!. %#.%$.%%.%&.% '.% (.%). %*.&+.&!. &#.&$.&%.&&.& ' .& (.&) &*. ' +. '!. ' #.‘ $. ' %.‘ &. '. ' (.‘).‘ *. (+. (!. (#. ($.

(%.

(&. (‘. ((. (). (*.) +.

)!.) #.) $.

Q You can exit the view page?
(space)? Refresh the display now
h/? Show Master draw? Face
M Toggle Display Memory Information
T toggle display process and CPU information C Toggle display command name and full command? Row-line M is based on the memory left? Row row sort p according to the CPU to make use of the percentage of the size of the big? The process for killing the background is mainly used in two ways: the kill[-s signal] Process number kills the specified process

KILL-L Display the Process column list cron command? To achieve the completion of the scheduled task, the non-manual work start cron-l view? Cron tasks that already exist 7. disk and File commands

DF-K display the disk space for each partition. mount[options] device? directory mount? File Umount[-f]directory forced uninstallation? file system 8. Software Installation Commands

T8r-c Filen8me Create a new profile? File T8r-t filen8me View profile? file contents T8r-x Filen8me decomposition files? The contents of the file T8r-f filen8me Specify the file name T8r-v Filen8me displaying process information

T8r-z Filen8me with compression method
Rpm-i P8ck8gen8me installation Package
Rpm-u P8ck8gen8me Upgrade Pack
Rpm-q8 column lists all packages that have been installed
RPM-QF filen8me query for a specific? file belongs to which package Rpm-qi P8ck8gen8me query the functionality of a package

RPM-E P8ck8gen8me Deleting a package
9.vim. Using the
VIM has three modes: command line, the text input mode, the end line mode to enter the VIM can be entered into the Vim editor?, click ESC to enter the command? line mode, click I to enter

In the text editing mode to enter: You can enter into the end of the line mode in the end of the line mode of input Q can exit; Enter the WQ to save the operation after the exit; input q! forced back

Out

10.he8d/t8il
He8d-n x Filen8me to see the top X of a file? Line contents
T8il-n y filen8me View the file's back Y? Line contents
he8d filen8me view? What is the first ten lines of a file? Line contents
T8il filen8me view? The contents of the file after ten? line
T8il-f filen8me display after ten? Line content, and after the content has increased? Automatically show new files in

Capacity
11. Network Configuration
Ifconfig-8 See all? NIC status information ifconfig-v View ifconfig command version information

)%. Ifconfig-s Viewing statistics
) &. Ifconfig ETH ip8ddress settings? Network card IP
)‘. Ifconfig eth down? Network card
(. Ifconfig eth up activate? nic)
)). Ifconfig eth Netm8sk netm8sk8ddress settings? Subnet mask address of network card
)*. Ifconfig ETH ip8ddress Netm8sk netm8sk8ddress also set IP and? Subnet mask

Address
*+. Ifconfig ETH view? NIC Status
*!. Route View Route Information
*#. Route 8dd-net ip8ddress Netm8sk netm8sk8ddress Dev ETH Specifies the connection port *$. netst8t display? Network conditions
*%. Ping detection? Network connectivity
*&. Nslookup IP to view the domain name of the IP
*‘. Host Dom8inn8me query IP for the corresponding domain name
*(. 12. Time
*). /sbin/hwclock--show View Current hardware time
**. /sbin/hwclock--hctosys Synchronizing hardware time to a Linux system

!++. /sbin/hwclock--SYSTOHC synchronizes Linux time to hardware time!+!. 13. Documentation
!+#. Df-k display information for each partition in kilobytes
!+$. Df-8 Show all partitions including the size of the small 0 partition

!+%. DF-T Show Partition type
!+&. Du-b/file Displays the file folder in bytes, the size of each folder?
!+ '. Du-ks file displays file in kilobytes folder total size? small
!+ (. iost8t shows the CPU condition
!+). T8r-c Creating a Package
!+*. T8r-x Unpacking
!! +. The t8r-t column lists the contents of the package
!!!. T8r-r Add the file to the specified package
!! #. T8r-u update the files in the package?
!! $. T8R-ZCVF file.t8r.gz File Compressed file
!! %. T8R-ZXVF file.t8r.gz File Decompression file.t8r.gz
!! &. Find-n8me file1 find file1 ——— find/libr8ry/-n8me Nose | grep/nose!! '. grep[command Options] to find the matching mode [to find the? file] find? file
!! (. grep str1 file to find string strings in file str1
!!). Grep-r Str1/file Find string strings in all the files in/file and its sub-directories str1
!! *. Ps-ef | grep Filen8me finds process information that contains filen8me in all processes
!#+. 14 Service
!#!. Service TOMC8T4 st8rt start TOM8C8T4 Services
!##. Service TOMC8T4 stop shutdown TOM8C8T4 Services

Linux common Commands--constantly updated

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.