셸 에 대한 알려 지지 않 았 지만 유용 한 명령 공유
1.mtr 명령,mtr 가 실행 하 는 호스트 와 특정한 사이트 의 직접 네트워크 연결 을 봅 니 다.다음 과 같 습 니 다.
mtr google.com
내용 을 보 여 주세요.
My traceroute [v0.75]
localhost.localdomain (0.0.0.0) Sun May 18 19:32:36 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 103.31.240.129 0.0% 42 0.5 0.5 0.5 0.6 0.0
2. 118.126.0.9 0.0% 42 0.3 0.3 0.2 0.4 0.0
3. 210.245.144.37 0.0% 42 2.9 3.6 2.9 22.1 3.0
4. 113.10.231.125 0.0% 42 3.1 3.8 2.7 40.2 5.8
5. irb9.10g-tc2.wpc.nwtgigalink.com 0.0% 42 2.9 3.1 2.9 5.1 0.4
6. ae2.10g-pp2.wpc.nwtgigalink.com 0.0% 42 3.2 3.0 2.9 3.2 0.1
7. google3-10G.hkix.net 0.0% 42 4.6 4.5 4.3 4.6 0.1
8. 209.85.248.62 0.0% 42 5.0 5.3 4.8 13.7 1.6
9. 209.85.241.171 0.0% 42 5.3 5.2 5.1 5.7 0.1
10. hkg03s16-in-f8.1e100.net 0.0% 41 4.8 4.9 4.7 5.0 0.1
2.nl 명령,보 이 는 텍스트 에 줄 번 호 를 추가 합 니 다.다음 과 같 습 니 다.cat a.log
aa
nl a.log
1 aa
3.shuf 명령,무 작위 로 파일 이나 폴 더 에서 줄 이나 파일 을 선택 합 니 다.
[root@localhost mwq]# ls | shuf -n1
a.log
[root@localhost mwq]# ls | shuf -n1
a.log
[root@localhost mwq]# ls | shuf -n1
a.log
[root@localhost mwq]# ls | shuf -n1
20140512.sql
[root@localhost mwq]# ls | shuf -n1
20140512.sql
[root@localhost mwq]# ls | shuf -n1
a.log
[root@localhost mwq]# vim a.log
[root@localhost mwq]# cat a.log | shuf -n1
aa
[root@localhost mwq]# cat a.log | shuf -n1
dd
[root@localhost mwq]# cat a.log | shuf -n1
aa
[root@localhost mwq]# cat a.log | shuf -n1
ff
물론 cat a.log|shuf-n2 와 같은 인 자 를 바 꾸 어 두 줄 의 내용 을 가 져 올 수 있 습 니 다.4.last 명령,마지막 로그 인 또는 로그 인 한 사용자 보기
root pts/4 xxxxxxxxxxx Sun May 18 19:12 still logged in
root pts/4 xxxxxxxxxxx Fri May 16 09:39 - 15:17 (05:38)
root pts/4 xxxxxxxxxxx Wed May 14 17:13 - 18:01 (00:48)
root pts/4 xxxxxxxxxxx Mon May 12 10:50 - 13:38 (02:47)
root pts/4 xxxxxxxxxxx Mon May 12 10:48 - 10:50 (00:02)
root pts/1 xxxxxxxxxxx Fri May 9 11:58 still logged in
5.pstree 는 현재 프로 세 스 노드 를 트 리 구조 로 표시 합 니 다.init─┬─abrt-dump-oops
├─abrtd
├─acpid
├─atd
├─auditd───{auditd}
├─avahi-daemon───avahi-daemon
├─console-kit-dae───63*[{console-kit-da}]
├─crond
├─dbus-daemon───{dbus-daemon}
├─hald───hald-runner─┬─hald-addon-acpi
│ └─hald-addon-inpu
├─irqbalance
├─java───330*[{java}]
├─master───qmgr
├─6*[mingetty]
├─mysqld_safe───mysqld───11*[{mysqld}]
├─rhsmcertd───rhsmcertd
├─rsyslogd───3*[{rsyslogd}]
├─sshd─┬─4*[sshd───bash]
│ └─sshd───bash───pstree
├─stap-serverd
├─udevd───2*[udevd]
└─vsftpd
자,오늘 은 이렇게 많이 소개 하고 이따가 계속...
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
✨〰️ ZI 〰️✨ Vim 구문❮ ZI ❯ 🧙♀️ Zsh를 위한 스위스 아미 나이프. 모든 것을 함께 붙일 수 있도록 설계되었습니다. zsh 유형의 파일에 있는 명령에 대한 Vim 구문 정의입니다. 📥 설치 Vim 플러그인으로 로드합니다. 예를...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.