NB:
You can Find ALL (Downloads,meaning,more posts)Quickly and easily With This Search engine.
*For Meaning Use : Meaning of 'WORD' .
*For Download Use : Download ' Product'
*For More Posts About A Subjet Use : Posts About 'WORD/SENTENSE')
| • | printf "%'d\n" 1234 | Print number with thousands grouping appropriate to locale |
| • | BLOCK_SIZE=\'1 ls -l | get ls to do thousands grouping appropriate to locale |
| • | echo "I live in `locale territory`" | Extract info from locale database |
| • | LANG=en_IE.utf8 locale int_prefix | Lookup locale info for specific country. |
| • | locale | cut -d= -f1 | xargs locale -kc | less | List fields available in locale database |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
| • | cal -3 | Display a calendar |
| • | cal 9 1752 | Display a calendar for a particular month year |
| • | date -d fri | What date is it this friday. See also day |
| • | [ $(date -d "tomorrow" +%d) = "01" ] || exit | exit a script unless it's the last day of the month |
| • | date --date='25 Dec' +%A | What day does xmas fall on, this year |
| • | date --date='@2147483647' | Convert seconds since the epoch (1970-01-01 UTC) to date |
| • | TZ=':America/Los_Angeles' date | What time is it on West coast of US (use tzselect to find TZ) |
| | echo "mail -s 'get the train' P@draigBrady.com < /dev/null" | at 17:45 | Email reminder |
| • | echo "DISPLAY=$DISPLAY xmessage cooker" | at "NOW + 30 minutes" | Popup reminder |
| locales |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
| • | echo '(1 + sqrt(5))/2' | bc -l | Quick math (Calculate φ).
|
| • | echo 'pad=20; min=64; (100*10^6)/((pad+min)*8)' | bc | More complex (int) e.g. This shows max FastE packet rate |
| • | echo 'pad=20; min=64; print (100E6)/((pad+min)*8)' | python | Python handles scientific notation |
| • | echo 'pad=20; plot [64:1518] (100*10**6)/((pad+x)*8)' | gnuplot -persist | Plot FastE packet rate vs packet size |
| • | echo 'obase=16; ibase=10; 64206' | bc | Base conversion (decimal to hexadecimal) |
| • | echo $((0x2dec)) | Base conversion (hex to dec) ((shell arithmetic expansion)) |
| • | units -t '100m/9,96s' 'miles/hour' | Unit conversion (metric to imperial) |
| • | units -t '500GB' 'GiB' | Unit conversion (SI to IEC prefixes) |
| • | units -t '1 googol' | Definition lookup |
| • | seq 100 | (tr '\n' +; echo 0) | bc | Add a column of numbers. |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
| | sort file1 file2 | uniq | Union of unsorted files |
| | sort file1 file2 | uniq -d | Intersection of unsorted files |
| | sort file1 file1 file2 | uniq -u | Difference of unsorted files |
| | sort file1 file2 | uniq -u | Symmetric Difference of unsorted files |
| | join -a1 -a2 file1 file2 | Union of sorted files |
| | join file1 file2 | Intersection of sorted files |
| | join -v2 file1 file2 | Difference of sorted files |
| | join -v1 -v2 file1 file2 | Symmetric Difference of sorted files |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
| sed 's/string1/string2/g' | Replace string1 with string2 |
| sed 's/\(.*\)1/\12/g' | Modify anystring1 to anystring2 |
| sed '/ *#/d; /^ *$/d' | Remove comments and blank lines |
| sed ':a; /\\$/N; s/\\\n//; ta' | Concatenate lines with trailing \ |
| sed 's/[ \t]*$//' | Remove trailing spaces from lines |
| sed 's/\([\\`\\"$\\\\]\)/\\\1/g' | Escape shell metacharacters active within double quotes |
| • | seq 10 | sed "s/^/ /; s/ *\(.\{7,\}\)/\1/" | Right align numbers |
| sed -n '1000p;1000q' | Print 1000th line |
| sed -n '10,20p;20q' | Print lines 10 to 20 |
|
|
|
| sed -i 42d ~/.ssh/known_hosts | Delete a particular line |
| sort -t. -k1,1n -k2,2n -k3,3n -k4,4n | Sort IPV4 ip addresses |
| • | echo 'Test' | tr '[:lower:]' '[:upper:]' | Case conversion |
| • | tr -dc '[:print:]' < /dev/urandom | Filter non printable characters |
| • | history | wc -l | Count lines |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
(Note samba is the package that provides all this windows specific networking support)
| • | smbtree | Find windows machines. See also findsmb |
| | nmblookup -A 1.2.3.4 | Find the windows (netbios) name associated with ip address |
| | smbclient -L windows_box | List shares on windows machine or samba server |
| | mount -t smbfs -o fmask=666,guest //windows_box/share /mnt/share | Mount a windows share |
| | echo 'message' | smbclient -M windows_box | Send popup to windows machine (off by default in XP sp2) |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.
| | ethtool eth0 | Show status of ethernet interface eth0 |
| | ethtool --change eth0 autoneg off speed 100 duplex full | Manually set ethernet interface speed |
| | iwconfig eth1 | Show status of wireless interface eth1 |
| | iwconfig eth1 rate 1Mb/s fixed | Manually set wireless interface speed |
| • | iwlist scan | List wireless networks in range |
| • | ip link show | List network interfaces |
| | ip link set dev eth0 name wan | Rename interface eth0 to wan |
| | ip link set dev eth0 up | Bring interface eth0 up (or down) |
| • | ip addr show | List addresses for interfaces |
| | ip addr add 1.2.3.4/24 brd + dev eth0 | Add (or del) ip and mask (255.255.255.0) |
| • | ip route show | List routing table |
| | ip route add default via 1.2.3.254 | Set default gateway to 1.2.3.254 |
| • | tc qdisc add dev lo root handle 1:0 netem delay 20msec | Add 20ms latency to loopback device (for testing) |
| • | tc qdisc del dev lo root | Remove latency added above |
| • | host pixelbeat.org | Lookup DNS ip address for name or vice versa |
| • | hostname -i | Lookup local ip address (equivalent to host `hostname`) |
| • | whois pixelbeat.org | Lookup whois info for hostname or ip address |
| • | netstat -tupl | List internet services on a system |
| • | netstat -tup | List active connections to/from system |
YOU CAN USE QUICK SEARCH ENGINE IN THE TOP FOR MORE INFORMATIONS DOWNLOADS OR DETAILS.