Linux acquaintance of mine (updated ing)

Linux Directory Structure

Here Insert Picture Description/ Root directory, the source of all, Linux everything is a file, directory structure presented in the form of a divergent root
root, bin, boot, etc, dev, var, home, usr, media, lib and other similar and their status is very important , briefly respective roles under.

  1. / bin binary acronym, the general store is the most frequently used commands.
    2. / root This directory is the system administrator , who is also known as super user directory permissions.
  2. / boot storage start number used in the Linux kernel files , including some linked files and image files.
  3. / home to store the user's home directory ordinary, has its own directory, each user in Linux is generally consistent with the directory name and account name .
  4. / dev similar to the windows device manager , all the hardware in the form of file storage.
  5. / var This directory contains the continued expansion of the stuff we used to be frequently modified directory on the inside, such as the various log files.
  6. / etc all the systems needed for management configuration files and subdirectories .
  7. / usr many user applications and files are placed in this directory, similar to the program files directory under the windows.
  8. / Media the Linux system will automatically identify some devices, such as U disk, CD-ROM, etc., when the identification, Linux it will be identified device mounted to this directory.
  9. / lib system boot required basic dynamic link shared libraries , similar to the windows in the dll.
  10. / mnt system provides this directory is to enable users to temporarily mount other file systems , we can use an external memory mounted on / mnt, and then enter the directory you can view the content.

Acquaintance terminal interface

Here Insert Picture Description
[ Username @ hostname current directory name ] user rights

- yellow marker 1

Permissions operators:

  1. # Is the highest authority
  2. $ Normal user privileges

- Yellow marker 2
the current directory:
root directory /
the root directory ~
red mark following
a different directory name of the directory are displayed
Here Insert Picture Description

1 mine

Although the root is the root meaning, but the system is Reagan / , the root directory is / instead of / root .
So cd / red marker becomes a /. Sometimes can not find the directory was created, usually because after the establishment of the following in the root, cut to the / root directory had a following across, can not reach. In addition cd ~ is returned to the user's home directory, generally consistent user directory and user account name!

Introduction to commonly used commands

The renewal of the sort commonly used commands
for Linux basic commands are generally system commands and shell scripts. Learn while finishing first under the mark.
pay attention! ! ! pay attention! ! ! pay attention! ! !

  • rm -rf / on behalf of all the files in the root directory are deleted (delete library on foot), and does not do any tips! ! ! ! ! Therefore caution RM -rf ! ! !
  • su su - the difference between
    su user name (Function Description: Switch users can only obtain permission to execute the user's environment variables can not be obtained)
    su - user name (Function Description: Switch to users and obtaining environment variables and execute permissions for the user)
    change saying that administrators su privileges to ordinary users later, environment variables and working space to the average user, and then switch back when su root user environment variables or an ordinary user 's.
    Only ** su - ** in order to set the environment variable and switch back to the workspace root.

Demining 2

Linux basically run on a virtual machine, so VMware's nat service to ensure open, usually virtual machine network failures are generally nat service is not open on the windows. Secondly, we need to clone Linux on the cloning machine network card ip reconfigured , here under Mark cloneLinux virtual machine details .

Published 37 original articles · won praise 17 · views 1846

Guess you like

Origin blog.csdn.net/qq_37714755/article/details/104336508