Linux命令"ls"进阶说明
pwd:the current working directorycd -: return to the previous working directory- Filenames that begin with a period character are hidden. 使用
ls不会显示 这些文件,必须使用ls -a。 - By adding
-lto the commandls -l, we changed the output to the long format. ls -lt列出文件详细信息,并根据修改时间排序。使用ls -lt --revers会反向排序。ls -F,如果是文件夹会显示为:Downloads/,在结尾用符号“/”加以区别。ls -lh,文件大小以KB为单位显示,便于阅读。ls -lhS,按照文件大小排序,大小以KB为单位显示。
浙公网安备 33010602011771号