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

Redhat: file directory management

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

Share

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

I. Catalog structure

/ boot: system startup-related files, such as kernel, initrd, and grub (bootloader)

/ dev: device file

Block devices: random access, block

Character devices: linear access, per character

Device number: primary equipment number (major) and secondary device number (minor)

/ dev/null: software equipment, bit bucket, data black hole

/ etc: configuration file

/ home: home directory

/ root:root user home directory

/ lib: library file

/ lib/modules: kernel module file

Static library: .a

Dynamic libraries: .dll, .so (shared object)

/ media & / mnt: Mount point directory

/ misc: miscellaneous

/ opt: optional directory for early installation of third-party programs

/ proc: pseudo file system, kernel mapping file

/ sbin: executable commands, administrative commands

/ bin: executable file, user name command

/ selinux

/ srv

/ sys: pseudo file system, attribute mapping file related to hardware devices

/ tmp: temporary file

/ usr:universal shared readonly, read-only file

/ usr/bin

/ usr/sbin

/ usr/lib

/ usr/local

/ usr/local/bin

/ usr/local/sbin

/ usr/local/lib

/ var: changeable file

/ var/tmp: temporary file directory

Second, the file catalogue commonly used command collation

Directory management

Ls: view the contents of the directory

Cd: switching directories

Pwd: view the current directory path

Tree: tree display folder

Mkdir: create an empty folder

Rmdir: delete empty folder

Document management

Touch: change the time of a file or directory

Stat: displaying metadata for files

File: file typ

Rm: file deletion

File copy

Cp

Install

Text editor

Nano: file editor

Vi: file editor

Vim: file editor

ASCII file:

T:0000 1001

File lookup

Locate: non-real-time, based on database search

Find: real-time

Text processing

View text

Cat | tac: full text output

More: flip backward

Less: turn forward

Head: just look at the first n lines

Tail: only look at the last n lines

Text processing

Cut: text cut off

Join

Sed

Awk

Grep: regular expression

Sort: text sorting

Uniq: remove adjacent and duplicate lines

Tr: delete, replace

Text statistics

Wc: article statistics

Symbol

Tee: save files and export at the same time

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