01 2025 档案
摘要:[miaojiang@localhost ~]$ sudo ls /root We trust you have received the usual lecture from the local System Administrator. It usually boils down to thes
阅读全文
摘要:[root@localhost ~]# su miaojiang [miaojiang@localhost root]$ env | egrep "USER|MAIL|PWD|LOGNAME" USER=miaojiang MAIL=/var/spool/mail/root PWD=/root LO
阅读全文
摘要:[root@localhost ~]# whoami root [root@localhost ~]# w 21:22:19 up 20 min, 3 users, load average: 0.00, 0.01, 0.01 USER TTY FROM LOGIN@ IDLE JCPU PCPU
阅读全文
摘要:[root@localhost ~]# ls -l /home/ total 0 drwx . 2 liuxin liuxin 62 Jan 8 22:16 liuxin drwx . 2 miaojiang miaojiang 62 Jan 8 22:31 miaojiang [root@loca
阅读全文
摘要:[root@localhost demo]# cat demo1.txt 1 2 3 4 5 6 7 8 9 10 11 [root@localhost demo]# xargs < demo1.txt 1 2 3 4 5 6 7 8 9 10 11 [root@localhost demo]# x
阅读全文
摘要:[root@localhost ~]# find /demo -maxdepth 1 -name "*.txt" /demo/aaa.txt /demo/bbb.txt /demo/c.txt /demo/alex.txt /demo/sort.txt /demo/sort1.txt /demo/i
阅读全文
摘要:[root@localhost demo]# w 08:59:43 up 11 min, 1 user, load average: 0.00, 0.01, 0.01 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.0.105
阅读全文
摘要:[root@localhost demo]# cat luffy.txt 10.0.0.1 10.0.0.1 10.0.0.51 10.0.0.51 10.0.0.1 10.0.0.1 10.0.0.51 10.0.0.31 10.0.0.51 10.0.0.12 10.0.0.5 10.0.0.5
阅读全文
摘要:[root@localhost demo]# cat luffy.txt 10.0.0.1 10.0.0.1 10.0.0.51 10.0.0.51 10.0.0.1 10.0.0.1 10.0.0.51 10.0.0.31 10.0.0.51 10.0.0.12 10.0.0.5 10.0.0.5
阅读全文
摘要:[root@localhost demo]# cat alex.txt my name is alex. he love linux. he like eat apple. [root@localhost demo]# cut -c 4 alex.txt #截取每行的第4个字符 n l l [roo
阅读全文