This isn’t really a tutorial, more like a list of some of the bash commands that I use the most and a very brief description of what I use them for. Dies ist nicht wirklich ein Tutorial, mehr wie eine Liste von einigen der Bash-Kommandos, dass ich die meisten und eine sehr kurze Beschreibung von dem, was ich mit ihnen für.
ifconfig
Used to find out your IP address. Verwendet, um herauszufinden, Ihre IP-Adresse. (look at wlan0, the line beginning with ‘inet addr’) (Blick auf wlan0, die Zeile, die mit "inet addr")
[kmurray@radon ~]$ /sbin/ifconfig [kmurray @ Radon ~] $ / sbin / ifconfig
lo Link encap:Local Loopback lo Link ENCAP: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet addr: 127.0.0.1 Mask: 255.0.0.0
inet6 addr: ::1/128 Scope:Host inet6 addr::: 1 / 128 Scope: Host
UP LOOPBACK RUNNING MTU:16436 Metric:1 UP LoopBack RUNNING MTU: 16436 Metric: 1
RX packets:19266 errors:0 dropped:0 overruns:0 frame:0 RX-Pakete: 19266 Fehler: 0 dropped: 0 overruns: 0 frame: 0
TX packets:19266 errors:0 dropped:0 overruns:0 carrier:0 TX packets: 19266 Fehler: 0 dropped: 0 overruns: 0 carrier: 0
collisions:0 txqueuelen:0 collisions: 0 txqueuelen: 0
RX bytes:963988 (941.3 KiB) TX bytes:963988 (941.3 KiB) RX bytes: 963988 (941,3 KiB) TX bytes: 963988 (941,3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1A:73:0F:0E:FD wlan0 Link ENCAP: Ethernet HWaddr 0.01 A: 73:0 F: 0E: FD
inet addr:192.168.1.139 Bcast:192.168.1.255 Mask:255.255.255.0 inet addr: 192.168.1.139 Bcast: 192.168.1.255 Mask: 255.255.255.0
inet6 addr: fe80::21a:73ff:fe0f:efd/64 Scope:Link inet6 addr: fe80:: 21a: 73ff: fe0f: efd/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets:8712 errors:0 dropped:0 overruns:0 frame:0 RX packets: 8712 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets:8944 errors:0 dropped:0 overruns:0 carrier:0 TX packets: 8944 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions:0 txqueuelen:1000 collisions: 0 txqueuelen: 1000
RX bytes:8002586 (7.6 MiB) TX bytes:3113446 (2.9 MiB) RX bytes: 8002586 (7.6 MiB) TX bytes: 3113446 (2.9 MiB)
route -n route-n
Used to find the IP address of your default gateway. Gebraucht zu finden, die IP-Adresse Ihres Standard-Gateway. (look for the line with a G in the Flags column} (Suchen Sie nach einer Zeile mit einem G-Flags in der Spalte)
[kmurray@radon ~]$ /sbin/route -n [kmurray @ Radon ~] $ / sbin / route-n
Kernel IP routing table Kernel IP-Routing-Tabelle
Destination Gateway Genmask Flags Metric Ref Use Iface Ziel-Gateway Genmask Flags Metric Ref
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
ip
I use this one similarly to ifconfig and route. Ich nutze dies ein ähnlich wie ifconfig und route.
[kmurray@radon ~]$ /sbin/ip route [kmurray @ Radon ~] $ / sbin / IP-Route
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.139 192.168.1.0/24 dev wlan0 Kernel Protostern Anwendungsbereich Link src 192.168.1.139
default via 192.168.1.1 dev wlan0 proto static default via 192.168.1.1 dev wlan0 Proto statische
[kmurray@radon ~]$ /sbin/ip addr [kmurray @ Radon ~] $ / sbin / ip addr
1: lo: 1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 Link / Loopback-00:00:00:00:00:00 BRD 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo inet 127.0.0.1 / 8 Anwendungsbereich Host-lo
inet6 ::1/128 scope host inet6:: 1 / 128 Umfang Host
valid_lft forever preferred_lft forever valid_lft ewig preferred_lft ewig
2: eth0: 2: eth0:
link/ether 00:16:d4:ec:25:4b brd ff:ff:ff:ff:ff:ff Link / ether 00:16: d4: ec: 25:4 b ff brd: ff: ff: ff: ff: ff
3: wlan0: 3: wlan0:
link/ether 00:1a:73:0f:0e:fd brd ff:ff:ff:ff:ff:ff Link / Ether 0.01 a: 73:0 f: 0E: fd brd ff: ff: ff: ff: ff: ff
inet 192.168.1.139/24 brd 192.168.1.255 scope global wlan0 inet 192.168.1.139/24 brd 192.168.1.255 Anwendungsbereich globalen wlan0
inet6 fe80::21a:73ff:fe0f:efd/64 scope link inet6 fe80:: 21a: 73ff: fe0f: efd/64 Anwendungsbereich Link
valid_lft forever preferred_lft forever valid_lft ewig preferred_lft ewig
ping
Used to test network connectivity. Gebraucht zu testen Netzwerkverbindung.
[kmurray@radon ~]$ ping 192.168.1.1 [kmurray @ Radon ~] $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. PING 192.168.1.1 (192.168.1.1) 56 (84) Bytes Daten.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.23 ms 64 Bytes von 192.168.1.1: icmp_seq = 1 ttl = 64 Zeit = 1,23 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.17 ms 64 Bytes von 192.168.1.1: icmp_seq = 2 ttl = 64 Zeit = 1,17 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.14 ms 64 Bytes von 192.168.1.1: icmp_seq = 3 ttl = 64 Zeit = 1,14 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.19 ms 64 Bytes von 192.168.1.1: icmp_seq = 4 ttl = 64 Zeit = 1,19 ms
^C ^ C
— 192.168.1.1 ping statistics — - 192.168.1.1 Ping-Statistik --
4 packets transmitted, 4 received, 0% packet loss, time 3268ms 4 Pakete übertragen, 4 empfangen, 0% Paket-Verlust-, Zeit-3268ms
rtt min/avg/max/mdev = 1.149/1.190/1.238/0.032 ms RTT min / avg / max / mdev = 1.149/1.190/1.238/0.032 ms
traceroute
Another network connectivity tool. Ein weiteres Tool Netzwerk-Konnektivität. This one tells you how many routers you have to go through in order to connect to a particular host. Dies ein erfahren Sie, wie viele Router müssen Sie sich um eine Verbindung zu einem bestimmten Host.
[kmurray@radon ~]$ traceroute simplehelp.net [kmurray @ Radon ~] $ traceroute simplehelp.net
traceroute to simplehelp.net (74.52.95.42), 30 hops max, 60 byte packets traceroute zu simplehelp.net (74.52.95.42), 30 Hopfen max, 60-Byte-Paketen
1 192.168.1.1 (192.168.1.1) 1.121 ms 2.010 ms 2.218 ms 1 192.168.1.1 (192.168.1.1) 1,121 ms 2,010 ms 2,218 ms
2 24.68.178.1 (24.68.178.1) 25.950 ms * * 2 24.68.178.1 (24.68.178.1) 25,950 ms * *
3 * * * 3 * * *
4 * * * 4 * * *
5 rc2bb-pos0-1-5-0.vc.shawcable.net (66.163.77.185) 39.178 ms 128.371 ms 50.787 ms 5 rc2bb-pos0-1-5-0.vc.shawcable.net (66.163.77.185) 39,178 ms 128,371 ms 50,787 ms
6 rc2sj-pos6-0-0.cl.shawcable.net (66.163.77.70) 119.703 ms 76.364 ms 88.337 ms 6 rc2sj-pos6-0-0.cl.shawcable.net (66.163.77.70) 119,703 ms 76,364 ms 88,337 ms
7 rc2sj-ge2-0-0.cl.shawcable.net (66.163.67.10) 110.862 ms 55.853 ms * 7 rc2sj-GE2-0-0.cl.shawcable.net (66.163.67.10) 110,862 ms 55,853 ms *
8 * rx0sj-comcast.cl.shawcable.net (66.163.67.110) 61.930 ms 109.439 ms 8 * rx0sj-comcast.cl.shawcable.net (66.163.67.110) 61,930 ms 109,439 ms
9 pos-0-8-0-0-cr01.losangeles.ca.ibone.comcast.net (68.86.85.82) 79.587 ms 102.306 ms 81.225 ms 9 pos-0-8-0-0-cr01.losangeles.ca.ibone.comcast.net (68.86.85.82) 79,587 ms 102,306 ms 81,225 ms
10 pos-0-9-0-0-cr01.dallas.tx.ibone.comcast.net (68.86.85.142) 120.064 ms 125.584 ms 118.207 ms 10 pos-0-9-0-0-cr01.dallas.tx.ibone.comcast.net (68.86.85.142) 120,064 ms 125,584 ms 118,207 ms
11 68.86.88.50 (68.86.88.50) 107.133 ms 109.350 ms 113.994 ms 11 68.86.88.50 (68.86.88.50) 107,133 ms 109,350 ms 113,994 ms
12 te9-1.dsr02.dllstx3.theplanet.com (70.87.253.22) 87.928 ms 87.949 ms te9-1.dsr01.dllstx3.theplanet.com (70.87.253.6) 89.500 ms 12 te9-1.dsr02.dllstx3.theplanet.com (70.87.253.22) 87,928 ms 87,949 ms te9-1.dsr01.dllstx3.theplanet.com (70.87.253.6) 89,500 ms
13 76.fd.5746.static.theplanet.com (70.87.253.118) 99.789 ms 97.329 ms 100.789 ms 13 76.fd.5746.static.theplanet.com (70.87.253.118) 99,789 ms 97,329 ms 100,789 ms
14 po1.car03.dllstx6.theplanet.com (12.96.160.5) 91.323 ms 91.788 ms po2.car03.dllstx6.theplanet.com (12.96.160.37) 89.571 ms 14 po1.car03.dllstx6.theplanet.com (12.96.160.5) 91,323 ms 91,788 ms po2.car03.dllstx6.theplanet.com (12.96.160.37) 89,571 ms
15 2a.5f.344a.static.theplanet.com (74.52.95.42) 92.695 ms 92.601 ms 91.871 ms 15 2a.5f.344a.static.theplanet.com (74.52.95.42) 92,695 ms 92,601 ms 91,871 ms
host Gastgeber
Used to look up the IP address of a fully qualified domain name. Verwendet, um die IP-Adresse eines voll qualifizierten Domain-Namen.
[kmurray@radon ~]$ host simplehelp.net [kmurray @ Radon ~] $ host simplehelp.net
simplehelp.net has address 74.52.95.42 simplehelp.net hat die Adresse 74.52.95.42
simplehelp.net mail is handled by 10 aspmx.l.google.com. simplehelp.net Mail wird von 10 aspmx.l.google.com.
dig graben
A more advanced DNS query tool. Eine fortgeschrittenere DNS-Abfrage-Tool.
[kmurray@radon ~]$ dig simplehelp.net a [kmurray @ Radon ~] $ dig simplehelp.net ein
; <<>> DiG 9.5.0-P2 <<>> simplehelp.net a ; <<>> DiG 9.5.0-P2 <<>> simplehelp.net ein
;; global options: printcmd ;; Globalen Optionen: printcmd
;; Got answer: ;; Got Antwort:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25242 ;; ->> HEADER <<- Opcode: QUERY, status: NOERROR, id: 25242
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; Flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION: ;; ANFRAGE ABSCHNITT:
;simplehelp.net. ; simplehelp.net. IN A IN EINEM
;; ANSWER SECTION: ;; ANSWER SECTION:
simplehelp.net. 86238 IN A 74.52.95.42 86238 IN A 74.52.95.42
;; Query time: 1 msec ;; Query time: 1 ms
;; SERVER: 192.168.1.1#53(192.168.1.1) ;; SERVER: 192.168.1.1 # 53 (192.168.1.1)
;; WHEN: Fri Oct 31 20:21:49 2008 ;; WANN: Freitag 31 Oktober 20:21:49 2008
;; MSG SIZE rcvd: 48 ;; MSG SIZE rcvd: 48
This shows that the IP address of the server where simplehelp.net resides is 74.52.95.42. Dies zeigt, dass die IP-Adresse des Servers, mit dem simplehelp.net wohnt, ist 74.52.95.42.
[kmurray@radon ~]$ dig simplehelp.net mx [kmurray @ Radon ~] $ dig simplehelp.net mx
; <<>> DiG 9.5.0-P2 <<>> simplehelp.net mx ; <<>> DiG 9.5.0-P2 <<>> simplehelp.net mx
;; global options: printcmd ;; Globalen Optionen: printcmd
;; Got answer: ;; Got Antwort:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17277 ;; ->> HEADER <<- Opcode: QUERY, status: NOERROR, id: 17277
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2 ;; Flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2
;; QUESTION SECTION: ;; ANFRAGE ABSCHNITT:
;simplehelp.net. ; simplehelp.net. IN MX IN MX
;; ANSWER SECTION: ;; ANSWER SECTION:
simplehelp.net. 86317 IN MX 10 aspmx.l.google.com. 86317 IN MX 10 aspmx.l.google.com.
;; ADDITIONAL SECTION: ;; Zusätzlichen Abschnitt:
aspmx.l.google.com. 180 IN A 209.85.199.27 180 IN A 209.85.199.27
aspmx.l.google.com. 180 IN A 209.85.199.114 180 IN A 209.85.199.114
;; Query time: 40 msec ;; Query time: 40 ms
;; SERVER: 192.168.1.1#53(192.168.1.1) ;; SERVER: 192.168.1.1 # 53 (192.168.1.1)
;; WHEN: Fri Oct 31 20:21:51 2008 ;; WANN: Freitag 31 Oktober 20:21:51 2008
;; MSG SIZE rcvd: 98 ;; MSG SIZE rcvd: 98
This shows that mail for simplehelp.net is managed by aspmx.l.google.com and that aspmx.l.google.com has two IP addresses, 209.85.199.27 and 209.85.199.114. Dies zeigt, dass E-Mail für simplehelp.net wird von aspmx.l.google.com und dass aspmx.l.google.com hat zwei IP-Adressen, 209.85.199.27 und 209.85.199.114.
[kmurray@radon ~]$ dig simplehelp.net ns [kmurray @ Radon ~] $ dig simplehelp.net ns
; <<>> DiG 9.5.0-P2 <<>> simplehelp.net ns ; <<>> DiG 9.5.0-P2 <<>> simplehelp.net ns
;; global options: printcmd ;; Globalen Optionen: printcmd
;; Got answer: ;; Got Antwort:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62957 ;; ->> HEADER <<- Opcode: QUERY, status: NOERROR, id: 62957
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 8 ;; Flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 8
;; QUESTION SECTION: ;; ANFRAGE ABSCHNITT:
;simplehelp.net. ; simplehelp.net. IN NS IN NS
;; ANSWER SECTION: ;; ANSWER SECTION:
simplehelp.net. 70617 IN NS ns1.theplanet.com. 70617 IN NS ns1.theplanet.com.
simplehelp.net. 70617 IN NS ns2.theplanet.com. 70617 IN NS ns2.theplanet.com.
;; ADDITIONAL SECTION: ;; Zusätzlichen Abschnitt:
ns1.theplanet.com. 172785 IN A 70.86.61.133 172785 IN A 70.86.61.133
ns2.theplanet.com. 172785 IN A 70.86.61.135 172785 IN A 70.86.61.135
ns1.theplanet.com. 172785 IN A 70.86.61.134 172785 IN A 70.86.61.134
ns2.theplanet.com. 172785 IN A 70.87.7.73 172785 IN A 70.87.7.73
ns1.theplanet.com. 172785 IN A 70.87.7.71 172785 IN A 70.87.7.71
ns1.theplanet.com. 172785 IN A 70.87.7.70 172785 IN A 70.87.7.70
ns2.theplanet.com. 172785 IN A 70.86.61.136 172785 IN A 70.86.61.136
ns2.theplanet.com. 172785 IN A 70.87.7.72 172785 IN A 70.87.7.72
;; Query time: 33 msec ;; Query time: 33 ms
;; SERVER: 192.168.1.1#53(192.168.1.1) ;; SERVER: 192.168.1.1 # 53 (192.168.1.1)
;; WHEN: Fri Oct 31 20:21:55 2008 ;; WANN: Freitag 31 Oktober 20:21:55 2008
;; MSG SIZE rcvd: 209 ;; MSG SIZE rcvd: 209
This shows that DNS for simplehelp.net is handled by ns1.theplanet.com and ns2.theplanet.com. Dies zeigt, dass DNS für simplehelp.net wird von ns1.theplanet.com und ns2.theplanet.com. It also shows that these nameservers have multiple IP addresses. Es zeigt auch, dass diese Nameserver haben mehrere IP-Adressen.
iwlist
Get information from a wireless interface. Holen Sie sich Informationen aus eine Wireless-Schnittstelle. (this one needs to be run as root) (dies ein muss als root läuft)
[root@radon ~]# iwlist wlan0 scan [root @ Radon ~] # iwlist wlan0 Scan
wlan0 Scan completed : wlan0 Scan fertig gestellt:
Cell 01 - Address: 00:10:18:90:20:DB Cell 01 - Adresse: 00:10:18:90:20: DB
ESSID:”Coffee” ESSID: "Kaffee"
Mode:Master Modus: Master
Channel:6 Channel: 6
Frequency:2.437 GHz (Channel 6) Frequenz: 2,437 GHz (Channel 6)
Quality=96/100 Signal level:-37 dBm Noise level=-70 dBm Quality = 96/100 Signal level: -37 dBm Noise Ebene =- 70 dBm
Encryption key:off Schlüssel: off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s Bit-Raten: 1 Mb / s, 2 Mb / s, 5,5 Mbit / s; 11 Mb / s; 6 Mb / s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 9 Mb / s; 12 Mb / s, 18 Mbit / s, 24 Mbit / s, 36 Mbit / s
48 Mb/s; 54 Mb/s 48 Mb / s, 54 Mbit / s
Extra:tsf=0000017f91cc818a Extra: TSF = 0000017f91cc818a
Extra: Last beacon: 19ms ago Extra: Letzte Beacon: 19ms Tage
Cell 02 - Address: 00:11:50:6E:BC:3A Cell 02 - Adresse: 00:11:50:6 E: BC: 3A
ESSID:”Belkin Traveler” ESSID: "Belkin Traveler"
Mode:Master Modus: Master
Channel:1 Channel: 1
Frequency:2.412 GHz (Channel 1) Frequenz: 2,412 GHz (Channel 1)
Quality=88/100 Signal level:-44 dBm Noise level=-70 dBm Quality = 88/100 Signal level: -44 dBm Noise Ebene =- 70 dBm
Encryption key:off Schlüssel: off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s Bit-Raten: 1 Mb / s, 2 Mb / s, 5,5 Mbit / s; 11 Mb / s; 6 Mb / s
12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s 12 Mb / s, 24 Mbit / s; 36 Mb / s; 9 Mb / s, 18 Mbit / s
48 Mb/s; 54 Mb/s 48 Mb / s, 54 Mbit / s
Extra:tsf=0000017f13571181 Extra: TSF = 0000017f13571181
Extra: Last beacon: 601ms ago Extra: Letzte Beacon: 601ms vor
Cell 03 - Address: 00:17:9A:9C:14:28 Cell 03 - Adresse: 00:17:9 A: 9C: 14:28
ESSID:”Abby” ESSID: "Abby"
Mode:Master Modus: Master
Channel:6 Channel: 6
Frequency:2.437 GHz (Channel 6) Frequenz: 2,437 GHz (Channel 6)
Quality=50/100 Signal level:-79 dBm Noise level=-70 dBm Quality = 50/100 Signal level: -79 dBm Noise Ebene =- 70 dBm
Encryption key:off Schlüssel: off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s Bit-Raten: 1 Mb / s, 2 Mb / s, 5,5 Mbit / s; 11 Mb / s; 6 Mb / s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 9 Mb / s; 12 Mb / s, 18 Mbit / s, 24 Mbit / s, 36 Mbit / s
48 Mb/s; 54 Mb/s 48 Mb / s, 54 Mbit / s
Extra:tsf=00000000cbe364d6 Extra: TSF = 00000000cbe364d6
Extra: Last beacon: 272ms ago Extra: Letzte Beacon: 272ms vor
Cell 04 - Address: 00:18:D1:A8:E8:1A Cell 04 - Adresse: 00:18: D1: A8: E8: 1A
ESSID:”Gigaset815″ ESSID: "Gigaset815"
Mode:Master Modus: Master
Channel:4 Channel: 4
Frequency:2.427 GHz (Channel 4) Frequenz: 2,427 GHz (Channel 4)
Quality=45/100 Signal level:-83 dBm Noise level=-70 dBm Quality = 45/100 Signal level: -83 dBm Noise Ebene =- 70 dBm
Encryption key:on Schlüssel: auf
IE: WPA Version 1 IE: WPA Version 1
Group Cipher : TKIP Gruppe Chiffre: TKIP
Pairwise Ciphers (1) : TKIP Paarweiser Ciphers (1): TKIP
Authentication Suites (1) : PSK Authentication Suites (1): PSK
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s Bit-Raten: 1 Mb / s, 2 Mb / s, 5,5 Mbit / s; 11 Mb / s, 22 Mbit / s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 6 Mb / s; 9 Mb / s; 12 Mb / s, 18 Mbit / s, 24 Mbit / s
36 Mb/s; 48 Mb/s; 54 Mb/s 36 Mb / s, 48 Mbit / s, 54 Mbit / s
Extra:tsf=0000015633a50e12 Extra: TSF = 0000015633a50e12
Extra: Last beacon: 571ms ago Extra: Letzte Beacon: 571ms vor
This shows that my computer currently sees four different wireless networks in the area along with their names, channels, signal strength, and whether or not they are encrypted or open. Dies zeigt, dass mein Computer sieht derzeit vier verschiedene drahtlose Netze auf dem Gebiet zusammen mit ihren Namen, Kanäle, Signalstärke, und unabhängig davon, ob sie verschlüsselt oder offen.
iwconfig
Like ifconfig, but for information about your wireless settings. Wie ifconfig, sondern auch für Informationen über Ihre Wireless-Einstellungen.
[kmurray@radon ~]$ /sbin/iwconfig [kmurray @ Radon ~] $ / sbin / iwconfig
lo no wireless extensions. lo keine Wireless-Erweiterungen.
eth0 no wireless extensions. eth0 keine Wireless-Erweiterungen.
wlan0 IEEE 802.11bg ESSID:”Coffee” wlan0 IEEE 802.11bg ESSID: "Kaffee"
Mode:Managed Frequency:2.437 GHz Access Point: 00:10:18:90:20:DB Mode: Managed Frequenz: 2,437 GHz-Access-Points: 00:10:18:90:20: DB
Bit Rate=54 Mb/s Tx-Power=27 dBm Bit Rate = 54 Mb / s Tx-Power = 27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B Retry Limit min: 7 RTS thr: off Fragment thr = 2352 B
Link Quality=96/100 Signal level:-37 dBm Noise level=-70 dBm Link Quality = 96/100 Signal level: -37 dBm Noise Ebene =- 70 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Rx ungültig nwid: 0 Rx ungültig crypt: 0 Rx ungültig frag: 0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0 Tx übermäßigen retries: 0 Invalid misc: 0 Missed beacon: 0
This shows that I’m currently connected to a wireless network called Coffee at 54 Mb/s and the signal strength is very good at 96%. Dies zeigt, dass ich bin gerade mit einem drahtlosen Netzwerk namens Kaffee bei 54 Mb / s und die Signalstärke ist sehr gut bei 96%.
free frei
How much memory and swap space is used/free. Wie viel Speicher und Swap-Speicher verwendet wird / freie.
[kmurray@radon ~]$ free -m [kmurray @ Radon ~] $ free-m
total used free shared buffers cached Insgesamt werden TESTEN gemeinsamen buffers cached
Mem: 2017 1659 357 0 42 1078 Mem: 2017 1659 357 0 42 1078
-/+ buffers/cache: 538 1478 - / + Buffers / cache: 538 1478
Swap: 1983 0 1983 Swap: 1983 0 1983
mount
Without any parameters, used to display mounted filesystems. Ohne Parameter, verwendet, um Dateisysteme montiert.
[kmurray@radon ~]$ mount [kmurray @ Radon ~] $ mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,noatime) / dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw, noatime)
proc on /proc type proc (rw) proc auf / proc Art von proc (rw)
sysfs on /sys type sysfs (rw) sysfs auf / sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620) devpts auf / dev / pts type devpts (rw, gid = 5, mode = 620)
/dev/sda2 on /boot type ext3 (rw,noatime) / dev/sda2 auf / boot type ext3 (rw, noatime)
tmpfs on /dev/shm type tmpfs (rw) tmpfs auf / dev / shm tmpfs Art (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) Keine auf / proc / sys / fs / binfmt_misc Art binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) sunrpc in / var / lib / nfs / rpc_pipefs Art rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw) fusectl auf / sys / fs / Sicherung / Anschlüsse Typ fusectl (rw)
gvfs-fuse-daemon on /home/kmurray/.gvfs type fuse.gvfs-fuse-daemon(rw,nosuid,nodev,user=kmurray) gvfs-Sicherungs-Daemon auf / home / kmurray / .gvfs Art fuse.gvfs-Sicherungs-Daemon (rw, nosuid, nodev, user = kmurray)
/dev/sda1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) / dev/sda1 auf / media / disk Art fuseblk (rw, nosuid, nodev, allow_other, blksize = 4096)
The interesting lines above are the ones indicating /dev/mapper/VolGroup00-LogVol00 on /, /dev/sda2 on /boot, and /dev/sda1 on /media/disk. Die interessante Zeilen oben sind die Anzeige-und dev/mapper/VolGroup00-LogVol00 auf /, / dev/sda2 auf / boot und / dev/sda1 auf / media / disk.
df
Show disk space usage. Zeige Speicherplatz Nutzung.
[kmurray@radon ~]$ df -h [kmurray @ Radon ~] $ df-h
Filesystem Size Used Avail Use% Mounted on Filesystem Größe Benut Verf Ben% montiert auf
/dev/sda2 190M 19M 162M 11% /boot / dev/sda2 190 Mio. 19M 162M 11% / boot
tmpfs 1009M 1.1M 1008M 1% /dev/shm tmpfs 1009M 1.1M 1008M von 1% / dev / shm
gvfs-fuse-daemon 60G 44G 16G 74% /home/kmurray/.gvfs gvfs-Sicherungs-Daemon 60g 44 g 16G 74% / home / kmurray / .gvfs
/dev/sda1 31G 29G 2.5G 93% /media/disk / dev/sda1 31G 29g 2.5G 93% / media / disk
This shows that /dev/sda1 is almost full at 93%. Dies zeigt, dass / dev/sda1 ist fast voll auf 93%. Time to delete some files or upgrade the disk. Zeit zu löschen Sie einige Dateien oder Upgrade der Festplatte.
du
Show disk space usage in a directory. Zeige Speicherplatz Nutzung in einem Verzeichnis.
[kmurray@radon ~]$ du -hc Documents/N95/tutorials/ [kmurray @ Radon ~] $ du-hc Documents/N95/tutorials /
380K Documents/N95/tutorials/done/bluetooth gps 380k Documents/N95/tutorials/done/bluetooth gps
480K Documents/N95/tutorials/done/putty fonts 480K Documents/N95/tutorials/done/putty Schriften
1.4M Documents/N95/tutorials/done/gparted 1.4M Documents/N95/tutorials/done/gparted
1.1M Documents/N95/tutorials/done/remote filesystem gnome 1.1M Documents/N95/tutorials/done/remote Dateisystem gnome
1.4M Documents/N95/tutorials/done/gnome keyboard shortcuts 1.4M Documents/N95/tutorials/done/gnome Tastatur-Shortcuts
2.1M Documents/N95/tutorials/done/download helper 2.1M Documents/N95/tutorials/done/download Helfer
992K Documents/N95/tutorials/done/mconnection 992K Documents/N95/tutorials/done/mconnection
1008K Documents/N95/tutorials/done/snap links 1008K Documents/N95/tutorials/done/snap Links
5.0M Documents/N95/tutorials/done/watermark gimp 5.0M Documents/N95/tutorials/done/watermark gimp
1.2M Documents/N95/tutorials/done/gnome disk usage Disk 1.2M Documents/N95/tutorials/done/gnome Nutzung
208K Documents/N95/tutorials/done/enhanced calculator 208k Documents/N95/tutorials/done/enhanced Rechner
544K Documents/N95/tutorials/done/putty/orig 544k Documents/N95/tutorials/done/putty/orig
964K Documents/N95/tutorials/done/putty 964K Documents/N95/tutorials/done/putty
848K Documents/N95/tutorials/done/wifi ap 848K Documents/N95/tutorials/done/wifi ap
1.4M Documents/N95/tutorials/done/imap gmail 1.4M Documents/N95/tutorials/done/imap Google Mail
872K Documents/N95/tutorials/done/unsigned apps 872K Documents/N95/tutorials/done/unsigned apps
884K Documents/N95/tutorials/done/taskman 884K Documents/N95/tutorials/done/taskman
1.1M Documents/N95/tutorials/done/downthemall 1.1M Documents/N95/tutorials/done/downthemall
916K Documents/N95/tutorials/done/tethering bt 916K Documents/N95/tutorials/done/tethering bt
432K Documents/N95/tutorials/done/install apps wifi http 432K Documents/N95/tutorials/done/install apps wifi http
924K Documents/N95/tutorials/done/tethering usb 924K Documents/N95/tutorials/done/tethering usb
320K Documents/N95/tutorials/done/install stuff via bluetooth 320K Documents/N95/tutorials/done/install Zeug über Bluetooth
416K Documents/N95/tutorials/done/smb4s60 416K Documents/N95/tutorials/done/smb4s60
1.1M Documents/N95/tutorials/done/download statusbar 1.1M Statuszeile Documents/N95/tutorials/done/download
308K Documents/N95/tutorials/done/install stuff via usb 308k Documents/N95/tutorials/done/install Zeug über USB
828K Documents/N95/tutorials/done/nokia step counter 828K Documents/N95/tutorials/done/nokia Schritt Zähler
4.3M Documents/N95/tutorials/todo 4.3m Documents/N95/tutorials/todo
52M Documents/N95/tutorials/ 52M Documents/N95/tutorials /
52M total 52M insgesamt
This shows that my N95 tutorials directory is using a total of 52M and the breakdown of each directory’s size. Dies zeigt, dass mein N95 Tutorials Verzeichnis ist mit insgesamt 52M und die Aufschlüsselung der einzelnen Verzeichnis der Größe.
head Kopf
Display the first few lines of a file. Zeigt die ersten Zeilen einer Datei.
[kmurray@radon ~]$ head /var/log/yum.log [kmurray @ Radon ~] $ head / var / log / yum.log
Jun 13 22:30:33 Installed: bash-completion-20060301-10.noarch 13. Juni 22:30:33 Erstellt: Bash-Completion-20060301-10.noarch
Jun 13 22:31:31 Installed: yum-downloadonly-1.1.13-2.fc9.noarch 13. Juni 22:31:31 Erstellt: yum-downloadonly-1.1.13-2.fc9.noarch
Jun 14 06:20:11 Installed: swfdec-0.6.6-1.fc9.i386 14. Juni 06:20:11 Installed: 0.6.6-swfdec-1.fc9.i386
Jun 14 06:20:13 Installed: swfdec-gtk-0.6.6-1.fc9.i386 14. Juni 06:20:13 Erstellt: swfdec-gtk-0.6.6-1.fc9.i386
Jun 14 06:20:14 Installed: swfdec-mozilla-0.6.0-1.fc9.i386 14. Juni 06:20:14 Installed: swfdec-mozilla-0.6.0-1.fc9.i386
Jun 14 06:34:41 Updated: libxml2-2.6.32-2.fc9.i386 14. Juni 06:34:41 Zuletzt bearbeitet: libxml2-2.6.32-2.fc9.i386
Jun 14 06:34:41 Updated: dbus-glib-0.74-8.fc9.i386 14. Juni 06:34:41 Zuletzt bearbeitet: dbus-glib-0,74-8.fc9.i386
Jun 14 06:34:42 Updated: libselinux-2.0.64-2.fc9.i386 14. Juni 06:34:42 Zuletzt bearbeitet: libselinux-2.0.64-2.fc9.i386
Jun 14 06:34:43 Updated: e2fsprogs-libs-1.40.8-3.fc9.i386 14. Juni 06:34:43 Zuletzt bearbeitet: e2fsprogs-libs-1.40.8-3.fc9.i386
Jun 14 06:34:43 Updated: audit-libs-1.7.4-1.fc9.i386 14. Juni 06:34:43 Zuletzt bearbeitet: audit-libs-1.7.4-1.fc9.i386
By default, head displays the first 10 lines. head -20 /var/log/yum.log would show the first 20 lines. Standardmäßig Kopf zeigt die ersten 10 Zeilen. Kopf -20 / var / log / yum.log würde zeigen die ersten 20 Zeilen. You can use any arbitrary number. Sie können jede beliebige Anzahl.
tail Schwanz
Display the last few lines of a file. Zeigen Sie die letzten Zeilen einer Datei.
[kmurray@radon ~]$ tail /var/log/yum.log [kmurray @ Radon ~] $ tail / var / log / yum.log
Oct 30 23:19:56 Updated: 6:kdebase-libs-4.1.2-5.fc9.i386 30. Oktober 23:19:56 Zuletzt bearbeitet: 6: kdebase-libs-4.1.2-5.fc9.i386
Oct 30 23:19:57 Updated: 6:kdemultimedia-libs-4.1.2-2.fc9.i386 30. Oktober 23:19:57 aktualisiert: 6: kdemultimedia-libs-4.1.2-2.fc9.i386
Oct 30 23:19:57 Updated: ksysguardd-4.1.2-6.fc9.i386 30. Oktober 23:19:57 Zuletzt bearbeitet: 4.1.2-ksysguardd-6.fc9.i386
Oct 30 23:19:58 Updated: phonon-backend-xine-4.1.2-5.fc9.i386 30. Oktober 23:19:58 Zuletzt bearbeitet: Phonon-Backend-xine-4.1.2-5.fc9.i386
Oct 30 23:20:08 Updated: kdebase-runtime-4.1.2-5.fc9.i386 30. Oktober 23:20:08 Zuletzt bearbeitet: kdebase-4.1.2-Runtime-5.fc9.i386
Oct 30 23:20:11 Updated: kdebase-workspace-libs-4.1.2-6.fc9.i386 30. Oktober 23:20:11 Zuletzt bearbeitet: kdebase-Workspace-libs 4.1.2-6.fc9.i386 -
Oct 30 23:20:21 Updated: kdebase-workspace-4.1.2-6.fc9.i386 30. Oktober 23:20:21 Zuletzt bearbeitet: kdebase-Workspace-4.1.2-6.fc9.i386
Oct 30 23:20:27 Updated: 6:kdebase-4.1.2-5.fc9.i386 30. Oktober 23:20:27 Zuletzt bearbeitet: 6: kdebase-4.1.2-5.fc9.i386
Oct 30 23:20:39 Installed: kdebase-runtime-libs-4.1.2-5.fc9.i386 30. Oktober 23:20:39 Erstellt: kdebase-runtime-4.1.2-libs-5.fc9.i386
Oct 30 23:20:42 Updated: 6:kdemultimedia-4.1.2-2.fc9.i386 30. Oktober 23:20:42 aktualisiert: 6: kdemultimedia-4.1.2-2.fc9.i386
By default, tail displays the last 10 lines. tail -30 /var/log/yum.log would show the last 30 lines. Mit dem Standard-, Schwanz zeigt die letzten 10 Zeilen. Tail -30 / var / log / yum.log würde zeigen, die letzten 30 Zeilen. You can use any arbitrary number. Sie können jede beliebige Anzahl.
grep
Search for a specific string within a file. Suche nach einem bestimmten String in eine Datei. (use zgrep to search a gzipped file) (Verwendung zgrep zur Suche ein gzipped-Datei)
[kmurray@radon ~]$ grep firefox /var/log/yum.log [kmurray @ Radon ~] $ grep firefox / var / log / yum.log
Jun 19 16:19:33 Updated: firefox-3.0-1.fc9.i386 19. Juni 16:19:33 Aktualisiert: Firefox-3.0-1.fc9.i386
Jul 24 04:48:06 Updated: firefox-3.0.1-1.fc9.i386 24. Jul. 04:48:06 Zuletzt bearbeitet: Firefox 3.0.1-1.fc9.i386 -
Oct 18 03:13:52 Updated: firefox-3.0.2-1.fc9.i386 18. Oktober 03:13:52 Zuletzt bearbeitet: firefox-3.0.2-1.fc9.i386
This shows that “firefox” is listed three times in this file. Dies zeigt, dass "firefox" aufgeführt ist drei mal in dieser Datei.
type Typ
Determine which directory a command is in. Bestimmen Sie, welches Verzeichnis ein Befehl ist in.
[kmurray@radon ~]$ type ping [kmurray @ Radon ~] $ Art Ping -
ping is hashed (/bin/ping) Ping ist Hash (/ bin / ping)
Ahh, so ping lives in /bin. Ahh, so Ping lebt in / bin.
locate Suchen
Locate any arbitrary file on the filesystem. Suchen Sie jede beliebige Datei auf dem Dateisystem.
[kmurray@radon ~]$ locate *.rpm [kmurray @ Radon ~] $ locate *. rpm
/home/kmurray/Download/VirtualBox-2.0.2_36488_fedora9-1.i386.rpm / home/kmurray/Download/VirtualBox-2.0.2_36488_fedora9-1.i386.rpm
/home/kmurray/Download/VirtualBox-2.0.4_38406_fedora9-1.i386.rpm / home/kmurray/Download/VirtualBox-2.0.4_38406_fedora9-1.i386.rpm
/home/kmurray/Download/skype-2.0.0.72-fc5.i586.rpm / home/kmurray/Download/skype-2.0.0.72-fc5.i586.rpm
/home/kmurray/Download/synaptics-0.14.6-8.fc9.i386.rpm / home/kmurray/Download/synaptics-0.14.6-8.fc9.i386.rpm
I have four rpm files on this computer, all of them in /home/kmurray/Download. Ich habe vier rpm-Dateien auf diesem Computer, alle von ihnen in / home / kmurray / Download.
file Datei
Determine what type a file is. Bestimmen Sie, welchen Typ eine Datei ist.
[kmurray@radon ~]$ file /bin/ping [kmurray @ Radon ~] $ file / bin / ping
/bin/ping: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped / bin / ping: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SysV), dynamisch verbunden (greift auf den gemeinsamen libs), für GNU / Linux 2.6.9, gestrippt
ping is a binary file. Ping ist eine binäre Datei.
[kmurray@radon ~]$ file Mythbusters.S02E04.flv [kmurray @ Radon ~] $ file Mythbusters.S02E04.flv
Mythbusters.flv: Macromedia Flash Video Mythbusters.flv: Macromedia Flash Video
Mythbusters.S02E04.flv is a video. Mythbusters.S02E04.flv ist ein Video.
[kmurray@radon ~]$ file /var/log/yum.log [kmurray @ Radon ~] $ file / var / log / yum.log
/var/log/yum.log: ASCII text / var / log / yum.log: ASCII-Text
/var/log/yum.log is a plain text file. / var / log / yum.log ist eine Nur-Text-Datei.
history Geschichte
Shows what commands you have been running on the command line. Zeigt, welche Befehle Sie wurden auf der Befehlszeile.
[kmurray@radon ~]$ history [kmurray @ Radon ~] $ Geschichte
991 du -hc Documents/N95/tutorials/ 991 du-hc Documents/N95/tutorials /
992 ls /var/log/messages 992 ls / var / log / messages
993 tail /var/log/messages 993 tail / var / log / messages
994 ls 994 ls
995 ls /var/log/ 995 ls / var / log /
996 ls -lh /var/log/ 996 ls-lh / var / log /
997 tail /var/log/yum.log 997 tail / var / log / yum.log
998 head /var/log/yum.log 998 Kopf / var / log / yum.log
999 grep firefox /var/log/yum.log 999 grep firefox / var / log / yum.log
1000 sudo su - 1000 sudo su --
1001 cd src/ 1001 cd src /
1002 ls 1002 ls
1003 tar -xvzf TrueCrypt\ 6.1\ Source.tar.gz 1003 tar-xvzf TrueCrypt \ 6.1 \ Source.tar.gz
1004 cd truecrypt-6.1-source/ 1004 cd TrueCrypt-6.1-source /
1005 ls 1005 ls
1006 less Readme.txt 1006 weniger Readme.txt
1007 make 1007 machen
1008 less Readme.txt 1008 weniger Readme.txt
1009 make 1009 machen
1010 make 1010 machen
1011 cd 1011 cd
1012 cd .VirtualBox/VDI/ 1012 cd .VirtualBox / VDI /
1013 ls 1013 ls
1014 cat RawUSBsdb.vdi 1014 Katze RawUSBsdb.vdi
1015 mv RawUSBsdb.vdi RawUSBsdb1G.vdi 1015 mv RawUSBsdb.vdi RawUSBsdb1G.vdi
1016 cp RawUSBsdb1G.vdi RawUSBsdb2G.vdi 1016 cp RawUSBsdb1G.vdi RawUSBsdb2G.vdi
1017 vim RawUSBsdb2G.vdi 1017 vim RawUSBsdb2G.vdi
1018 rm RawUSBsdb2G.vdi 1018 rm RawUSBsdb2G.vdi
1019 pwd 1019 pwd
1020 VBoxManage internalcommands createrawvmdk -filename /home/kmurray/.VirtualBox 1020 VBoxManage internalcommands createrawvmdk-Dateinamen / home / kmurray / .VirtualBox
1021 cat RawUSBsdb2G.vdi 1021 Katze RawUSBsdb2G.vdi
1022 cd 1022 cd
In order to discover which commands I use most so I could write this list, I used a combination of five different commands all piped together: Um zu entdecken, welche Befehle ich mit den meisten so konnte ich diese Liste schreiben, habe ich eine Kombination aus fünf verschiedenen Befehle allen Rohren zusammen:
history | awk {’print $2′} | sort | uniq | less Geschichte | awk ( 'print $ 2') | sort | uniq | less
awk {’print $2′} causes only the second column of the output to be displayed, sort puts everything in alphabetical order, uniq cuts out all the duplicates, and less causes the output to be displayed one screen at a time. awk ( 'print $ 2') Ursachen nur die zweite Spalte der Ausgabe angezeigt werden soll, setzt alles geordnet in alphabetischer Reihenfolge, uniq Kürzungen alle Duplikate, und weniger bewirkt, dass die Ausgabe angezeigt werden soll ein Bildschirm zu einem Zeitpunkt.
If you have any favourite bash commands that you would like to share, please tell us about them in the comments below. Wenn Sie irgendwelche Lieblings-Bash-Kommandos, die Sie gerne mit uns teilen möchten, teilen Sie uns bitte über sie in den Kommentaren unten.






















{ 0 comments… (0 Kommentare ... add one now Add jetzt ein } )
Leave a Comment Schreibe einen Kommentar