笔记linux

/var/tmp/systemd-private-6f8f84140d064efd963036d0c1cde6b7-rtkit-daemon.service-v8nShL/tmp:
. ..

/var/yp:
. ..

real 0m8.680s
user 0m0.182s
sys 0m5.859s
[root@localhost ~]# time ls -aR /

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# alias -p
alias cp='cp -i'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/passwd | grep test
test1❌5002:5002::/home/test1:/bin/bash
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# alias ct='cat /etc/passwd | grep test'
[root@localhost ~]# ct
test1❌5002:5002::/home/test1:/bin/bash
[root@localhost ~]#
[root@localhost ~]#

[root@localhost ~]# vim 6.sh
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -b 1 6.sh
h

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -b 1-3 6.sh
hel

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -b 1- 6.sh
hello
哈哈
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -b 1,3,4 6.sh
hll

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -nb 1 6.sh
h

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -d 1 6.sh
cut: 您必须指定一组字节、字符或域的列表
Try 'cut --help' for more information.
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cut -c 1 6.sh
h

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ll \

-a
总用量 10356
dr-xr-x---. 18 root root 4096 12月 16 14:30 .
dr-xr-xr-x. 18 root root 236 7月 14 15:35 ..
drwxr-xr-x. 2 root root 112 8月 19 15:57 123
-rw-r--r--. 1 root root 20 8月 2 10:22 1888.txt
-rw-r--r--. 1 root root 2205 8月 9 21:40 1.sh
-rw-r--r--. 1 root root 13 12月 16 14:30 6.sh
-rw-r--r--. 1 root root 12651 7月 14 18:49 ALTER
-rw-------. 1 root root 1507 7月 14 15:10 anaconda-ks.cfg
-rw-------. 1 root root 12382 8月 19 15:55 .bash_history
-rw-r--r--. 1 root root 18 12月 29 2013 .bash_logout
-rw-r--r--. 1 root root 176 12月 29 2013 .bash_profile
-rw-r--r--. 1 root root 176 12月 29 2013 .bashrc
drwx------. 17 root root 4096 8月 9 20:27 .cache
drwxr-xr-x. 17 root root 4096 8月 2 11:57 .config
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/shadow | grep root
root:$6$tK8ho6c8MaptYZrg$MFarDva.PsjChz2T37iSHDVjYGfWXSrmSipNNaLpTOGXVzoefpiiINH2Z74e5eTbttjGj55vMhv0bieu7dHUE.::0:99999:7:::
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/shadow | grep root | wc-c
bash: wc-c: 未找到命令...
[root@localhost ~]#
[root@localhost ~]# cat /etc/shadow | grep root | wc -c
126
[root@localhost ~]#

tar 打包
tar -crtx vf

f: file

f最后

z - gz

[root@localhost ~]#
[root@localhost ~]# vim 3.txt
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# sed '2a 打哈哈' 3.txt
1
2
打哈哈
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# sed '2i 原神' 3.txt
1
原神
2
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# sed '2a fuck\n 66666666' 3.txt
1
2
fuck
66666666
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]# cat 3.txt
1
2
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# sed '2d' 3.txt
1
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat 3.txt
1
2
34
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
54252
[root@localhost ~]# sed '1,3d' 3.txt
5
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]# sed '1d;2d;4d' 3.txt
34
t
24
2
4
rwe
rwr
e
f2efe
fwfw
54252
[root@localhost ~]#
[root@localhost ~]# seq 10
1
2
3
4
5
6
7
8
9
10
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# seq 10 | sed '2~2d'
1
3
5
7
9
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# seq 10 | sed '1~2d'
2
4
6
8
10
[root@localhost ~]#
[root@localhost ~]#

528 vi /etc/sysconfig/network-scripts/ifcfg-ens33
529 ping www.baidu.com
530 cat /etc/resolv.conf
531 time ls -aR /
532 useradd test1
533 passwd test1
534 su - test1
535 alias -p
536 cat /etc/passwd | grep test
537 alias ct='cat /etc/passwd | grep test'
538 ct
539 alias -p
540 vim 1,sh
541 vim 1.sh
542 vim 6.sh
543 cut -b 1 6.sh
544 cut -b 1-3 6.sh
545 cut -b 1- 6.sh
546 cut -b 1,3,4 6.sh
547 cut -nb 1 6.sh
548 cut -d 1 6.sh
549 cut -c 1 6.sh
550 cat /etc/passwd | grep test
551* cat /etc/passwd | grep
552 ll -a
553 cat /etc/shadow
554 cat /etc/shadow | grep sort
555 cat /etc/shadow | grep root
556 cat /etc/shadow | grep root | wc-c
557 cat /etc/shadow | grep root | wc -c
558 vim 3.txt
559 sed '2a 打哈哈' 3.txt
560 sed '2i 原神' 3.txt
561 sed '2a fuck\n 66666666' 3.txt
562 cat 3.txt
563 sef '2d' 3.txt
564 sed '2d' 3.txt
565 cat 3.txt
566 sed '1,3d' 3.txt
567 sed '1d;2d;4d' 3.txt
568 sed '2d;5d' 3.txt
569 sed '3,$d' 3.txt
570 seq 10
571 seq 10 | sed '2~2d'
572 seq 10 | sed '1~2d'
573 ll
574 ln 123 45
575 watch date
576 watch -n 5 -d ps aux
577 watch ls -l /path/to/directory
578 watch -n 1 df -h
579 history
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#

posted on 2025-12-16 14:06  爱尔奎特‘殷’  阅读(2)  评论(0)    收藏  举报