Ping script to show only avg and pkt. loss
October 30th, 2008 Filed Under General, Scripts
echo `sed -n '1!G;h;$p' <<< "\`ping -c 5 localhost\`" | sed -n 's/^.* received, \([^ ]*\) packet loss.*$/\1 loss/p;s/^rtt min\/avg\/max\/mdev = [0-9.]*\/\([^/]*\)\/.*$/\1/p'`
thanks vali
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Remote nautilus vs. Firefox ftp browsing
October 28th, 2008 Filed Under General, X11
unset “/desktop/gnome/url-handlers/ftp” in gconf-editor
http://ubuntuforums.org/showthread.php?t=18728
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
locale.gen
October 28th, 2008 Filed Under General
en_US ISO-8859-1
en_US UTF-8
en_GB ISO-8859-1
en_GB UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE UTF-8
fr_FR ISO-8859-1
fr_FR@euro ISO-8859-15
fr_FR UTF-8
ro_RO ISO-8859-1
ro_RO ISO-8859-2
ro_RO ISO-8859-16
ro_RO UTF-8
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Ms fonts
October 28th, 2008 Filed Under General, X11
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Color Bash Prompt
October 28th, 2008 Filed Under General
ArchWiki :: Color Bash Prompt – ArchWiki
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Setting starting weekday
October 28th, 2008 Filed Under General, X11
In a lot of countries the first day of the week is Monday. To do change or add the following lines under the LC_TIME section in /usr/share/i18n/locales/<your_locale>
week 7;19971130;5 first_weekday 2 first_workday 2
And then run
# locale-gen
and restart X.
ArchWiki :: Configuring locales – ArchWiki
Post Linx
Permalink | Trackback |
|
Print This Article | 1 Comment
Tip: Bash Shortcuts
October 28th, 2008 Filed Under General
| Ctrl-a | Move to the start of the line. |
| Ctrl-e | Move to the end of the line. |
| Ctrl-b | Move back one character. |
| Alt-b | Move back one word. |
| Ctrl-f | Move forward one character. |
| Alt-f | Move forward one word. |
| Alt-] x | Where x is any character, moves the cursor forward to the next occurance of x. |
| Alt-Ctrl-] x | Where x is any character, moves the cursor backwards to the previous occurance of x. |
| Ctrl-u | Delete from the cursor to the beginning of the line. |
| Ctrl-k | Delete from the cursor to the end of the line. |
| Ctrl-w | Delete from the cursor to the start of the word. |
| Esc-Del | Delete previous word (may not work, instead try Esc followed by Backspace) |
| Ctrl-y | Pastes text from the clipboard. |
| Ctrl-l | Clear the screen leaving the current line at the top of the screen. |
| Ctrl-x Ctrl-u | Undo the last changes. Ctrl-_ does the same |
| Alt-r | Undo all changes to the line. |
| Alt-Ctrl-e | Expand command line. |
| Ctrl-r | Incremental reverse search of history. |
| Alt-p | Non-incremental reverse search of history. |
| !! | Execute last command in history |
| !abc | Execute last command in history beginning with abc |
| !abc:p | Print last command in history beginning with abc |
| !n | Execute nth command in history |
| !$ | Last argument of last command |
| !^ | First argument of last command |
| ^abc^xyz | Replace first occurance of abc with xyz in last command and execute it |
Tux Training » Blog Archive » Tip: Bash Shortcuts
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Bash History search
October 27th, 2008 Filed Under General, Scripts
Usually, when typing ‘ls’ and pressing
You can enable this mode by adding to /etc/inputrc or your ~/.inputrc
"\e[A":history-search-backward
"\e[B":history-search-forward
Post Linx
Permalink | Trackback |
|
Print This Article | 1 Comment
Ubuntu network alias
October 27th, 2008 Filed Under General, Ubuntu
sudo vi /etc/network/interfaces
Append the following configuration:
auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
A-DayS » Creating ethernet alias for eth0 network device on Ubuntu
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment
Find files modified at a certain time
October 27th, 2008 Filed Under General
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories:
find . -mtime -1 -print
Tux Training » Blog Archive » Find files modified at a certain time
Post Linx
Permalink | Trackback |
|
Print This Article | Leave a Comment