所有关于cd命令 (96)

linux命令:cd - - cd cd -rootopen.com
linux命令:cd - - cd cd -rootopen.com
2018-11-26 23:26:21

- 中划线,表示前一个工作目录,这里的前一个目录是/home。

linux命令:cd - - cd cd - rootopen.com
linux命令:cd - - cd cd - rootopen.com
2018-07-24 23:10:21

会改成当前目录,换句话说,它什么都不做。

linux命令:cd . . cd cd .rootopen.com
linux命令:cd . . cd cd .rootopen.com
2018-07-24 22:53:31

cd的另一个便利功能是任何用户只需使用波浪号( ~ )作为参数就能直接返回其主目录。 主目录,也称为登录目录,是类Unix操作系统上的目录,用作用户个人文件,目录和程序的存储库。 它也是用户登录系统后的第一个目录。 代字号是一个短的波浪形水平线字符,表示当前用户的主目录。 也就是说,任何用户都可以通过键入以下内容然后按Enter键立即返回其主目录

linux命令:cd ~ ~ cd cd ~rootopen.com
linux命令:cd ~ ~ cd cd ~rootopen.com
2018-07-24 22:48:40

linux命令:cd .. .. cd cd ..rootopen.com
linux命令:cd .. .. cd cd ..rootopen.com
2018-07-24 22:46:08

/usr/sbin 包含系统管理员使用的非重要系统实用程序

linux命令:cd /usr/sbin /usr/sbin cd cd /usr/sbinrootopen.com
linux命令:cd /usr/sbin /usr/sbin cd cd /usr/sbinrootopen.com
2018-07-24 22:45:26

无论它在系统中的位置(因为它是绝对路径),都会更改为根目录(由正斜杠表示):

linux命令:cd / / cd cd /rootopen.com
linux命令:cd / / cd cd /rootopen.com
2018-07-24 22:43:18

我发现这很方便将包中的所有bin文件链接到/ usr / bin或将所有man文件链接到/ usr / share / man。您可以用* / *替换*来操作子目录中的所有文件。

linux命令:cd /this/directory; for f in *; do ln -s `pwd`/$f /that/directory; done done /that/directory; `pwd`/$f -s ln do *; in f for /this/directory; cd cd /this/directory; for f in *; do ln -s `pwd`/$f /that/directory; donerootopen.com
linux命令:cd /this/directory; for f in *; do ln -s `pwd`/$f /that/directory; done done /that/directory; `pwd`/$f -s ln do *; in f for /this/directory; cd cd /this/directory; for f in *; do ln -s `pwd`/$f /that/directory; donerootopen.com
2018-01-11 22:12:48

Greps IRC记录短语并列出说出这些短语的用户。

linux命令:cd ~/.purple/logs/; egrep -ri "i can haz|pwn|l33t|w00|zomg" * | cut -d'/' -f 3 | sort | uniq | xargs -I {} echo "Note to self: ban user '{}'" '{}'" user ban self: to "Note echo {} -I xargs | uniq | sort | 3 -f -d'/' cut | * haz|pwn|l33t|w00|zomg" can "i -ri egrep ~/.purple/logs/; cd cd ~/.purple/logs/; egrep -ri "i can haz|pwn|l33t|w00|zomg" * | cut -d'/' -f 3 | sort | uniq | xargs -I {} echo "Note to self: ban user '{}'"rootopen.com
linux命令:cd ~/.purple/logs/; egrep -ri "i can haz|pwn|l33t|w00|zomg" * | cut -d'/' -f 3 | sort | uniq | xargs -I {} echo "Note to self: ban user '{}'" '{}'" user ban self: to "Note echo {} -I xargs | uniq | sort | 3 -f -d'/' cut | * haz|pwn|l33t|w00|zomg" can "i -ri egrep ~/.purple/logs/; cd cd ~/.purple/logs/; egrep -ri "i can haz|pwn|l33t|w00|zomg" * | cut -d'/' -f 3 | sort | uniq | xargs -I {} echo "Note to self: ban user '{}'"rootopen.com
2018-03-04 05:50:48

如果您在/ begin / path / with / XX / patterncd XX YY会将您当前的目录更改为/ begin / path / with / YY / patternin ZSH

linux命令:cd XX YY YY XX cd cd XX YYrootopen.com
linux命令:cd XX YY YY XX cd cd XX YYrootopen.com
2018-02-27 18:45:48

只需输入2个字符并输入,你就会回来。

linux命令:cd cd cdrootopen.com
linux命令:cd cd cdrootopen.com
2018-06-07 19:52:48

linux命令:cd - - cd cd -rootopen.com
linux命令:cd - - cd cd -rootopen.com
2018-04-09 05:57:48

linux命令:cd /some/directory \&\& tar cf - | cd /some/directory \&\& tar xvf - */ */ - xvf tar \&\& /some/directory cd | - cf tar \&\& /some/directory cd cd /some/directory \&\& tar cf - | cd /some/directory \&\& tar xvf - */rootopen.com
linux命令:cd /some/directory \&\& tar cf - | cd /some/directory \&\& tar xvf - */ */ - xvf tar \&\& /some/directory cd | - cf tar \&\& /some/directory cd cd /some/directory \&\& tar cf - | cd /some/directory \&\& tar xvf - */rootopen.com
2018-03-21 17:03:48

请参阅示例输出。

linux命令:cd // // cd cd //rootopen.com
linux命令:cd // // cd cd //rootopen.com
2018-04-20 11:06:48

在Windows cmd.exe窗口中,可以使用cd更改目录,但是如果需要转到另一个驱动器上的目录,则需要先键入驱动器号和冒号(例如d :)。使用cd上的/ d,您不需要此中间step.cd /?在Windows XP上测试

linux命令:cd /d d:\Windows d:\Windows /d cd cd /d d:\Windowsrootopen.com
linux命令:cd /d d:\Windows d:\Windows /d cd cd /d d:\Windowsrootopen.com
2018-05-31 17:41:48

有用于快速返回到该驱动器内的子目录的当前驱动器的Windows根目录。'cd'和反斜杠之间没有空格:'cd \'或'cd \'具有相同的效果

linux命令:cd \ \ cd cd \rootopen.com
linux命令:cd \ \ cd cd \rootopen.com
2018-02-11 03:28:48

cd - 会返回到你的cd命令的前一个目录。 NB:以前的目录总是存储在$ OLDPWD变量中。

linux命令:cd - - cd cd -rootopen.com
linux命令:cd - - cd cd -rootopen.com
2018-03-01 00:14:48

只适用于在/ usr / portscredit中将端口安装到http://wiki.freebsd.org/PortsTasks的freeBSD

linux命令:cd /usr/ports; grep -F "`for o in \`pkg_info -qao\` ; \ do echo "|/usr/ports/${o}|" ; done`" `make -V INDEXFILE` | \ grep -i \|ports@freebsd.org\| | cut -f 2 -d \| \| -d 2 -f cut | \|ports@freebsd.org\| -i grep \ | INDEXFILE` -V `make done`" ; "|/usr/ports/${o}|" echo do \ ; -qao\` \`pkg_info in o "`for -F grep /usr/ports; cd cd /usr/ports; grep -F "`for o in \`pkg_info -qao\` ; \ do echo "|/usr/ports/${o}|" ; done`" `make -V INDEXFILE` | \ grep -i \|ports@freebsd.org\| | cut -f 2 -d \|rootopen.com
linux命令:cd /usr/ports; grep -F "`for o in \`pkg_info -qao\` ; \ do echo "|/usr/ports/${o}|" ; done`" `make -V INDEXFILE` | \ grep -i \|ports@freebsd.org\| | cut -f 2 -d \| \| -d 2 -f cut | \|ports@freebsd.org\| -i grep \ | INDEXFILE` -V `make done`" ; "|/usr/ports/${o}|" echo do \ ; -qao\` \`pkg_info in o "`for -F grep /usr/ports; cd cd /usr/ports; grep -F "`for o in \`pkg_info -qao\` ; \ do echo "|/usr/ports/${o}|" ; done`" `make -V INDEXFILE` | \ grep -i \|ports@freebsd.org\| | cut -f 2 -d \|rootopen.com
2018-05-24 14:07:48

!$回忆上一个命令的最后一个参数。例如,当您必须在同一个文件上操作多个操作时,这非常有用。

linux命令:cd !$ !$ cd cd !$rootopen.com
linux命令:cd !$ !$ cd cd !$rootopen.com
2018-01-06 23:54:48

linux命令:cd /source/directory; tar cf - . | tar xf - -C /destination/directory /destination/directory -C - xf tar | . - cf tar /source/directory; cd cd /source/directory; tar cf - . | tar xf - -C /destination/directoryrootopen.com
linux命令:cd /source/directory; tar cf - . | tar xf - -C /destination/directory /destination/directory -C - xf tar | . - cf tar /source/directory; cd cd /source/directory; tar cf - . | tar xf - -C /destination/directoryrootopen.com
2018-05-24 22:46:48
  • 1
  • 2
  • 3
  • 4
  • 5
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令