Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Transfer find command, linux and windows files to each other

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report