Linux basic Commands (one) detailedLinux friends know that most of the system operation is the command line operation, of course, there are now graphical interface operation, but in most cases still use the command mode of operation, so the function
Shutdown-h now immediately shuts down the machineShutdown-r now restart your computerReboot restart your computer nowLogout Log off usersUse of the VI Editor:1) VI File name2) input i "Enter command mode"3) Enter ESC "Enter Command mode"4) Enter:
1. Determine the result of a command using test, which returns 0, or an integer. Returns 0 for true, returns an integer indicating the error code2. Get the return result of the previous command using $?3. For exampleMy server has/home/www such a
Continue to share with you today (take the previous chapter)(+) Vim + file name (edit file, if the file does not exist also can be edited, but must be saved, the use of vim alone is open vim manual, the same can be editedText, but save it before you
HDD Management (partition, SWAP,LVM)DPT: Partition table (64)Partition mode: MBR,GPTMSDOS: The total size of the hard disk is less than 2T (15 partitions)1 partitions occupy 16 bytes, msdos can be divided into 4 partitions. Primary partition,
Linux system basic commands: to distinguish caseUname display version information (same as Win2K ver)DIR Displays the current directory file, Ls-al display includes hidden files (dir with Win2K)PWD Query the directory location where you are
Basic commands for 100 common Linux:Posts-137, Articles-0, Comments-14Hunter's homelandLinux Learning notes: Common 100 commands (i)2016-05-02 15:00 by Hunter Homeland, 837 reading, 0 reviews, Favorites, compilationLinux Common commands1. Shut down
The Linux system is large and complex, summarized as a DBA, some basic management, network management, advanced applications, performance diagnostics, pipeline complex applications, hardware-related sensing commands need to master, this article,
1 Traversing a directoryCd:change dicrectory abbreviation. Or./represents the current directory,.. Or.. /represents the previous table of contents, CD-Represents the last directory entered.2 List of files and directoriesLs:list, the file under the
Order format: command [OPTIONS ...] [ARGUMENTS ...]COMMAND:Initiating a command: Requests that the kernel run a binary program as a process;Programs--ProcessStatic--Dynamic (with life cycle)Examples take centos6.5 as an example.1. Ifconfig: View all
Linux system basic commands date Time Command date is used to view and set the current system time: format the display time: + % Y -- % m -- % d command hwclock (clock) the command cal is used to display the hardware clock time. The calendar uptime
There are three types of user accounts: superuser, common user, and program User Group account: UID for the basic group and additional group user account: the root UID is 0, the program user is 1-499, and the general-a: User account File 1. in the
I. linux boot process (first, let's take a look at the linux boot Guide process) boot self-check MBR boot (masterbootrecord master boot record) GRUB Menu (if multiple systems are used, which system is used to choose to use) load the Linux kernel
I. Detection of New Hard Disks [Root @ localhost ~] # Fdisk-l list all hard disk devices and their partition information in the current system The list information has the following parameters: Device: the name of the Device file in the
Basic Linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. Basic Linux commands:
Who to view the current user
Ps aux (I often have one more '-' with a row of error
The most common compressed packages are tar, GZ, bz2.
Zip and RAR are mainly from windows.
Package Multiple files into one file. The general size is not changed. This is called packaging.
Reduce the size of a file, which is called compression.
There
Five Elements of the Network: MAC address, IP address, network mask, gateway, DNS
The MAC address is the physical address of the network card. It is globally unique and consists of six bytes.
The IP address is a four-byte logical address allocated
Shutdown
Poweroff
Halt
Shutdown-H now
Init 0
The above four commands are equivalent. Normal users do not have the permission to shut down and must use sudo to execute the above commands.
Do not use poweroff-F. The F Switch refers to force,
Single task: only once.
At edit task
Shutdown command sudo poweroff
After the creation is successful, a job ID is returned.
ATQ Query Task
Use this command to query the job with the specified ID, or do not specify the job ID to view the job. note:
Create a directory test mkdir/test under the root directory (/)
Change the current directory to/testIn this directory, create an empty file with the abbreviation of your own name, and then create two subdirectories (-XH) and (AH ); mkdir-P/test/ycy/
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.