cal [options] [[[day] month] year] 日历 -1, --one show only current month (default)(current 现在的) -3, --three show previous, current and next month(previous 以前的) -s, --sunday Sunday as first day of week (default) -m, --monday Monday as first day of week -j, --julian...
1. find /root -name myfile 根据名字查询指定目录下的文件 2. find /root -type d 根据文件类型查询root目录下的所有文件夹,d为目录,f为普通文件 3. find /root -type d -ls 查询root目录下所有的文件夹,并显示他们的详情 4. find /root/test -name 'index.*' 查询所有以index.开头的文件 5. find...
2.2 dpkg命令 root@huxiping:~# dpkg --helpUsage:dpkg -i|--install <.deb file name> ... | -R|--recursive...dpkg--unpack <.deb file name> ... | -R|--recursive...dpkg -A|--record-avail <.deb file name> ... | -R...
displays. Displays only mode, user, group, security context and file name. --scontext Display only security context and file name. --help 显示此帮助信息并退出 --version 显示版本信息并退出 SIZE is an integer and optional unit(example: 10M is 10*1024*1024). Units are K, M, G, T, P,...
(默认) --recursive-unlink 解压目录之前先清除目录层次 --remove-files 在添加文件至归档后删除它们 --skip-old-files don't replace existing files when extracting, silently skip over them -U, --unlink-first 在解压要重写的文件之前先删除它们 -W, --verify 在写入以后尝试校验归档 选择输出流: --...
- replace all occurrences of a string in a file, and print the result sed 's/find/replace/g' filename - replace all occurrences of a string in a file, and overwrite the file contents sed -i 's/find/replace/g' filename - replace all occurrences of an extended regular expression in ...
# ethtool eth0 # 显示以太网状态(replaces mii-diag) # ethtool -s eth0 speed 100 duplex full # 把网卡 eth0 速度改为 100兆/秒,采用全双工 # ethtool -s eth0 autoneg off # 禁用自动协商模式 # ethtool -p eth1 # 闪烁网络接口 LED 灯 - 如果支持的话,非常实用 # ip link show # 在 ...
Recursive, regular files (including hidden ones) in this and all subdirectories find . -type f -exec sed -i 's/foo/bar/g' {} + 1. If you are using zsh: sed -i -- 's/foo/bar/g' **/*(D.) 1. (may fail if the list is too big, seezargsto work around). ...
g. --no-D) #关闭一个隐含的选项 -r, --recursive recurse into directories -R, --relative use relative path names --no-implied-dirs don't send implied dirs with --relative -b, --backup make backups (see --suffix & --backup-dir) --backup-dir=DIR make backups into hierarchy based...
You will have to use rms --recursive/-r flag to remove directories. [!NOTE] There are scenarios where using fd … -X rm -r can cause race conditions: if you have a path like …/foo/bar/foo/… and want to remove all directories named foo, you can end up in a situation where ...