2022年LINUX文件操作命令 .pdf
《2022年LINUX文件操作命令 .pdf》由会员分享,可在线阅读,更多相关《2022年LINUX文件操作命令 .pdf(12页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、LINUX文件操作命令From :http:/ ? 2010 zheng_zhen0519, Inc. All rights reserved.显示当前目录帮助文件PWD(1) User Commands PWD(1)NAME pwd - print name of current/working directorySYNOPSIS pwd OPTION.DESCRIPTION Print the full filename of the current working directory. -L, -logical use PWD from environment, even if it c
2、ontains symlinks -P, -physical avoid all symlinks -help display this help and exit -version output version information and exit NOTE: your shell may have its own version of pwd, which usually super sedes the version described here. Please refer to your shells docu mentation for details about the opt
3、ions it supports.AUTHOR Written by Jim Meyering.REPORTING BUGS Report pwd bugs to bug-coreutilsgnu.org GNU coreutils home page: General help using GNU software: COPYRIGHT Copyright ? 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free
4、to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.SEE ALSO名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 12 页 - - - - - - - - - getcwd(3) The full documentation for pwd is maintained as a Texinfo manual. If the info and pwd pro
5、grams are properly installed at your site, the com mand info coreutils pwd invocation should give you access to the complete manual.GNU coreutils 7.4 March 2010 PWD(1)zhengzhenzhengzhen-laptop:$ pwd -P/home/zhengzhenzhengzhenzhengzhen-laptop:$ pwd -L/home/zhengzhen创建目录mk 好理解吧dir呢?也好理解在windows下输入dir
6、就会显示C根目录下的的目录和文件帮助文件MKDIR(1) User Commands MKDIR(1)NAME mkdir - make directoriesSYNOPSIS mkdir OPTION. DIRECTORY .DESCRIPTION Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, -mode=MODE set file mode (as in chmod),
7、not a=rwx - umask -p, -parents no error if existing, make parent directories as needed -v, -verbose print a message for each created directory名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 12 页 - - - - - - - - - -Z, -context=CTX set the SELinux security context
8、 of each created directory to CTX -help display this help and exit -version output version information and exitAUTHOR Written by David MacKenzie.REPORTING BUGS Report mkdir bugs to bug-coreutilsgnu.org GNU coreutils home page: General help using GNU software: COPYRIGHT Copyright ? 2009 Free Software
9、 Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.SEE ALSO mkdir(2) The full documentation for mkdir is maintained as a Texinfo manual. If the info and mkdir programs
10、are properly installed at your site, the command info coreutils mkdir invocation should give you access to the complete manual.GNU coreutils 7.4 March 2010 MKDIR(1)zhengzhenzhengzhen-laptop:$ mkdir test/zhengzhenzhengzhenzhengzhen-laptop:$ ls testtest zhengzhen删除目录这个和dos理解了就好记了帮助文件:没有呢哈哈名师资料总结 - - -
11、精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 12 页 - - - - - - - - - 注:在当前;目录下有test/zhengzhentest/testzhengzhenzhengzhen-laptop:$ rmdir test/zhengzhen仅删除zhengzhen目录zhengzhenzhengzhen-laptop:$ rmdir test/test -p连同test/test全部删除cp 命令复制文件帮助文件:CHGRP(1) User Commands CHGRP(1)NA
12、ME chgrp - change group ownershipSYNOPSIS chgrp OPTION. GROUP FILE. chgrp OPTION. -reference=RFILE FILE.DESCRIPTION Change the group of each FILE to GROUP. With -reference, change the group of each FILE to that of RFILE. -c, -changes like verbose but report only when a change is made -dereference af
13、fect the referent of each symbolic link (this is the default), rather than the symbolic link itself -h, -no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can change the ownership of a symlink) -no-preserve-root do not treat / specially (the default
14、) -preserve-root fail to operate recursively on / -f, -silent, -quiet suppress most error messages -reference=RFILE名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 12 页 - - - - - - - - - use RFILEs group rather than specifying a GROUP value -R, -recursive operate
15、 on files and directories recursively -v, -verbose output a diagnostic for every file processed The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect. -H if a command line argument is a symbolic
16、link to a directory, traverse it -L traverse every symbolic link to a directory encountered -P do not traverse any symbolic links (default) -help display this help and exit -version output version information and exitEXAMPLES chgrp staff /u Change the group of /u to staff. chgrp -hR staff /u Change
17、the group of /u and subfiles to staff.AUTHOR Written by David MacKenzie and Jim Meyering.REPORTING BUGS Report chgrp bugs to bug-coreutilsgnu.org GNU coreutils home page: General help using GNU software: COPYRIGHT Copyright ? 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or l
18、ater . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.SEE ALSO The full documentation for chgrp is maintained as a Texinfo manual. If the info and chgrp programs are properly installed at your site, the command名师资料总结 - - -精品资料欢
19、迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 12 页 - - - - - - - - - info coreutils chgrp invocation should give you access to the complete manual.GNU coreutils 7.4 March 2010 CHGRP(1)在我的目录下有很多帮助文件2010cal.txtbchelp.txtcal.txtcdhelp.txtchgrphelp.txtchmodhelp.txtchownhelp.txtinf
20、ohelp.txtlshelp.txtman.txtmkdirhelp.txtmulu.txtpwdhelp.txtrmdirhelp.txtshutdownhelp.txt在根目录下看着很碍眼我为了少输入路径,就弄成这样了我想一次复制到我新建的help下怎么办?输入:zhengzhenzhengzhen-laptop:$ cp *.txt help然后查看help目录zhengzhenzhengzhen-laptop:$ ls -al help看到total 124drwxr-xr-x 2 zhengzhen zhengzhen 4096 2010-06-27 11:59 .drwxr-xr
21、-x 52 zhengzhen zhengzhen 4096 2010-06-27 11:57 .-rw-r-r- 1 zhengzhen zhengzhen 1980 2010-06-27 11:59 2010cal.txt-rw-r-r- 1 zhengzhen zhengzhen 40650 2010-06-27 11:59 bchelp.txt-rw-r-r- 1 zhengzhen zhengzhen 3589 2010-06-27 11:59 cal.txt-rw-r-r- 1 zhengzhen zhengzhen 0 2010-06-27 11:59 cdhelp.txt-rw
22、-r-r- 1 zhengzhen zhengzhen 2911 2010-06-27 11:59 chgrphelp.txt-rw-r-r- 1 zhengzhen zhengzhen 6584 2010-06-27 11:59 chmodhelp.txt-rw-r-r- 1 zhengzhen zhengzhen 4593 2010-06-27 11:59 chownhelp.txt-rw-r-r- 1 zhengzhen zhengzhen 12938 2010-06-27 11:59 infohelp.txt-rw-r-r- 1 zhengzhen zhengzhen 7856 201
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年LINUX文件操作命令 2022 LINUX 文件 操作 命令
限制150内