个人笔记

pwd-print name of current working directory.

 

cd-change directory.   

cd .. 返回当前目录父目录. 

cd ./ 当前目录下的子目录,一般./可以省略

cd - 回到先前的目录

cd ~user_name changes the working directory to the home directory of user_name.

 

ls-list directory contents.  

ls -a   all   list all directory

ls -d   directory  list the contents of the directory

ls -f    classify  所列出的名字后面加上一个提示符

ls -h human-readable  以可读格式而不是字节数显示文件大小

ls -l  长格式显示结果

ls -r reverse ls通常是一字母升序排列

ls -s 按照文件大小排列

ls -t time 时间排序

file determine file type 确定文件类型

你可能感兴趣的:(个人笔记)