with -l, show time as WORD instead of modification time:atime, access,use, ctime or status; use specified time as sort key if with -l, show times using style STYLE: full-iso, long-iso,iso, -tsort by modification time -uwith -lt: sort by, and show, access time with-l:showaccess...
with -l, WORD determineswhichtime to show; with --sort=time,sortby WORD (newest first) --time-style=TIME_STYLE time/date format with -l; see TIME_STYLE below -tsortby time, newest first; see --time# ✅ 按时间排序,最新的排在最前面 LS(1) User Commands LS(1) NAMEls- list direc...
as sort key if --sort=time (newest first) --time-style=TIME_STYLE time/date format with -l; see TIME_STYLE below -t sort by modification time, newest first -T, --tabsize=COLS assume tab stops at each COLS instead of 8 -u with -lt: sort by, and show, access time; with -l:...
find dir[ ...] -uid UID find dir[ ...] -gid GID find dir[ ...] -user USERNAME find dir[ ...] -group GROUPNAME find dir[ ...] -nouser find dir[ ...] -nogroup -uid UID:列出文件的所有者ID为UID的文件。 -gid GID:列出文件的用户组ID为GID的文件。 -user USERNAME:列出文件的...
sort -m -t’-‘ -k1,1 -k2,2 -k3,3 date.txt “` 在这个命令中,-m选项告诉sort命令按照多列进行排序,-t’-‘选项指定列分隔符为“-”,-k1,1 -k2,2 -k3,3选项指定按照第1列、第2列和第3列进行排序。 4. 必须注意的是,sort命令默认按照字母顺序进行排序,因此如果日期的格式不符合字母顺序,可...
7.磁盘空间 df -h 显示已经挂载的分区列表 ls -lSr |more 以尺寸大小排列文件和目录 du -sh dir1 估算目录 'dir1' 已经使用的磁盘空间' du -sk * | sort -rn 以容量大小为依据依次显示文件和目录的大小 rpm -q -a --qf '%10{SIZE}t%{NAME}n' | sort -k1,1n 以大小为依据依次显示已安装的rp...
当执行man date时,有 DATE(1) 出现,其中的数字代表指令的类型,常用的数字及其类型如下: 3. info info 与 man 类似,但是 info 将文档分成一个个页面,每个页面可以跳转。 4. doc /usr/share/doc 存放着软件的一整套说明文件。 关机 1. who 在关机前需要先使用 who 命令查看有没有其它用户在线。
和find命令命令比,whereis查找非常快,因为Linux将系统里所有文件记录在一个数据库文件中,whereis是直接从数据库文件中查找。而find命令是遍历硬盘来查找,所以whereis会比find快。 语法格式 whereis [ OPTIONS ] file name... 选项说明 -b #只查找二进制文件 -B<目录> #只在指定的目录下查找二进制文件 -f ...
DwarFS can get close to the throughput of EROFS by using zstd instead of lzma compression: $ dwarfs perl-install-1M-zstd.dwarfs mnt -oworkers=8 find mnt -type f -print0 | xargs -0 -P16 -n64 cat | dd of=/dev/null bs=1M status=progress 49224202357 bytes (49 GB, 46 GiB) copied,...
offilestatus information)with -l: show ctime andsortby name;... Jump back to commands list ↑ Theunameandwhoamicommands allow you to access some basic information that comes in handy when you work on multiple systems. Theunamecommand in Linux displays information about the system’s kernel, in...