Transfer find command, linux and windows files to each other
Whereis, locate lookup command
Yum install-y mlocate install locate command
Updatedb
Common shortcut keys:
Ctrl + d exit
Ctrl + c cancels execution of command
Ctrl + u delete all forward
Ctrl + a jumps to the front
Ctrl + e jumps to the back
Find command:
Find / etc/-name
Find / etc/-type d-name
Find / etc/-type f-name
Ctime (change changes file content), atime (access access time), mtime (change time such as file permissions, size modified)
Find / etc/-type f-mtime + 1 find ordinary files changed before the next day in the / etc/ directory
Find / etc/-type f-mtime-1 find ordinary files changed in the next day in the / etc/ directory
Find / etc/-type f-mtime-1-name .conf look for ordinary files that have been changed within the next day and end in .conf in the / etc/ directory
Find / etc/-type f-o-mtime-1-o-name .conf looks for ordinary files in the / etc/ directory or files whose names end in .conf within one day of the change time.
Find /-inum 33585698 find the file with inode number 33585698 in the directory
Find. -type f-mmin-10-exec mv {} {}. Bak\; find files that have changed in the current directory within 10 minutes and change the name from the
Find ~ /-type f-size-10k-exec ls-lh {}\; look for ordinary files less than 10K in the ~ / directory and list them in ls
Find ~ /-type f-size-10m-exec ls-lh {}\; look for ordinary files less than 10m in the ~ / directory and list them in ls
A common file name suffix.
Bzip2-d filename decompression of files compressed by .bz2 using the bzip2 command
.gz decompress the file gunzip-d filename compressed with the gzip command
.tar unpacks files packaged by tar using tar xf filename
Package manager file for .rpm RedHat
.o program object file
.so dynamic link library file
Linux and windows transfer files to each other
In xshell, secureCRT
Yum install-y lrzsz
Sz filename linux-> windows
Rz windows-- > linux