bash: tip
Submitted by wd on Tue, 2006-11-07 18:12
ls ให้มีสี
แก้ /etc/passwd ให้ชื่อเรามีเชลล์เป็น /bin/bash
grep ให้มีสี
แก้ตัวแปร GREP_OPTION
เอามาจาก debian-administration - grep: highlighting matches in color
ดูที่มาของไอพี
ผลิตเลขสุ่มแบบง่าย
ลองบนอูบุนตู
$ sudo vi /etc/password
... user1:x:1101:1001::/home/user1:/bin/bash ...
หรือผ่านคำสั่ง usermod
$ sudo usermod -s /bin/bash user1
$ export GREP_OPTIONS='--color=auto'เอามาจาก debian-administration - grep: highlighting matches in color
$ wget -O country.txt "http://api.hostip.info/get_html.php?ip=$IP"$ echo $(head -1 /dev/urandom | od -N 2 | awk '{ print $2 }')»
- Printer-friendly version
- Login or register to post comments







Recent comments
9 weeks 5 days ago
9 weeks 6 days ago
9 weeks 6 days ago
11 weeks 19 hours ago
11 weeks 1 day ago
11 weeks 1 day ago
14 weeks 12 hours ago
14 weeks 4 days ago
14 weeks 4 days ago
14 weeks 4 days ago