Linux Getting Started Basics command (iv)
File system and Directory structure:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-41b85fb3a44d5f8a?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
1, the file and is organized into a single inverted tree structure
2, file system from the root directory, with "/representation"
3. Start files as hidden files
4. Path Segmentation/
5, the file has two kinds of data (meta data: Metadata data:)
6. File System hierarchy: LSB (Linux standard Base) FHS: (Filesystem Hierarchy Standard)
7. Maximum 255 bytes of file name
8. File name, including path, up to 4,095 bytes
9, blue--and catalog Green--Executable file red--Zip file light blue--Link file gray--Other files
10, standard Linux file system such as (EXT4), file name is case sensitive. Example: Mail,mail,mail,mail
11./Boot: Boot file directory, kernel file (vmlinuz), boot loader (bootloader,grub) are stored in this directory
12,/bin: Basic command for all users, cannot be associated to a separate partition, the program that is used by OS startup
13,/sbin: The basic command of management class; cannot be associated to a separate partition, the program that is used by OS startup
14. lib: Basic shared library files and kernel module files (/lib/modules) that the program relies on at startup
15, Lib64: Dedicated to the x86_64 system on the secondary shared library file storage location
16./etc: Configuration file directory
17,/home/username: Ordinary user home directory
18,/root: Administrator's home directory
19. Media: Portable mobile device mount point
20. MNT: Temporary file system mount point
21, Dev: Device files and special file storage location. B:block device, random access, character device, linear access
!! :Repeat the last explicit
! -1:Executes the penultimate command of a history command
Ctrl + P:Call last command two do not execute
! : 0:Execute only commands without executing parameters
CTRL + N:Displays the next command in the current command (history)
! N:command to perform the corresponding ordinal in history
! -N:Executes the last nth command in history
! String:Repeat the previous command starting with "string" (from the back of the history search)
!?string:Repeat the previous command containing "string" (from the back of the history search)
! String:p:Print command history only and not execute
!$:p: Prints the last parameter of the previous command
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-d1c44ada8ce0b1d0?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
After executing the above command:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-f6655a5737b598ae?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
Print out all parameters of the previous command
650) this.width=650; "src=" http://7xread.com1.z0.glb.clouddn.com/%20ff71c836-6504-426f-b997-e0742bdc6671 "style=" Border:0px;vertical-align:middle;height:auto; "alt="%20ff71c836-6504-426f-b997-e0742bdc6671 "/>
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-b9b0107d8fc89423?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
^string: Delete the first string in the previous command
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-9b87a282d2d91e31?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
^string1 ^string2: Replace the first string1 in the previous command with the string2
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-5ba809f9db058e0a?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
! : Gs/string1/string2: Replace the string1 in the previous command with string2
Ctrl + R: Search from History
Ctrl + G: Exiting from the historical search mode
to invoke the last parameter in the previous command from the new one:
1,! $2, ESC,. (Click the ESC key to release and then click the. Key) 3, Alt +. (Press and hold the ALT key while clicking.)
Command! ^: parameter of command with the first parameter of the previous one
command! $: Use the last parameter of the previous command to do the command parameter
command! *: parameter of command with all parameters of previous
Command!:n: Parameters that use the nth parameter of the previous command for command
Command! n:^: Invokes the first argument of the nth command
Command! n:$: Invokes the last parameter of the nth command
Command! N:m: Call the first m parameter of the previous command
command! n:*: Invokes all parameters of the nth command
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-7058d328c5ffb312?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
How to delete a file and clear the history (first delete-then empty-and finally exit):
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-7a18e731f3c1d437?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
How to modify the number of history records:
1, first look at the current history of the greatest possible:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-de3f8e190278b924?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
2. Then execute the following command:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-47fe22b2680ac286?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
Find histsize=1000 again and change the 1000 to the value you want to change:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-962454bb67cea68c?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
Execute the following command to divide the characters into multiple lines without being counted into the history:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-5d1113344c0f391a?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
The following command does not appear in the history record:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-acfba59b86378607?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-6b1476bc38da0a0a?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
Order:
650) this.width=650; "Src=" http://upload-images.jianshu.io/upload_images/6144185-52bb395d8c85cd7d?imageMogr2/ auto-orient/strip%7cimageview2/2/w/1240 "style=" Border:0px;vertical-align:middle;height:auto; "alt=" 1240 "/>
This article is from the "12922045" blog, please be sure to keep this source http://12932045.blog.51cto.com/12922045/1930721
Linux Getting Started Basics command (iv)