Cty's Linux study notes (2)

Linux Study Notes - Part 2

Officially changed the title to "Cty's Linux Study Notes", with a little bit of its own characteristics, well, no more nonsense, let's start.

(Again, this note is only used as a learning record and reference)

Linux directory structure:

/bin: bin is the abbreviation of Binary, and the most commonly used commands are stored in the changed directory.

/boot: This directory stores some core files used when starting Linux, including some link files and image files.

/dev: dev is the abbreviation of Device, which stores the external devices of Linux.

/etc: All configuration files and subdirectories required for system management are stored in this directory.

/home: This is the user's home directory.

/lib and /lib64: These two directories store the most basic dynamically linked shared libraries of the system.

/media: The system will automatically identify some devices. When identified, Linux will hang the identified devices in this directory.

/mnt: The system provides this directory for users to temporarily mount other file systems.

/opt: This is the directory for installing additional software on the host, which is empty by default.

/proc: This directory is a virtual directory and is a mapping of system memory, which can be accessed directly to obtain system information.

/root: This directory is the user home directory of the system administrator

/run: This directory is actually the same directory as /var/run, which stores the pids of some services.

/sbin: s means Super User, this directory stores the system management program used by the system administrator.

/srv: This directory stores data that needs to be extracted after some services are started.

/sys: This directory stores information related to hardware drivers.

/tmp: This directory is used to store some temporary files.

/usr: Many applications and files of the user are stored in this directory.

/usr/bin: This directory stores applications used by system users.

/usr/sbin: This directory stores more advanced management programs and system daemons used by superusers.

/usr/src: This directory is the default placement directory for kernel source code.

/var: This directory stores constantly expanding and frequently modified directories, including various log files or pid files.

Order:

who: See if anyone else is logged in.

ps -aux: Check if there are any background processes running

shutdown -h 10: The computer will shut down after 10 minutes and will be displayed in the current screen of the logged in user

shutdown -h now: shutdown immediately

shutdown -h 20:25: The system will shutdown at 20:25

shutdown -h +10: shutdown after 10 minutes

shutdown -r now: restart now

shutdown -r 10: reboot after 10 minutes

reboot: reboot

halt: shut down the system

sync: Write the current data in memory to disk to prevent data loss.


Note: Because it is a note, it is inevitable that there will be mistakes. If you find anything, please point it out, thank you : )

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325571453&siteId=291194637
Recommended