linux-"Linux system root sub-directory Functions" (2)

Source: Internet
Author: User

"Linux system root sub-directory functions"

/root directory

The corresponding files for the/bin System Execution command are in this directory

/sbin System Super Administrator execute command files are in this directory

/dev device CPU, memory RAM, disk drive,

All the things in the Linux system are represented using files.

/dev/cdrom Optical Drive

/dev/disk HDD

/DEV/SDA Primary Partition

/dev/mem Memory

Home directory, which we create for every ordinary user of the system,

This ordinary user will have a home directory to operate

/home/shuhua Directory is the home directory for "Shuhua" users

Each user is logged in to the system by default and runs to its home directory.

Root Super Admin home directory Special, in/root is its home directory

/proc System Virtual Mapping directory, where you can see the hardware information of the system

/tmp System temp file directory

/var varible variable, we develop a program system that can be put into this directory.

The file information for this directory is variable.

/var/book/www/php Executable Program Files

/boot system boot directory, Linux core version here

/etc System configuration file directory

/ETC/PASSWD Storage System User Information

/etc/group Storage System User group information

/lib book tube, storage room, system function library Directory

PHP function library, file name suffix is. dll Mysql.dll

/MNT mounting a common directory

/selinux security-Enhanced Linux Directory

/USR Software installation directory, similar to C:\program Files,user

"Some of the commands that are commonly used when learning."

1. See what files and directories are in the current directory
> ls//list
> Ls-al//all list Displays the full file details of the current directory (shown as a list)
> ls-l//list Displays the details of the current directory general file (shown in a list)
> ls-a//Display the current directory full file information, only the name of the file

2. See which directory I am currently in
>pwd

3. Display current User information
>who am I//display user name and time information of their login system
>whoami//Display only user name information for the currently logged on system

4. Switch from normal user to root user
> Su-//Prompt to enter a password
> su root//
Two switching modes: The former switch to Super Administrator user, the permissions are Super Administrator privileges
Although the latter switch to Super Administrator, whose permissions are normal permissions

5. Switch from root user to normal user
> su Shuhua//cut back from root to normal user

6. Switch from the desktop window to "Command line window" (Switch with Super Administrator)
> Init 3
> init 5//Switch back from "command line" to "desktop"

"Linux System directory Operations"

Create, delete, change names, move, copy

Create: Make directory mkdir

Change Name:

MV Old name New name

Delete:

RmDir Deleting a single directory

RM Delete a file or directory

Move:

MV File path name

Copy:

CP file path//Copy file

CP directory path-r//Copy directory

linux-"Linux system root sub-directory Functions" (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.