极力推荐文章:欢迎收藏
本篇文章主要介绍 Android
开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:
一、cd 命令
一、cd 命令
cd
命令是 Linux
常用命令之一,主要用于进入目录(相当于windows的文件夹)
。TestLinuxCommond
这个目录。cd TestLinuxCommond/
wangjie@ubuntu:~$ cd TestLinuxCommond/
wangjie@ubuntu:~/TestLinuxCommond$
比如我想退出TestLinuxCommond
这个目录。cd ..
wangjie@ubuntu:~/TestLinuxCommond$ cd ..
wangjie@ubuntu:~$
如果想退两层目录,可以使用cd ../..
wangjie@ubuntu:~/TestLinuxCommond/testmv/test$ ls
wangjie@ubuntu:~/TestLinuxCommond/testmv/test$ cd ../..
wangjie@ubuntu:~/TestLinuxCommond$
二、--help 命令
当我们不知道一个命令如何使用时候,可以使用 --help
查看这个命令是干嘛的。--help
相当于用户命令帮忙的手册。 cd
命令是如何使用的,可以使用cd ---help
wangjie@ubuntu:~/TestLinuxCommond$ cd ---help
-bash: cd: --: invalid option
cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
wangjie@ubuntu:~/TestLinuxCommond$
比如 我想看看 ls
命令是如何使用的,使用参数如何,可以使用ls ---help
wangjie@ubuntu:~/TestLinuxCommond$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print C-style escapes for nongraphic characters
--block-size=SIZE scale sizes by SIZE before printing them. E.g.,
'--block-size=M' prints sizes in units of
1,048,576 bytes. See SIZE format below.
-B, --ignore-backups do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (time of last
modification of file status information)
with -l: show ctime and sort by name
otherwise: sort by ctime, newest first
-C list entries by columns
--color[=WHEN] colorize the output. WHEN defaults to 'always'
or can be 'never' or 'auto'. More info below
-d, --directory list directory entries instead of contents,
and do not dereference symbolic links
-D, --dired generate output designed for Emacs' dired mode
-f do not sort, enable -aU, disable -ls --color
-F, --classify append indicator (one of */=>@|) to entries
--file-type likewise, except do not append '*'
--format=WORD across -x, commas -m, horizontal -x, long -l,
single-column -1