virtual machine, you can see the shared directory in the host.
Situation Two:
Host operating system: Windows 7
Guest operating system: Oracle Linux
The same as the case. Set up a shared directory first.
Then, in the menu above the Linux virtual machine, the device-> install enhancements.Vboxadditions appears, and then run this softwareYou can see the shared folder.Hang in this directory to the
In linux, the command chmod is used to change the folder permission and change the folder permission of the file owner. chmod is followed by a letter, followed by a file name (such as chmod a + x) www.2cto.com. When you want to use the chmod command to change the permission, the user identity of the file mainly includes the following types: u (user): users with f
View the size of the Linux File directory and the number of files contained in the folder
Total statistics size
Du-s files/
Du-Sm * | sort-N // count the current directory size and sort the directory size.
Du-SK * | sort-n
Du-SK * | grep chuangtse // 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
There is nothing to spare. Simply write and implement the simple LS command:| 1 #include Function:./ls--list files under current folder./ls xxx--lists the files under the specified folderIgnore. With.. Two of folders. Linux System Programming _1_ folder read (implement simple LS command)
Linux:ubuntu 14In order to access the Windows directory in Linux, you need to install the VMware toolAfter you click Install in the VMware menu or in the prompt box, you see a status similar to the following in Ubuntu (VMware virtual a disk is a Vmwaretool file)Copy file:vmwaretools...tar.gz to TMPCP Vmwaretools ... tar. gz/tmpExtracttar -xcvf vmwaretools ... tar. gzThe Vmware-tools-distrib directory is in the extracted folderSwitch to root usersu roo
Copy of File: Scp–p (port number)./authorized_keys [Email Protected]:/home/berchinaCopy of folder: Scp-r-P (port number)/home/berchina/hadoop-2.2.0 [email protected]:/home/berchina/Note:The red font is my command to tap."#" is an annotated language[[Email protected] server]# FTP 10.2.1.67 #登录服务器Connected to 10.2.1.67.220-filezilla Server version 0.9.34 beta220-written by Tim Kosse ([email protected])Visit http://sourceforge.net/projects/filezilla/502
/tmp permission is RWXRWXRWT.
chmod 0777/abc rwxrwxrwx
chmod 777/abc rwxrwxrwx
chmod 1777/abc RWXRWXRWT
The "T" character in your permission indicates which is the user (and the root) that has created the file inside of/tmp Folder can delete/modify that specific file.
Suppose chmod 1777/tmp
This is 2 part
1 and 777
1 mean:this file only is deleted by root, its called sticky bit (I guess) need to check again
RWX rwx RW tOwner group other than
The FTP tool software prompts permission Denied (no permissions), or the 550 delete directory operation failed. Today, the small residual in the operation of FTP when this problem occurred.
Typically, these directories or files are written by a PHP program as an administrator user, and users under the general virtual host user name do not have the permissions of the Administrator user group and cannot be deleted.Have you ever seen a virtual host using Linux
in the virtual machine down implementation under Windows share a folder: (If the installation is complete vmtools:http://blog.csdn.net/pipisorry/article/details/21318931) Open vmware-> toolbar, select settings, virtual machine, option to add a shared folder point and follow the prompts to add a folder under Windows. Under/mnt/hgfs is the
File and folder operations1. Create folder "MkDir folder name" This will create a folder in the current directory.2. copy file CP3. Cutting MVEdit File ContentsVI or VIM generally VI is the basic function, VIM is more powerful than the VI function.Some of the basic operations areOpen or new file VI file pathOpen is rea
DF-HL View disk remaining space
Du-sm folder
Returns the total m of this folder
More features please view:
DF--help
Du--help
Du-sh (the name of this directory) is the size of this directory.
Use the du command to view a directory, such as viewing the/home/kuuyee directory for disk space size you can use the following command:
# Du/home/kuuyee-sh
There are hundreds of build projects in my home direc
Tags: ext list folder Justify top style is add marginLs-l |grep "^-" |wc-l//verified Redhat easy to useOrFind./company-type F | Wc-lView the number of files under a folder, including the subfolders.Ls-lr|grep "^-" |wc-lView the number of folders under a folder, including those in subfolders.Ls-lr|grep "^d" |wc-lDescriptionLs-lLong list output file information in
In linux, set the ls command to display the file and folder colors. use dircolors-p to see the default color settings, including various colors and definitions such as bold, underline, and blinking. The $ LS_COLORS variable sets the color. for example, my settings are as follows: www.2cto.com [pla...
In linux, set the ls command to display the file and
My little brother just went from under the development of Windows to Linux under development, hereby record the process of learning, is a memochmod assigning permissions to files and foldersCHMOD ABC Filea,b,c represents User,group,other's permissions respectively. One is the chmod post-add number, followed by the file name r = 4 W = 2 x = 1The other is the chmod after the letter, followed by the file nameU: The user who owns the file (owner);G: The g
Linux Delete Folder commandLinux 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 nameDelete directory, file rm (remove)Feature Description: Delete files or directories.Syntax: RM [-dfirv][--help][--version][file
Linux package command. tar unpack: tarxvfFileName.tar package: tarcvfFileName.tar DirName (note: tar is packed, not compressed !) Unzip 1: gunzipFileName.gz unzip 2. linux folder package command. tar unpack: tar xvf FileName.tar package: tar cvf FileName.tar DirName (note: tar is packed, not compressed !) Unzip 1: gunzip FileName.gz unzip 2: gzip-d FileName.gz co
directory masquerading file system proc mount directory, Proc is not a real file system, its definition can be see/etc/fstab.
/root
Root user's working directory
/sbin
Similar to Bin, is some executable files, but not all users need, generally is the system management needs to be used.
/tmp
System temporary files, general system restarts will not be saved.
/usr
Contains the system user tools and programs./usr/bin: Non-m
This command can unlock the Linux file's super-privilege limitExtract:Chown the owner of the specified file to the specified user or group, the user can be either a user name or a user ID; a group can be a group name or a group ID; a file is a space-separated list of files to change permissions, and wildcard characters are supported. System administrators often use the Chown command to give users permission to use a file after copying it to another us
represented as 711,644.-size n[bckw] finds files of the specified file size, the characters following n represent units, the default is B, which represents 512-byte blocks.-type x looks for files of type X, and X is one of the following column characters:B-Block device filesC-Character device filesD catalog FileP Named Pipes (FIFO)F Common FilesL Symbolic Link file (Symbolic links)s socket file-xtype x is basically the same as-type, but finds only symbolic link files.Find time-based conditions-
, there will be one more "/"
Here we should note that when we use the tar--exclude command to exclude packaging, can not add "/", or will be the logs directory and the files under the package.
Wrong wording:
TAR-ZCVF tomcat.tar.gz--exclude=tomcat/logs/--exclude=tomcat/libs/tomcat
Correct wording:
TAR-ZCVF tomcat.tar.gz--exclude=tomcat/logs--exclude=tomcat/libs Tomcat
The above Linux tar compression to exclude a
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.