centos---operating system directory and file attribute view

1 .

   fdisk -l            查看当前操作系统的磁盘信息
/dev/sda    操作系统中第一块硬盘的名称及所在路径
linux操作系统中一切皆文件(文件名)sd(硬盘类型)a(第一块)

2. View the memory size

cat /proc/meminfo

3. Check the cpu model

cat  /proc/cpuinfo

4. Shut down

poweroff
reboot   重启

The linux operating system is a tree structure
directory == folder

pwd displays the current path
ls lists the contents of the current directory
/ the starting path of the operating system
/bin — commands that can be executed by ordinary users and administrators
/sbin — commands that only administrators can execute (shutdown and restart)
/boot —boot Main boot directory Independent partition boot menu Kernel
/dev —device Device file storage
/etc — Configuration file storage directory
/home —Home directory of ordinary users
/root —Administrator 's home directory
/media —Mounting directory of CD-ROM
/ mnt — temporary device mounting directory
/proc — the data in it is in the memory where the process is located directory
/tmp — temporary file storage directory
/usr — software installation directory
/var — constantly changing file storage directory Japanese occupation file mail file

Guess you like

Origin blog.csdn.net/tansty_zh/article/details/108016530