Linux Command learning Summary: rmdir, linuxrmdir
Command introduction:
This command is used to delete an empty directory. If the directory is not empty, an error occurs. You can use rm to delete files in the directory and then use rmdir to
Copyright Notice Update:2017-05-11Bo Master: LuckyalanContact: [Email protected]Statement: Draft not forget to dig well man, reproduced please indicate the source!1 Article IntroductionThis article describes the rmdir command under Linux.2.
I. Absolute path and relative path
Absolute path
For example, the command to modify the NIC configuration fileVi/etc/sysconfig/network-scripts/ifcfg-ens33Over here/etc/sysconfig/network-scripts/ifcfg-ens33is the absolute path, the
1,Mkdir
-M, -- mode = mode set file mode (as in chmod), not a = rwx-umask
-P, -- parents no error if existing, make parent directories as needed
Mkdir-P dir1/dir2 // IfDir1Does not exist, also createDir1
Mkdir-M 755/usr/dir3 // and setMode
2,
Use the mkdir command to create directories and subdirectories under Linuxnow that we've listed the entries in the directory with the LS command, we're going to learn how to create a directory under a Linux system. Under Linux, we can use the mkdir
Command: mkdir; rmdir; tree
Mkdir ---- make directory
Syntax: mkdir [-MP] [directory name]
If the mkdir directory is directly followed by no option, a subdirectory will be created at the upper level of the last directory. If the upper level does
MAN: manual refers to the manual. You can use this command to query the usage of other commands.
PWD: Print working directory indicates a password.
Su: Switch the swith user to the root user.
CD: Change directory switch directory
Ls: List
Relative and absolute paths of linux knowledge point Review, linux knowledge point2.6 relative and absolute paths
Each file has a file starting from the root. All files have their own paths starting from the root. They are absolute paths, no matter
We know that the directory structure of Linux is tree-like structure, the top-level directory is the root directory/.Other catalogs can be mounted to add them to the tree, and they can be removed by lifting the mount.Before starting this tutorial we
The whole computer is zoned for Ubuntu.Install software When a clear feeling is a lot of things, with the terminal's command line to do is very easy, with the graphical interface is often very complex, and many times there will be permissions, for
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.