Tags: security context div Upper context permissions target SEL targe listGrammarmkdir (option) (parameter)Options-Z: Sets the security context, which is valid when SELinux is used;-mset directory permissions while setting directory;-P or--parents If the top-level directory to be set up is not currently established, the upper-level directory will be established;--version displays the version information.ParametersTable of Contents: Specifies a list of directories to create, separated by spaces b
The enhancement feature of virtualbox linux must be installed. An optical drive is assigned. After the enhancement feature is selected, VBoxGuestAdditons is automatically added. mount-t iso9660/dev/cdrom1/cdrom on your own. Then you can mount the disk and install it directly.After the Enhancement Tool is installed, you can add data space in virtualbox. Find your shared directory in windows and create a mount point in virtualbox
[Go]linux folder compression. Tar unpack: Tar xvf Filename.tar package: Tar cvf filename.tar DirName (Note: Tar is packaged, not compressed!) )---------------------------------------------. GZ decompression 1:gunzip filename.gz decompression 2:gzip-d filename.gz Compression: gzip FileName.tar.gz decompression: Tar zxvf FileName.tar.gz compression: Tar zcvf FileName.tar.gz DirName----------------------------
The configuration of rsync under Linux for folder synchronizationhttp://blog.csdn.net/cymm_liu/article/details/31347531Objective: to [88]_a of the host /data/home/web sync to [27]_b of the host /data/home/qy CatalogueBHost asrsyncServer# Check if the system has rsync packages installed[Email protected] home]# Rpm-qa |greprsyncrsync-2.6.9if not, go to yum or apt-get install or go to the website server1. cu
Linux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.Direct RM is available, but add two parameters-rf that is: RM-RF directory name-R is recursive down, no matter how many levels of directory, delete-F is directly forcibly deleted, without any hint of the meaning of tools/materials
Linu
Article Title: view the total size of all files in a Linux folder. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories such as viewing the size of the home directory:
Du-s/home
You
Article Title: fix the mount folder garbled in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Umount is used to detach a mounted disk.
Then mount:
Sudo mount-o iocharset
Linux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.Direct RM is available, but add two parameters-rf that is: RM-RF directory name-R is recursive down, no matter how many levels of directory, delete-F is directly forcibly deleted, without any hint of meaningTools/Materials
Linux
Tar-zcvf/home/xahot.tar.gz/xahotTAR-ZCVF the directory to be packaged when the file name full path is generated after packagingExample: Package the/xahot folder into a/home/xahot.tar.gz file.Zip compression method:Compresses the current folder Zip-r./xahot.zip./*-R means recursionZip [parameters] [file name after packaging] [packaged directory path]Decompression Unzip Xahot.zip not explainedThe basic usage
Tags: delete root home directory mistakenly deleted folder directory To/rootFirst, how to restore the Linux root folder after deletion?Today with ordinary users into the system to switch root user prompt without root home directory, do not know what the situation caused$su - rootwarning: cannot change directory to /root-bash-3.2#Second, online search method:Root'
Linux fruit see hard disk which folder occupies disk sizeCD/Login Returns the root directory to view the file size based on the root directory one level at a start.Du-sh * | SORT-NR \ See which of the files in this folder is very detailed and how much information is returnedWhich directory you need to enter and find the information in it directly CD +
Issue background:Today I want to open my data set to colleague a, only allow it to read, not allowed to write.Operation:Step1:See which user this folder belongs to and which groupls folder-lStep2:Usermod-a-G The user name to assign for the group name of the specified folderStep3:Chmod 754 specifying the folder nameExtended:1 Settings for permissionsCHMOD-RWXRWXRW
, select "Options", click on the shared folder----always enable---add, and then in order to operate on OK.
At this point you create the share folder below the local F disk, which is the folder that this computer shares with the virtual machine.It's OK to be here, you enter the virtual machine, point application-attachment-terminal, enter the
of directory, delete-F is simply forced to delete, without any hint of the meaning
Llinux do not have a recycle Bin, use RM-RF must be extra careful
Delete the/home/site/folder (the directory and all the files and folders under it)rm-rf/home/site/
Delete filename.tar.gz fileRm-f filename.tar.gz
Here is a description of Linux statistics directory/folder size
For ease of use, installed in the Ubuntu Chinese version, naturally in the home file user directory "desktop", "Picture", "video", "Music" ... It's all in Chinese. Many times like to put some on the desktop to manipulate the file, Linux command line operation is more, will inevitably use the command line to operate the things on the desktop, then the "CD desktop", hit "desktop" when the input method to switch, trouble ... So we will find a way to chan
View the size of the Linux File directory and the total number of files contained in the folder
Du-SH xmldb/
Du-Sm * | sort-N // count the current directory size and sort the directory size.
Du-SK * | sort-n
Du-SK * | grep guojf // view the size of a person
Du-M | cut-d "/"-F 2 // read the text before the second character
View the number of files in this folder
Understand the role of each directoryBin binary FileBoot file, kernel of boot systemDev device filesETC configuration fileHome Directory for home usersLIB link library fileLost+foundMount Mount pointMNT mount point (manual mount point)NetOpt source package installation software, usually manually installed under the folder (if not named, generally installed under the usr/local directory)Proc Kernel parameters (no actual files, all virtual files, no dis
1. Set up the shared directory in VirtualBox, set up automatic mount/fixed assignment2. Install the enhanced tool, in order to avoid installation errors need to install dependent files#更新内核.Yum Update kernel#需要安装相应的kernel-devel and GCC packages, GCC is also a mustYum Install kernel-devel gccRestart the system after upgrade3. Click Settings--click Install enhancements ...And then into the inside of the virtual machineMount/dev/cdrom/home/vbox mount an enhanced package for iOS filesTip Mount:block
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.