- split
合并 cat LF_* >largefile.tar.gz[hchen@RHELSVR5 applebak]# ls -l largefile.tar.gz -rw-r--r-- 1 hchen hchen 436774774 04-17 02:00 largefile.tar.gz [hchen@RHELSVR5 applebak]# split -b 50m largefile.tar.gz LF_ [hchen@RHELSVR5]# ls -l LF_* -rw-r--r-- 1 hchen hchen 52428800 05-10 18:34 LF_aa -rw-r--r-- 1 hchen hchen 52428800 05-10 18:34 LF_ab -rw-r--r-- 1 hchen hchen 52428800 05-10 18:34 LF_ac -rw-r--r-- 1 hchen hchen 52428800 05-10 18:34 LF_ad -rw-r--r-- 1 hchen hchen 52428800 05-10 18:34 LF_ae -rw-r--r-- 1 hchen hchen 52428800 05-10 18:35 LF_af -rw-r--r-- 1 hchen hchen 52428800 05-10 18:35 LF_ag -rw-r--r-- 1 hchen hchen 52428800 05-10 18:35 LF_ah -rw-r--r-- 1 hchen hchen 17344374 05-10 18:35 LF_ai
- nl命令其它和cat命令很像,只不过它会打上行号
[root@localhost redis-5.0.2]# nl redis.conf | head -n 10 1 # Redis configuration file example. 2 # 3 # Note that in order to read the configuration file, Redis must be 4 # started with the file path as first argument: 5 # 6 # ./redis-server /path/to/redis.conf 7 # Note on units: when memory size is needed, it is possible to specify 8 # it in the usual form of 1k 5GB 4M and so forth: 9 # [root@localhost redis-5.0.2]#
-
lsof
可以列出打开了的文件
-
lsof -i:1111 占用1111端口的进程
linux的一些简单命令
最新推荐文章于 2024-06-14 12:19:52 发布