the point of a symbolic link, not the linked file itself Select parameters:--reference=--from=--HELP Display Help information--version displaying version information 4. Usage examples: Example 1: Changing Owners and groupsCommand:Chown Mail:mail Log2012.log Output: [[email protected] test6]# ll---xr--r--1 root users 302108 11-30 08:39 linklog.log---xr--r--1 root users 302108 11-30 08 : log2012.log-rw-r
fileOutput:[Email protected] opt]#ls-l/opt/soft |grep "^d"drwxr-xr-xTenRoot root4096 the- - -: -Jdk1.6. 0_16DRWXR-xr-x - 1016 1016 4096 Ten- One Geneva: -subversion-1.6.1drwxr-xr-x9Root root4096 .- One- onTomcat6.0.32Example four: List the current working directory of all the names are the beginning of the file, the newer the new row, you can use the fol
operate the Peidachang file under the home folder, I can enter the LS-LR Peidachang directly, or I can use Ls-lr/home/peidachang.Example two: Listing the details of all directories in the current directory that begin with "T", you can use the following command:Command: Ls-l t*You can view information for all files in the current directory that have a file name that begins with "T". In fact, in the command format, the contents of the square brackets can be omitted, for the command LS, if you omi
/command : ls-l/opt/soft | grep "^d"Lists the subdirectory details under the/opt/soft fileOutput :[Email protected] opt]# Ls-l/opt/soft | grep "^d"Drwxr-xr-x root root 4096 09-17 18:17 jdk1.6.0_16Drwxr-xr-x 1016 1016 4096 10-11 03:25 subversion-1.6.1Drwxr-xr-x 9 root root 4096 2011-11-01 tomcat6.0.32Example four: List the current working directory of all the name
parameters:--reference=Directory same owner and group--from=changes only if the current user and group are the same as the specified user and group--Help Display assistance information--version displays release information4. Use instance: Instance 1: Change owner and Group commands:Chownmail:mail log2012.log output: [[email protected] test6]# ll---xr--r--1Root Users302108 One- - ,: theLinklog.log---xr--r
subdirectory details under the/opt/soft fileOutput:Copy CodeThe code is as follows: [[email protected] opt]# Ls-l/opt/soft | grep "^d"Drwxr-xr-x root root 4096 09-17 18:17 jdk1.6.0_16Drwxr-xr-x 1016 1016 4096 10-11 03:25 subversion-1.6.1Drwxr-xr-x 9 root root 4096 2011-11-01 tomcat6.0.32Example four: List the current working directory of all the names are the be
-l/opt/soft | grep "^d"List the details of the subdirectories below the/opt/soft fileOutput:[root@localhost opt]# ls-l/opt/soft | grep "^d"Drwxr-xr-x root root 4096 09-17 18:17 jdk1.6.0_16Drwxr-xr-x 1016 1016 4096 10-11 03:25 subversion-1.6.1Drwxr-xr-x 9 root root 4096 2011-11-01 tomcat6.0.32
Example four: lists all files under the current working directory with
can use Ls-lr/home/peidachang.
Example two: Lists the details of all directories in the current directory that start with "T", you can use the following command:
Command: Ls-l t*
You can view information for all files in the current directory with the filename beginning with "T". In fact, in the command format, the contents of square brackets can be omitted, for the command LS, if the command parameters and Operation objects are omitted, directly enter "LS", will be listed in the current wor
stamp are not saved.
-N or--name, save the original file name and time stamp when compressing the file.
-Q or--quiet does not display a warning message.
-R or--recursive recursively, all files and subdirectories under the specified directory are processed together.
-s
-T or--test test that the compressed file is correct.
The-V or--verbose displays the instruction execution process.
-V or--version display version information.
-num adjusts the speed of the compression with the specified n
.
Example two: Lists the details of all directories in the current directory that start with "T", you can use the following command:
Command: Ls-l t*You can view information for all files in the current directory with the filename beginning with "T". In fact, in the command format, the contents of square brackets can be omitted, for the command LS, if the command parameters and Operation objects are omitted, directly enter "LS", will be listed in the current working directory of the contents o
(generally Available) refers to generic version, used in production environment, DMR (development Milestone release) development milestone release, RC (Release Candidate) Release Candidate version, beta Open beta version, alpha internal beta version11.3/11.4/11.5 MySQL Installationseveral common installation packages for MySQL:rpm, source code, binary-free compilationBinary Compiler-Free package: No compilation, just take it.Download package to directory:/USR/LOCAL/SRC[[Emailprotected]~]#cd/usr
Command: ls-F/opt/soft | grep/$
List subdirectories under the/opt/soft File
Output:
[root@localhostopt]#ls-F/opt/soft|grep/$jdk1.6.0_16/subversion-1.6.1/tomcat6.0.32/
Command: ls-l/opt/soft | grep "^ d"
List the sub-directories under the/opt/soft File
Output:
[root@localhostopt]#ls-l/opt/soft|grep"^d"drwxr-xr-x10rootroot409609-1718:17jdk1.6.0_16drwxr-xr-x1610161016409610-1103:25subversion-1.6.1drwxr-
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.