2020/3/2 record of learning Workshop

Linux basic commands common
man command This command is used to view help documentation. For example # man ls ls can view it commands help documentation.
ls order to display content under the specified working directory (list the files contained in the current working directory and subdirectories).
Parameters are as follows:
-a shows all files and directories ( "." Ls The default file name or directory name beginning regarded as hidden files are not listed)
the -l In addition to the file name, file type will also, authority, owner, file size and other information detailing
-r file will display in the reverse order (originally in alphabetical order)
-t file lists in accordance with the established order in time
-A with -a, but are not listed. " "(current directory), and" ... "(parent directory)
-F plus one symbol listed in the file name; then add, for example, executable files" * ", then add the directory" / "
with a file directory if -R, the following are listed in order of files Beijing and Taipei

Linux directory structure
/ bin: bin Binary is the abbreviation stored in this directory is the most commonly used commands.
/ boot: stored in this directory is to start Linux are some of the core files, including some linked files and image files /
/ dev: dev is an abbreviation Device (device). The directory is stored under Linux external devices. In Linux, the same way as access to files and access the device.
/ etc: This directory is stored in all the systems needed for management configuration files and subdirectories.
/ home: This is the user's home directory. In Linux, each user has its own directory, the directory name is based on the general user account named.
Here Insert Picture Description
Here Insert Picture Description
Linux file and directory management
cd command
cd command (change directory) abbreviation; behind the cd command with a path, the path for switching the current user is located, where the path can be either absolute or a relative path.

Example:

cd / system / bin represented by the switch to / system / bin path.

CD logs handoff to the logs path.

cd / handoff to the root directory.

cd ... / handoff to the one path.

mkdir command
mkdir is (make directory) acronym. Used to create the folder. Before you can create folders need to ensure that the current user has permission to modify the current path.

Example:

mkdir / data / lzj lzj create a folder in the / data path.

mkdir -pa / b / c The parameter -p used to create multi-level folder, the phrase command represents a folder created in the current path, and a folder contains subfolders b, b under the folder contains subfolders and c.

rmdir command
Here Insert Picture Description
rm command
rm command is the most commonly used, he has a lot of options. You can get it detailed help information via the command man rm. (I was not one I write).
Here Insert Picture Description
cp command
cp command is the copy (copy) shorthand
Here Insert Picture Description
there are many commands I will not describe!

Released two original articles · won praise 0 · Views 74

Guess you like

Origin blog.csdn.net/LIMBOLL/article/details/104639954