<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: From Windows to Linux – Total Commander replacement?</title> <atom:link href="http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/feed" rel="self" type="application/rss+xml" /><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement</link> <description>A blog by Prelovac Media CEO Vladimir Prelovac</description> <lastBuildDate>Tue, 14 Feb 2012 08:37:58 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: John</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-19438</link> <dc:creator>John</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-19438</guid> <description>Double Commander is it!I&#039;ve been using Ubuntu for years, tried every file manager, and always gone back to Total Commander under Wine.I have been using Double Commander for a week now, and it really is good, with the look and feel of Total Commander it is better than all the rest.</description> <content:encoded><![CDATA[<p>Double Commander is it!</p><p>I've been using Ubuntu for years, tried every file manager, and always gone back to Total Commander under Wine.</p><p>I have been using Double Commander for a week now, and it really is good, with the look and feel of Total Commander it is better than all the rest.</p> ]]></content:encoded> </item> <item><title>By: Matthias Klees</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-19349</link> <dc:creator>Matthias Klees</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-19349</guid> <description>I switched to Ubuntu about two years ago. My experience with the filemanager question was:
Nautilus was to simple (on the first try), Konqueror was to overloaded, so i had the same idea like you and used Krusader. But after a short time i found out about the possibility to use plugins in Nautilus. There are plenty of them and you can customize the Filemanager to fit your needs. Anyway Krusader is alway also installed.  It&#039;s a great piece of Software and in my opinion one of the most unrecordnized projects of the KDE community.</description> <content:encoded><![CDATA[<p>I switched to Ubuntu about two years ago. My experience with the filemanager question was:<br
/> Nautilus was to simple (on the first try), Konqueror was to overloaded, so i had the same idea like you and used Krusader. But after a short time i found out about the possibility to use plugins in Nautilus. There are plenty of them and you can customize the Filemanager to fit your needs. Anyway Krusader is alway also installed.  It's a great piece of Software and in my opinion one of the most unrecordnized projects of the KDE community.</p> ]]></content:encoded> </item> <item><title>By: Roman</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-19347</link> <dc:creator>Roman</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-19347</guid> <description>&gt; Some features of Total commander I can&#039;t live without are:
&gt;    * Search for text through files and directories
&gt;    * Compare files by content (and live edit in compare)
&gt;    * Browse &#039;into&#039; archives and perform file operations on archived files
&gt;    * FTP connection managementAll this you can do with JEdit editor with plug-ins www.jedit.org  :)</description> <content:encoded><![CDATA[<p>&gt; Some features of Total commander I can't live without are:<br
/> &gt;    * Search for text through files and directories<br
/> &gt;    * Compare files by content (and live edit in compare)<br
/> &gt;    * Browse 'into' archives and perform file operations on archived files<br
/> &gt;    * FTP connection management</p><p>All this you can do with JEdit editor with plug-ins <a
href="http://www.jedit.org" rel="nofollow">http://www.jedit.org</a> :)</p> ]]></content:encoded> </item> <item><title>By: Magalaan</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-18974</link> <dc:creator>Magalaan</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-18974</guid> <description>Tried them all, Krusader is fine and mature, but only Double Commander gives me the look and feel of Total Commander. It has not even reached 1.0 but already it is has many of the great features you love about TC. Development is moving rapidly and this is the one I am going to stick to. One of the great potentials is it is multi-platform and it uses TC plugins. These can be used  for the windows version, separate ones are made for Linux.</description> <content:encoded><![CDATA[<p>Tried them all, Krusader is fine and mature, but only Double Commander gives me the look and feel of Total Commander. It has not even reached 1.0 but already it is has many of the great features you love about TC. Development is moving rapidly and this is the one I am going to stick to. One of the great potentials is it is multi-platform and it uses TC plugins. These can be used  for the windows version, separate ones are made for Linux.</p> ]]></content:encoded> </item> <item><title>By: rsystem</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-18775</link> <dc:creator>rsystem</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-18775</guid> <description>Have you ever tried to turn to kde 4.4 ??  In my opinion it&#039;s the best desktop around . . . sure many things are different to gnome but i think more useful than every other desktop environment, more thought-out . . .  and since 4.4 i love dolphin...   it&#039;s twintabs it&#039;s instant console it&#039;s ftp , it&#039;s places . . . even if i browse directories with more than 100.000 files it&#039;s still fast enough . . .give it a try . . .http://kde.org</description> <content:encoded><![CDATA[<p>Have you ever tried to turn to kde 4.4 ??  In my opinion it's the best desktop around . . . sure many things are different to gnome but i think more useful than every other desktop environment, more thought-out . . .  and since 4.4 i love dolphin...   it's twintabs it's instant console it's ftp , it's places . . . even if i browse directories with more than 100.000 files it's still fast enough . . .</p><p>give it a try . . .</p><p><a
href="http://kde.org" rel="nofollow">http://kde.org</a></p> ]]></content:encoded> </item> <item><title>By: Martin</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17979</link> <dc:creator>Martin</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17979</guid> <description>Midnight Commander (mc) is good as stated several places above.But the more I adjust Total Commander and the wine settings, the more &quot;native&quot; it behaves. For example, I can double click or press enter on a file, and it will open in Linux natively or in another wine program depending on the settings I made for that file extension.Currently, I more or less only miss coping with Linux file permissions, but that will probably never be possible. For that I use mc or just the command line.I don&#039;t like krusader. It tries to be TC, but it will never be!</description> <content:encoded><![CDATA[<p>Midnight Commander (mc) is good as stated several places above.</p><p>But the more I adjust Total Commander and the wine settings, the more "native" it behaves. For example, I can double click or press enter on a file, and it will open in Linux natively or in another wine program depending on the settings I made for that file extension.</p><p>Currently, I more or less only miss coping with Linux file permissions, but that will probably never be possible. For that I use mc or just the command line.</p><p>I don't like krusader. It tries to be TC, but it will never be!</p> ]]></content:encoded> </item> <item><title>By: Wordpress Brian</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17727</link> <dc:creator>Wordpress Brian</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17727</guid> <description>I&#039;m afraid I&#039;m still on dual boot.I need my daily fix of Call of Duty 4 and a properly working Skype.BUT...... I love Ubuntu and it is my default OS.  To be able to download a program for free and have such an awesome community of support out there is amazing.If I had the money I would be hitting the &#039;donate&#039; button on every site I visited.  I applaud the Open Source community.</description> <content:encoded><![CDATA[<p>I'm afraid I'm still on dual boot.</p><p>I need my daily fix of Call of Duty 4 and a properly working Skype.</p><p>BUT...... I love Ubuntu and it is my default OS.  To be able to download a program for free and have such an awesome community of support out there is amazing.</p><p>If I had the money I would be hitting the 'donate' button on every site I visited.  I applaud the Open Source community.</p> ]]></content:encoded> </item> <item><title>By: Ash Goodman</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17702</link> <dc:creator>Ash Goodman</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17702</guid> <description>I too switched from Windows to Linux a few years back. Specifically Ubuntu. I Never looked back.I don&#039;t think my file management needs are as robust as yours, I just use nautilus. For FTP firefox&#039;s FireFTP and Gedit for editing files (open files from fireftp into gedit, edit and saves right back to the server).And I absolutely love Compiz Fusion for Productivity. I use the scale feature and shift switcher instead of a Task bar based widows menu</description> <content:encoded><![CDATA[<p>I too switched from Windows to Linux a few years back. Specifically Ubuntu. I Never looked back.</p><p>I don't think my file management needs are as robust as yours, I just use nautilus. For FTP firefox's FireFTP and Gedit for editing files (open files from fireftp into gedit, edit and saves right back to the server).</p><p>And I absolutely love Compiz Fusion for Productivity. I use the scale feature and shift switcher instead of a Task bar based widows menu</p> ]]></content:encoded> </item> <item><title>By: wikiant</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17701</link> <dc:creator>wikiant</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17701</guid> <description>hej vladono, i&#039;m back again. i was only for a very short time in bol. i think i&#039;ll go again at beginning of april... but not for sure... we were cutting the vineyard at bura time and couldn&#039;t finishing the rest :)i&#039;m using krusader to. but i&#039;m agree with &quot;chenoel&quot;. means sometimes it is better for me to use the old school mc :) but there is the same problem with your visual diff util... have you tried the command:apt-cache search compare
or
apt-cache search compare guithere are many programs b.e. diff</description> <content:encoded><![CDATA[<p>hej vlado</p><p>no, i'm back again. i was only for a very short time in bol. i think i'll go again at beginning of april... but not for sure... we were cutting the vineyard at bura time and couldn't finishing the rest :)</p><p>i'm using krusader to. but i'm agree with "chenoel". means sometimes it is better for me to use the old school mc :) but there is the same problem with your visual diff util... have you tried the command:</p><p>apt-cache search compare<br
/> or<br
/> apt-cache search compare gui</p><p>there are many programs b.e. diff</p> ]]></content:encoded> </item> <item><title>By: Vladimir</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17685</link> <dc:creator>Vladimir</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17685</guid> <description>Hi Patrick :)I was thinking about wine but wanted something native. At the end I went with Krusader which was most like TC. I still miss a visual diff tool with live edit.ps. still in Bol?</description> <content:encoded><![CDATA[<p>Hi Patrick :)</p><p>I was thinking about wine but wanted something native. At the end I went with Krusader which was most like TC. I still miss a visual diff tool with live edit.</p><p>ps. still in Bol?</p> ]]></content:encoded> </item> <item><title>By: wikiant</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17684</link> <dc:creator>wikiant</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17684</guid> <description>hi vlado :)
nice to read about your windows deleting session :)
i&#039;m totaly agree with you, that total commander is a great program from this swiss guy named ghisler. you can install this pure software also on linux using wine. wine is an acronyme means: windows not emulating. so the programs working with wine aren&#039;t slower than on windows. not every program is working out of the box. but total commander is working fine :)</description> <content:encoded><![CDATA[<p>hi vlado :)<br
/> nice to read about your windows deleting session :)<br
/> i'm totaly agree with you, that total commander is a great program from this swiss guy named ghisler. you can install this pure software also on linux using wine. wine is an acronyme means: windows not emulating. so the programs working with wine aren't slower than on windows. not every program is working out of the box. but total commander is working fine :)</p> ]]></content:encoded> </item> <item><title>By: groumph</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17675</link> <dc:creator>groumph</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17675</guid> <description>@VLAD (= Virus Laboratories And Distribution, back in 1994 from Australia? -- just kidding)
&gt; Did you just type all of those tools from your head?nope, it&#039;s a list i keep around and update for more than 15 years. i have some example for my most common uses, and aliases, functions, in my .bashrc. i prefer zsh, and if you&#039;re learning, try zsh, sadly bash is everywhere and compile nearly everywhere easily (as with most gnu apps)... i just did a copy paste here. i&#039;ll give you some examples here after. another good paper i also keep at hand is the &quot;Unix Rosetta Stone&quot;, it&#039;s useful if you are working with different systems (like aix, *ux, *bsd, osx, sco, solaris, etc). I actually have printed an A3 poster with it and it sits just next to my screens. check it out here: http://bhami.com/rosetta.htmlalso with mc (moonlight commander), you might want to learn the gnu/screen program and how to attach and detach from a session. Instead of running xterm (or whatever you use, rxvt-utf8, gnome-terminal, konsole, etc.), use:xterm -e &quot;screen -D -RR&quot;learn the screen program, its short cuts and what you can use it for. and xterm is quite malleable and you can change it to whatever you like if you learn (again) to use it.It&#039;s difficult to start using unix systems, i remember the first time i used it, i thought i was a pc-guru, knowing assembly on different processors (C64, amiga, atari, or motorola 680x0 for that matter, x86 etc.), then i installed a slackware linux on one of my box and was in front of that horrible terminal where most of the things i knew were unusable (it was a time where X wasn&#039;t really good, and twm was still The Windows Manager, it was before the 1994 windows release of &quot;Chicago&quot;). I can crack most of the programs i know or i like, i can reverse engeneer a lot of protections, even on &quot;alien&quot; hardware with a bit of knowledge. but using linux wasn&#039;t an easy step. i felt quite frustated. it&#039;s like having a little stone in your shoe for a long walk. yet when you get thru the finish line, you&#039;re happy you did. perhaps i was the last to get to the end line, but i was the winner as i got a lot of knowledge forcing myself to know this system. now it&#039;s economic recession, and you get at least 5000 euros a month if you know such systems. if you know them well. i call that win-win ;-)the console is invaluable compared to click, drag&#039;n&#039;drop and other GUI apps, it let you do tons of actions quite rapidly... what&#039;s best? it let you write scripts that write scripts that do all your homework without you bothering about it... i know it sounds old fashion, but even with the better bells and whistles, you will not be as effective as with some scripts (and you can write your own plugins for mc...). instead of looking for a tool that does what you need, start thinking to make a tool that does what you want, not approximatively and you fixing it behind. i recommend perl, but it&#039;s up to you to choose your language. perl is hard to start with, but once you know it, wow, you look at other scripting languages with a smile, they&#039;re so simple and dumb compared to it (it&#039;s my humble opinion, well not really, perl is my god ;) ). anyway linux or other un*x(es) let you create your own tools, stop thinking as a windows user: i can do this clicking here and there. Start thinking: how the hell would i do if i was a stupid computer? learn, learn, learn, it takes years but once you master it, well you&#039;ll be the next pc-guru around ;) until there&#039;s some changes in the universe... ;-)If you wish to stay between windows and linux, there&#039;s a lot of solutions, try cygwin ( http://www.cygwin.com/ ), or even the windows services for unix tools ( SFU, http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX ). Even microsoft recognize that a simple way to talk to a computer is the best way to get things done... a computer is a tool you use. it&#039;s not a simple box lying around your desktop and letting you watch pr0n on the net, or playing games. It can actually get things done, if you KNOW how to ask it.here is an example of my bashrc for linux platforms, you should create a new user with no privileges to start using it, dwelve into it, check the man pages or the infos pages when you don&#039;t understand something. those are just my own tools, nothing magic here, but if you wanna learn, get a look at that stuff. It works both on linux and windows with cygwin.if you create a test user just copy the archive in the /home folder.i send you a copy to your email. it works (in general) for linux and windows (cygwin). and some other oses mentionned before.(sorry if i made mistakes, english isn&#039;t my mother tongue)
---------------------------------------------------------------------------------------------- .bashrc
#!/bin/bash######################################################################
# Exported User Environment Variablesexport USER=`id -un`                   # username
export GROUPS=`id -G`                  # list of groups id we&#039;re in
export HOSTNAME=`hostname`             # the machine we&#039;re using, define their address in /etc/hosts# Home dir
for home in /home /Users; do           # Check Un*x or MacOS
if [[ -d &quot;$home/$USER&quot; ]]; then
export HOME=&quot;$home/$USER&quot;      # our home directory
fi
done
unset -v home# Temp dir
export TMP=&quot;$HOME/tmp&quot;                 # Temporary directory
export TEMP=&quot;$TMP&quot;                     # for dos/win apps
export TMPDIR=&quot;$TMP&quot;                   # i don&#039;t remember what&#039;s using this?!# xxx maybe create the temp dir
if [[ ! -d $TMP ]]; then
echo bashrc: Something is wrong with your TMP dir: &quot;$TMP&quot;.
unset -v TMP TEMP TMPDIR
fi# History settings:
export HISTFILESIZE=4096               # Number of line to save
export HISTSIZE=1024                   # Number of command to remember
export HISTCONTROL=&quot;ignoreboth&quot;        # dont save already entered commands, and command starting with a space (same as ignoredups:ignorespace)
export HISTIGNORE=&quot;..:...:....:cd *:df *:exit:fg:file *:gpg *:l:ll:loc *:ls *:man *:mc:mount *:su *:umount *:units *:wipe *&quot;    # remove those commands from history
export PROMPT_COMMAND=&#039;history -a&#039;     # Save history everytime you issue a command, useful when multiple bash are running# Bash facilities
#export TMOUT=300                       # exit bash after 5 minutes (useful for remote users)
export IGNOREEOF=1                     # CTRL-D twice to exit
export CDPATH=&quot;.:..:../..:~:~/.cdpath:/data:/media&quot;        # path to search when cd&#039;ing (recurse up to 3 path first)######################################################################
# Setting PATH:# xxx check if PATH doesnt contain unknown locations
unset -v PATH
line=1
while read -r path; do
path=${path%#*}
path=${path##*([$&#039; \t\n&#039;])}
path=${path%%*([$&#039; \t\n&#039;])}
eval &quot;path=\&quot;$path\&quot;&quot;
if [[ $path ]]; then
if [[ -d &quot;$path&quot; &amp;&amp; -r &quot;$path&quot; ]]; then
PATH=&quot;$PATH:$path&quot;
else
echo Discarded &quot;$path&quot; at line $line from your PATH.
fi
filet line=line+1
done  33[0;39m&quot;# XTerm Title
# PS1=&quot;\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1&quot;#perl -e printf &quot;33]0;\$PWD07\$PWD&gt; &quot;# PS1=&#039;\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[0;28m\]Managing 33[1;31m\]\j\[33[0m\]\[33[1;30m\]/\[33[0m\]\[33[1;31m\]$(ps ax &#124; wc -l &#124; tr -d &#039;\&#039;&#039; &#039;\&#039;&#039;)\[33[0m\]\[33[1;30m\] \[33[0m\]\[33[0;28m\]jobs.\[33[0m\]\[33[1;30m\]] [\[33[0m\]\[33[0;28m\]CPU Load: \[33[0m\]\[33[1;31m\]$(temp=$(cat /proc/loadavg) &amp;&amp; echo ${temp%% *}) \[33[0m\]\[33[0;28m\]Uptime: \[33[0m\]\[33[1;31m\]$(temp=$(cat /proc/uptime) &amp;&amp; upSec=${temp%%.*} ; let secs=$((${upSec}%60)) ; let mins=$((${upSec}/60%60)) ; let hours=$((${upSec}/3600%24)) ; let days=$((${upSec}/86400)) ; if [ ${days} -ne 0 ]; then echo -n ${days}d; fi ; echo -n ${hours}h${mins}m)\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:.\n\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[1;31m\]$(ls -l &#124; grep &quot;^-&quot; &#124; wc -l &#124; tr -d &quot; &quot;) \[33[0m\]\[33[0;28m\]files using \[33[0m\]\[33[1;31m\]$(ls --si -s &#124; head -1 &#124; awk &#039;\&#039;&#039;{print $2}&#039;\&#039;&#039;)\[33[0m\]\[33[1;30m\]] [\[33[0m\]\[33[1;31m\]\u\[33[0m\]\[33[0;31m\]@\[33[0m\]\[33[1;31m\]\h \[33[0m\]\[33[1;34m\]\w\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:.\n\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[1;31m\]\t\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:. \[33[0m\]\[33[1;37m\]\$ \[33[0m\]&#039;
# PS1=&quot;${TITLEBAR}\T\[33[0m\]\[33[0;33m\]::\[33[0m\]\[33[1;30m\]\[33[0m\]\[33[0;37m\]\u\[33[0m\]\[33[0;33m\]@\[33[0m\]\[33[0;37m\]\h\[33[0m\]\[33[0;33m\]::\[33[0m\]\[33[1;33m\]\w\[33[0m\]\[33[0;33m\] \[33[0m\]\[33[0;32m\]\[33[0m\]\[33[1;37m\]\[33[0m\]\[33[1;37m\](\[33[0m\]\[33[0;33m\]\$(ls -l &#124; grep \&quot;^-\&quot; &#124; wc -l &#124; tr -d \&quot; \&quot;)\[33[0m\]\[33[1;37m\] \[33[0m\]\[33[1;30m\]\[33[0m\]\[33[0;37m\]files\[33[0m\]\[33[1;37m\], \[33[0m\]\[33[0;33m\]\$(ls --si -s &#124; head -1 &#124; awk &#039;{print \$2}&#039;) \[33[0m\]\[33[0;37m\]total\[33[0m\]\[33[0;37m\])\n\[33[0m\]\[33[1;37m\]%\[33[0;0m\]&quot;
# dumb prompt
#export PS1=&quot;\nDate: \d, \t\nUser: [\u@\H] Jobs: [\j] History: [\!]\n\w\$ &quot;
#export PS2=&quot;&gt; &quot;# New dircolors (see gen_filetypes.pl)
eval `dircolors -b &quot;$HOME/.dircolors&quot;`
# File Extentions xxx
export ExtImages=&quot;*.bmp *.BMP *.gif *.GIF *.jpg *.JPG&quot;# Some useful vars
#export EDITOR=&quot;vim --servername VIM_$USER --remote-silent &quot; # doesnt work as expected
export EDITOR=&quot;vim&quot;
export EDITORCMD=&quot;vim --servername VIM_$USER --remote-silent&quot;
export GREP_COLOR=31
export PAGER=&#039;less&#039;
export LESS=&#039;-iMQRSw -PM[%i/%m\: ?f%f:STDIN.] [C\:%c] [L\:?l%l:*.-?lb%lb:*./?L%L:*.] [P\:?d%d:*./?D%D:*.] [O\:?b%b:*./?B%B:*.] [?pt%pt:*.-?Pb%Pb:*.\%]&#039;
#eval `bin/lesspipe`
#export LESSOPEN=&quot;&#124; ~/bin/lesspipe %s&quot;;
#export LESSCLOSE=&quot;~/bin/lesspipe %s %s&quot;;
[ -x /usr/bin/lesspipe ] &amp;&amp; eval &quot;$(SHELL=/bin/sh lesspipe)&quot;# Screen dir (in case compile-time opts set the tmp files somewhere else)
# export SCREENRC=&quot;$HOME/.screenrc# Fix perl 5.8.0 weird behaviour with cygwin (\r\n -&gt; \n)
#export PERLIO=&#039;raw&#039;######################################################################
# Load configurations file, possibly overriding previous definitions.
# ATTN: All previously defined aliases will be removed!for file in ~/.bash/aliases_functions.sh ~/.bash/shell_options.sh ~/.bash/hosts/$HOSTNAME_*.sh; do
if [[ -f  $file &amp;&amp; -r $file ]]; then
. $file
else
echo bashrc: Not found: &quot;$file&quot;.
fi
done
unset -v file########
# Command line option/completion
## Command line completion
export FIGNORE=&#039;.bck:bak:~&#039;            # ignored ext for completion
export INPUTRC=&quot;$HOME/.inputrc&quot;        # process my readline settingscomplete -d cd                         # we only want to cd into directories
complete -G &quot;/mnt/*&quot; mount             # cant mount anything
complete -G &quot;/mnt/*&quot; umount# i never remember all those pid
complete -C &quot;find_pid&quot; kill# command completion
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi##### Function keys
bind -x &#039;&quot;\C-b&quot;:cal -m3&#039;bind -x &#039;&quot;\M--&quot;: pushd ..&#039;
bind -x &#039;&quot;\M-=&quot;: popd&#039;# Clean
unset -v WARNINGS----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------- inputrc# Various Options
# man readline (comments are a pain here)
#$if bash
set editing-mode emacs
set keymap emacs
set enable-keypad on# This one cause problems with correct display of $PS1
#set horizontal-scroll-mode on#set convert-meta off
#set input-meta on
#set meta-flag on
#set output-meta on
#set bind-tty-special-chars on
#set byte-oriented offset bell-style visible
set prefer-visible-bell on
set blink-matching-paren onset completion-ignore-case on
set completion-query-items 256
set disable-completion off
#set page-completions off
set print-completions-horizontally on
set expand-tilde off
set mark-directories on
#set mark-symlinked-directories on
set visible-stats on
set match-hidden-files on
set show-all-if-ambiguous on
set show-all-if-unmodified offset history-preserve-point off
set mark-modified-lines offset comment-begin ## Completion
Tab: menu-complete# History (Up/Down arrowns)
#&quot;\M-OA&quot;: history-search-backward
#&quot;\M-OB&quot;: history-search-forward
#&quot;\e[A&quot;: history-search-backward
#&quot;\e[B&quot;: history-search-forward# Moving (Home/End)
#&quot;\e[1~&quot;: beginning-of-line
#&quot;\e[2~&quot;: quoted-insert
#&quot;\e[3~&quot;: delete-char
#&quot;\e[4~&quot;: end-of-line
#&quot;\e[5~&quot;: beginning-of-history
#&quot;\e[6~&quot;: end-of-history
#&quot;\e[5C&quot;: forward-word
#&quot;\e[5D&quot;: backward-word# Custom Shortcuts
Control-L: clear-screen# Magic space
Space: magic-space
$endif----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------  .bash/aliases_functions.sh######################################################################
#       Title: ~/.bash/aliases_functions.sh configuration file
# ------------------------------------------------------------------
#     Created: 1994-07-23_10:31:17
#     Version: 2007-02-27_20:01:07
#      Author: unknown groumph.
#
# Description: This bash initialisation file is read and executed
#              when starting a non-login shell from ~/.bashrc.
######################################################################
# Note that comments beginning with:
#  - #! Modify the original command (those might cause bugs, I try to avoid them)
#  - #= Leave the command working as usual
#  - #&gt; Create a new command (this might override something, but not to my knowledge)
######################################################################unalias -a                             # Delete all aliases
alias realias=&quot;$EDITOR ~/.bash/aliases_functions.sh; source ~/.bash/aliases_functions.sh&quot; #&gt; Edit and reload aliases#alias diff=&#039;diff -u&#039;######################################################################
# Navigate
alias cd..=&#039;cd ..&#039;                     #&gt; yes, i was using dos first !#@?
alias ..=&#039;cd ..&#039;                       #&gt; Norton Dos, in fact.... (which was better than 4Dos IMHO)
alias ...=&#039;cd ../..&#039;                   #&gt;
alias ....=&#039;cd ../../..&#039;               #&gt; and i like long directory trees ;-)
alias z=&#039;cd -&#039;                         #&gt; go back to previous directory
alias tree=&#039;tree -df&#039;                  #! not aviailable everywhere
alias mkdir=&#039;mkdir -p&#039;                 #= create nested subdirs too######################################################################
# List files
alias ls=&#039;ls --color=auto --quoting-style=shell-always&#039; #! We want fancy colors, in a quoted string ALWAYS!
alias l=&#039;ls -F&#039;                        #&gt; two chars is faaar too long to type
alias lU=&#039;ls -dFl [A-Z]*&#039;              #&gt; list files/dirs begining with an uppercase letter
alias lu=&#039;ls -dFl [a-z]*&#039;              #&gt; list files/dirs begining with an uppercase letter
alias l.=&#039;ls -adFx .*&#039;                 #&gt; list dot files/dirs
alias ll=&#039;ls -lFh&#039;                     #&gt; list (h)uman-readable
alias la=&#039;ls -lFha&#039;                    #&gt; list (a)ll, (h)uman-readable
alias lt=&#039;ls -lFhart&#039;                  #&gt; list (a)ll, (h(uman-readable, time (recent goes last)
alias ltc=&#039;ls -lFhatc&#039;                 #&gt; list (a)ll, (h(uman-readable, creation time (recent goes last)
alias lz=&#039;ls -lFharS&#039;                  #&gt; list (a)ll, (h(uman-readable, size (biggest goes last)
alias lx=&#039;ls -lFhaX&#039;                   #&gt; list (a)ll, (h(uman-readable, extension
alias lsd=&#039;ls -lhd */&#039;                 #&gt; directories
alias lad=&#039;ls -lhd */ .*/&#039;             #&gt; directories######################################################################
# sockets
alias showsocks=&#039;ss -apes &#124; P&#039;         #&gt; all types, processes infos, detailled infos
# xxx lsof######################################################################
# Find files
alias ff=&#039;find . -iname&#039;               #&gt; find files in the current subdirs, case (i)nsensitive
alias flist=&#039;find .&#039;                   #&gt; list all files in subdirs (with ./ relative path)
alias flista=&#039;find `pwd` -print&#039;       #&gt; list all files in subdirs (with absolute filename)
alias loc=&#039;locate -i&#039;                  #&gt; find files from update db, case insensitive
alias locf=&#039;locate -bei&#039;               #&gt; find files from update db, only the basename, case insensitive, and if file still exists######################################################################
# Look at files
alias P=&#039;less&#039;                         #&gt; Pager
alias S=&#039;sort -f&#039;                      #&gt; Sort, case insensitive
alias SP=&#039;S&#124;P&#039;                         #&gt; Sort, case insensitive, results in pager
alias SU=&#039;sort -uf&#039;                    #&gt; Sort, uniq, case insensitive
alias SD=&#039;sort -f &#124; uniq -id&#039;          #&gt; Sort, dups, case insensitive
alias SN=&#039;sort -nf&#039;                    #&gt; Sort, insensitive, numerical
alias SUP=&#039;SU&#124;P&#039;                       #&gt; Sort, uniq, case insensitive, results in pager
alias SDP=&#039;SD&#124;P&#039;                       #&gt; Sort, dups, case insensitive, results in pager
alias SNP=&#039;SN&#124;P&#039;
alias H=&#039;head -32&#039;                     #&gt; Show the first 32 lines of a file
alias T=&#039;tail -32&#039;                     #&gt; Show the last 32 lines of a file
alias Tf=&#039;tail -32 -f&#039;                 #&gt; Show the last 32 lines of a file and follow
alias filez=&#039;file -kLpsz&#039;              #&gt; Keep, dereference links, preserve date, special files, uncompress
# xxx extract meta-data
alias g=&#039;egrep --color=auto -i -r&#039;     #&gt; Quick search with colors, case insensitive and recurse dirs
#alias hex=&#039;hexdump -C&#039;                #&gt; Canonical hexdump ofs hex ascii (you can use hd instead)
alias hex=&#039;xxd -a -c 32 -g 4&#039;          #&gt; hex dump
alias hexpatch=&#039;xxd -r -a -c 32 -g 4&#039;  #&gt; apply hexdump
# xxx hexpatch
alias stringz=&#039;strings -a&#039;             #&gt; show all, print hex offset
alias stringx=&#039;strings -atx&#039;           #&gt; + hex offsets
alias V=&#039;mcview&#039;                       #&gt;
alias X=&#039;mcedit&#039;                       #&gt; I use this for the binary editor######################################################################
# Access rights
alias R=&#039;chmod -Rc&#039;
alias O=&#039;chown -Rc&#039;######################################################################
# Free space
alias df=&#039;df -PTah --sync&#039;             #! All FS, human read-able, print FS type, sync first
alias dfi=&#039;df -PTai --sync&#039;            #&gt; All FS, list free inodes, FS type, sync first
alias uspc=&#039;du -h --max-depth=1&#039;       #&gt; used space in current dir and subdirectorires######################################################################
# Perl
alias p=&#039;perl -nle&#039;                    #&gt; process file by line, chomp
alias pp=&#039;perl -ple&#039;                   #&gt; process file by line, chomp and print
alias pdbg=&#039;perl -de 1&#039;                #&gt; perl debugger
alias dpl=&#039;perl -MO=Deparse&#039;           #&gt; show how perl see this code
alias dpl2=&#039;perl -MO=Deparse,-p,-q,-sCT&#039; #&gt; show how perl see this code, with parens and more
alias cpan=&#039;perl -MCPAN -e shell&#039;      #&gt; Start CPAN######################################################################
# Processes and jobs
alias psaux=&#039;ps ax --cols 1024 --format pid,euser,egroup,pri,nice,start,etime,%cpu,vsize,tty,args &#124; less&#039; #&gt; i like this format...
alias pstree=&#039;pstree -Aplnu &#124; P&#039;    #&gt; Process tree
#alias psg=&#039;ps aux &#124; egrep -i&#039;          # using pgrep instead
#alias myps=&#039;ps -Af &#124; egrep -i $USER&#039;
alias psg=&#039;pgrep&#039;
alias top10=&quot;uname -a; uptime; echo; ps -eo pcpu,rss,stime,user,pid,cmd --sort -pcpu &#124; head -11 &#124; cut -c -80; echo; ps -eo vsize,rss,size,stime,user,pid,cmd --sort -rss &#124; head -11 &#124; cut -c -80; echo; free -mt&quot; # top 10 cpu/memory processesalias j=&#039;jobs -l&#039;                      #&gt; list process id too
alias 1=&#039;fg 1&#039;
alias 2=&#039;fg 2&#039;
alias 3=&#039;fg 3&#039;
alias 4=&#039;fg 4&#039;
alias 5=&#039;fg 5&#039;
alias 6=&#039;fg 6&#039;
alias 7=&#039;fg 7&#039;
alias 8=&#039;fg 8&#039;
alias 9=&#039;fg 9&#039;
alias 0=&#039;fg 10&#039;######################################################################
# Various useful shortcuts# Calculations, units convertions
alias ?=&quot;qalc&quot;                         #&gt; quick calculations/units &amp; money conversion (qalculate.sf.net)
alias bc=&#039;bc -ql&#039;                      #= bc should be quiet, and with mathlib
alias units=&#039;units -qv&#039;                #! should be quiet AND verbose (guess that one)alias cls=&#039;echo -e \33c; clear&#039;      #&gt; Reset terminal, clear screen# Various
alias dmsg=&#039;dmesg &#124; less&#039;              #&gt; List kernel boot messages
alias h=&#039;pman&#039;                         #&gt; manual page browser
alias mrproper=&#039;find . \( -type f -and -iname \*.bak -or -iname \*.bck -or -iname \*~ \) -exec rm -f &quot;{}&quot; \;&#039; #&gt; Delete backups and other temp files
alias notes=&#039;vim /data/dox/notes.txt&#039;  #&gt; quickie
alias tar=&#039;tar -b 32768 --atime-preserve&#039; #! here block size ~16M are ok (faster/smaller), no access time modifications
alias www=&#039;elinks&#039;
alias Z=&#039;sudo&#039;                         #&gt; Changing ug is shorter this way# Use the same editor
#alias gvim=&quot;gvim --servername VIM_$USER --remote-silent&quot; #! use the same gvim for every edit
#alias vim=&quot;vim --servername VIM_$USER --remote-silent&quot; #! use the same vim for every edit
#alias vi=&quot;vim --servername VIM_$USER --remote-silent&quot; #! no vi# Stupid aliases
alias fortune=&#039;fortune -a&#039;             # Take all
alias snes=&#039;snes9x -y3 -dfr&#039;           #&gt; 2xSaI mode, show framerate# Date/Time Stamps
alias ts=&quot;date -u +%Y%m%d_%H%M%S&quot;      #&gt; Output a timestamp (UTC). Touch `ts`-newfile.
alias tsd=&quot;date -u +%Y%m%d&quot;            #&gt; Output a date timestamp (UTC).
alias tsh=&quot;date -u +%H%M%S&quot;            #&gt; Output an hour timestamp (UTC).# X aliases
alias G=&quot;gqview&quot;
alias D0=&#039;export DISPLAY=:0&#039;
alias DS=&#039;echo DISPLAY=$DISPLAY TERM=$TERM $COLUMNS x $LINES&#039;# Uncomment on mondays mornings...
#alias rm=&#039;rm -i&#039;
#alias cp=&#039;cp -i&#039;
#alias mv=&#039;mv -i&#039;#### Services
#for service in `/etc/init.d/*`
#do
#    alias &quot;rc${service}&quot;=&quot;/etc/init.d/${service}&quot;
#donealias t=&#039;todo&#039;########
# Function
## MC
# cd to last selected directory (from Torben Fjerdingstad)
unset -f mc
function mc () {
mkdir -pm 0700 $HOME/.mc/tmp 2&gt;/dev/null;
OLD_TERM=$TERM
TERM=&#039;xterm&#039;
MC=$HOME/.mc/tmp/mc-$$;
TERM=$OLD_TERM
/usr/bin/mc -a -P $MC &quot;$@&quot;;
cd &quot;`cat $MC`&quot;;
rm -f &quot;$MC&quot;;
unset -v OLD_TERM MC;
}# Directory creations
# mkdir and cd
unset -f md
function md () {
mkdir -p &quot;$*&quot; &amp;&amp; cd &quot;$*&quot;
}alias rd=&quot;rm -Rf&quot; # Remove non-empty directories# create a parent directory
unset -f mpd
function mpd () {
mkdir -p ../$1;
}----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/aliases_functions.sh# create a temporary dir and set $TSTMP
unset -f mdtmp
function mdtmp () {
export TSTMP=&quot;~/tmp/`date -u +%Y%m%d_%H%M%S`-$1&quot;;
mkdir -p &quot;$TSTMP&quot;;
}
# xxx delete TSTMP# Safe Edit
# copy and edit
# xxx $1 -&gt; command $rest files
unset -f edt
function edt () {
local $old=&quot;$1.`date -u +%Y%m%d_%H%M%S`.$USER.edt&quot;
### find old version of file
cp &quot;$1{,.$old}&quot;cp &quot;$1{,.$USER.`date -u +%Y%m%d_%H%M%S`.edt}&quot;
vim &quot;$1&quot;
}# Save a copy of the file
# xxx add support for: comment + filenames
unset -f save
function save() {
cp &quot;$1&quot; &quot;$1.`date -u +%Y%m%d_%H%M%S`.$USER.edt&quot;
}# Scripts Show
# Save scripts for replay
unset -f scriptrec
function scriptrec () {
local SCRIPT=&quot;$1.script&quot;
local TMPDIR=&quot;$TMP/`date -u +%Y%m%d_%H%M%S`-$SCRIPT&quot;
local TIMINGS=&quot;$SCRIPT.timings&quot;
local OUTFILE=&quot;$SCRIPT.tar.bz2&quot;mkdir -pm 0700 &quot;$TMPDIR&quot;
script -t &quot;$TMPDIR/$SCRIPT&quot; 2&gt; &quot;$TMPDIR/$TIMINGS&quot;
echo Usage: scriptreplay &quot;$SCRIPT&quot; &quot;$TIMINGS&quot; 3.5 &gt; $TMPDIR/README
tar -cj -C &quot;$TMPDIR&quot; -f &quot;$OUTFILE&quot; &quot;$SCRIPT&quot; &quot;$TIMINGS&quot; README
rm -Rf $TMPDIR
}# Replay a saved script with turbo 3.5x (looks good here)
unset -f scriptplay
function scriptplay () {
local SCRIPT=${1%.tar.bz2}
local TMPDIR=&quot;$TMP/`date -u +%Y%m%d_%H%M%S`-$SCRIPT&quot;
local TIMINGS=&quot;$SCRIPT.timings&quot;mkdir -pm 0700 &quot;$TMPDIR&quot;
tar -xj -C &quot;$TMPDIR&quot; -f &quot;$1&quot;
scriptreplay &quot;$TMPDIR/$SCRIPT.timings&quot; &quot;$TMPDIR/$SCRIPT&quot; 3.5
rm -Rf $TMPDIR
}# From bash_aliases docs
# csh compatalias unsetenv=unset
unset -f setenv
function setenv () {
export $1=&quot;$2&quot;
}######################################################################alias showpath=&#039;echo -e ${PATH//:/\\n}&#039;unset -f loadpath
function loadpath () {
local LINE=1
local DIR
local NEWPATH
while read -r DIR; do
DIR=${DIR%#*}                # remove comments
DIR=${DIR##*([$&#039; \t\n&#039;])}    # trim trailling spaces
DIR=${DIR%%*([$&#039; \t\n&#039;])}
eval &quot;DIR=\&quot;$DIR\&quot;&quot;          # evaluate vars
if [[ $DIR ]]; then
if [[ -d &quot;$DIR&quot; &amp;&amp; -r &quot;$DIR&quot; ]]; then
NEWPATH=&quot;$NEWPATH:$DIR&quot;
else
echo loadpath: Discarded &quot;$DIR&quot; at line $LINE from your PATH.
fi
fi
let LINE=LINE+1
done ~/.xpdf-err-log&amp;  return; fi
#     if test -z &quot;${S:#*PDF}&quot; ; then xpdf $1 2&gt;~/.xpdf-err-log&amp;  return; fi
#     if test -z &quot;${S:#*dvi}&quot; ; then  xdvi $1 &amp;  return;  fi
#     if test  &quot;${S/[0-9]//}&quot; ; then  gv $1 &amp;  return;  fi
#     less $1;
# #echo &quot;vv(): file $1 is of unknown type.&quot; 1&gt;&amp;2;
# }bind &#039;&quot;\C-t&quot;: possible-completions&#039; # replaces &#039;transpose-chars&#039;
M-t&quot;: menu-complete&#039;        # replaces &#039;transpose-words&#039;# alias newpw=&quot;pwgen --no-capitalize&quot;## changing terminal type
# alias v1=&#039;export TERM=vt100&#039;
# alias v2=&#039;export TERM=vt220&#039;
# alias vl=&#039;export TERM=linux&#039;
# alias vx=&#039;export TERM=xterm-color&#039;# sshot ()
# { sleep 5; import -window root desktop.jpg }# ## find all suid files
# suidfind ()
# { ls -l /**/*(su0x) }# ispell -a -m -B &#124;grep -v &quot;@&quot;# xset fp+ /font/path/# repeat n times command
function repeat() {
local i max
max=$1; shift;
for ((i=1; i  C-like syntax
eval &quot;$@&quot;;
done
}----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/path.txt                                                                 100%
/bin
/sbin
/usr/bin
/usr/sbin
/usr/bin/X11
/usr/local/bin
/usr/local/sbin
/usr/share/bin
/usr/share/sbin
/opt/gnome/bin
/opt/kde3/bin
/usr/lib/hxtools/bin
/usr/X11R6/bin
/usr/games/
$HOME/bin
/c/windows
/c/windows/system
/c/windows/system32
/c/windows/system32/wbem
/c/prg/tools
/c/prg/winrk
/c/prg/lnk
/c/prg/ultraedit
/c/prg/mysql/bin
/c/prg/perl/bin
/c/prg/php
/c/prg/python
/c/prg/java/bin
/c/prg/tcl/bin
/c/prg/bordel
/c/program files/microsoft sdks/windows/v6.0/bin
/c/program files/microsoft sdks/windows/v6.0/vc/bin
/c/program files/microsoft sql server/90/tools/binn
/c/program files/quicktime/qtsystem
/c/vstudio/common7/ide
/c/vstudio/common7/tools
/c/vstudio/sdk/v2.0/bin
/c/vstudio/vc/bin
/c/vstudio/vc/vcpackages
/c/windows/microsoft.net/framework/v2.0.50727
/c/windows/system32/windowspowershell/v1.0----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/shell_options.sh#!/bin/bash
######################################################################
#       Title: ~/.bash/shell_options.sh configuration file
# ------------------------------------------------------------------
#     Created: 1994-07-23_10:31:17
#     Version: 2007-02-27_20:01:07
#      Author: groiumph
#
# Description: This bash initialisation file is read and executed
#              when starting a non-login shell from ~/.bashrc.
#              It comes from the output of `shopt -p`. I made it a
#              separate file due to the fact that different versions
#              of bash are probably installed on different hosts.
####################################################################### Option without comments means I&#039;ve not investigated really far into the man page.shopt -u cdable_vars                   # you do not want &#039;cd here&#039; to be the same as &#039;cd $here&#039;
shopt -s cdspell                       # correct minor typing errors in cd commands
shopt -s checkhash                     # faster command completion
shopt -s checkwinsize                  # check if the terminal changed size !after! each command
shopt -s cmdhist                       # save multi-line commands into onliners
shopt -u dotglob                       # find .bashrc with ls *bash*, but NOT with ls *
shopt -u execfail
shopt -s expand_aliases                # Expand aliases before
shopt -u extdebug
shopt -s extglob                       # Enable extended pattern matching (!, *, ?, @,  etc)
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u gnu_errfmt
shopt -s histappend                    # do not overwrite history (i dig it!)
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete                  # hostnames completion
shopt -u huponexit
#shopt -u igncr
shopt -s interactive_comments          # allow comments at the shell
shopt -u lithist
#shopt -s login_shell                   # !!!: read-only
shopt -u mailwarn                      # bash do not even look at my mails
shopt -s no_empty_cmd_completion       # do not try to complete empty lines
shopt -s nocaseglob                    # globs are case insensitive for me
shopt -s nocasematch                   # case match are insentive too [[glob]]
shopt -u nullglob
shopt -s progcomp                      # enable programmable completion
shopt -s promptvars                    # prompt is expanded
shopt -u restricted_shell
shopt -u shift_verbose                 # Allow variable paramters to functions
shopt -s sourcepath                    # Allow &quot;source xxx&quot; if xxx is matched in $PATH
shopt -u xpg_echo----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/hosts/endymion_shell_options.sh#!/bin/bash
######################################################################
#       Title: ~/.bash/shell_options.sh configuration file
# ------------------------------------------------------------------
#     Created: 1994-07-23_10:31:17
#     Version: 2007-02-27_20:01:07
#      Author: groumph
#
# Description: This bash initialisation file is read and executed
#              when starting a non-login shell from ~/.bashrc.
#              It comes from the output of `shopt -p`. I made it a
#              separate file due to the fact that different versions
#              of bash are probably installed on different hosts.
####################################################################### Option without comments means I&#039;ve not investigated really far into the man page.shopt -u cdable_vars                   # you do not want &#039;cd here&#039; to be the same as &#039;cd $here&#039;
shopt -s cdspell                       # correct minor typing errors in cd commands
shopt -s checkhash                     # faster command completion
shopt -s checkwinsize                  # check if the terminal changed size !after! each command
shopt -s cmdhist                       # save multi-line commands into onliners
shopt -u dotglob                       # find .bashrc with ls *bash*, but NOT with ls *
shopt -u execfail
shopt -s expand_aliases                # Expand aliases before
shopt -u extdebug
shopt -s extglob                       # Enable extended pattern matching (!, *, ?, @,  etc)
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u gnu_errfmt
shopt -s histappend                    # do not overwrite history (i dig it!)
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete                  # hostnames completion
shopt -u huponexit
#shopt -u igncr
shopt -s interactive_comments          # allow comments at the shell
shopt -u lithist
#shopt -s login_shell                   # !!!: read-only
shopt -u mailwarn                      # bash do not even look at my mails
shopt -s no_empty_cmd_completion       # do not try to complete empty lines
shopt -s nocaseglob                    # globs are case insensitive for me
shopt -s nocasematch                   # case match are insentive too [[glob]]
shopt -u nullglob
shopt -s progcomp                      # enable programmable completion
shopt -s promptvars                    # prompt is expanded
shopt -u restricted_shell
shopt -u shift_verbose                 # Allow variable paramters to functions
shopt -s sourcepath                    # Allow &quot;source xxx&quot; if xxx is matched in $PATH
shopt -u xpg_echo</description> <content:encoded><![CDATA[<p>@VLAD (= Virus Laboratories And Distribution, back in 1994 from Australia? -- just kidding)<br
/> &gt; Did you just type all of those tools from your head?</p><p>nope, it's a list i keep around and update for more than 15 years. i have some example for my most common uses, and aliases, functions, in my .bashrc. i prefer zsh, and if you're learning, try zsh, sadly bash is everywhere and compile nearly everywhere easily (as with most gnu apps)... i just did a copy paste here. i'll give you some examples here after. another good paper i also keep at hand is the "Unix Rosetta Stone", it's useful if you are working with different systems (like aix, *ux, *bsd, osx, sco, solaris, etc). I actually have printed an A3 poster with it and it sits just next to my screens. check it out here: <a
href="http://bhami.com/rosetta.html" rel="nofollow">http://bhami.com/rosetta.html</a></p><p>also with mc (moonlight commander), you might want to learn the gnu/screen program and how to attach and detach from a session. Instead of running xterm (or whatever you use, rxvt-utf8, gnome-terminal, konsole, etc.), use:</p><p>xterm -e "screen -D -RR"</p><p>learn the screen program, its short cuts and what you can use it for. and xterm is quite malleable and you can change it to whatever you like if you learn (again) to use it.</p><p>It's difficult to start using unix systems, i remember the first time i used it, i thought i was a pc-guru, knowing assembly on different processors (C64, amiga, atari, or motorola 680x0 for that matter, x86 etc.), then i installed a slackware linux on one of my box and was in front of that horrible terminal where most of the things i knew were unusable (it was a time where X wasn't really good, and twm was still The Windows Manager, it was before the 1994 windows release of "Chicago"). I can crack most of the programs i know or i like, i can reverse engeneer a lot of protections, even on "alien" hardware with a bit of knowledge. but using linux wasn't an easy step. i felt quite frustated. it's like having a little stone in your shoe for a long walk. yet when you get thru the finish line, you're happy you did. perhaps i was the last to get to the end line, but i was the winner as i got a lot of knowledge forcing myself to know this system. now it's economic recession, and you get at least 5000 euros a month if you know such systems. if you know them well. i call that win-win ;-)</p><p>the console is invaluable compared to click, drag'n'drop and other GUI apps, it let you do tons of actions quite rapidly... what's best? it let you write scripts that write scripts that do all your homework without you bothering about it... i know it sounds old fashion, but even with the better bells and whistles, you will not be as effective as with some scripts (and you can write your own plugins for mc...). instead of looking for a tool that does what you need, start thinking to make a tool that does what you want, not approximatively and you fixing it behind. i recommend perl, but it's up to you to choose your language. perl is hard to start with, but once you know it, wow, you look at other scripting languages with a smile, they're so simple and dumb compared to it (it's my humble opinion, well not really, perl is my god ;) ). anyway linux or other un*x(es) let you create your own tools, stop thinking as a windows user: i can do this clicking here and there. Start thinking: how the hell would i do if i was a stupid computer? learn, learn, learn, it takes years but once you master it, well you'll be the next pc-guru around ;) until there's some changes in the universe... ;-)</p><p>If you wish to stay between windows and linux, there's a lot of solutions, try cygwin ( <a
href="http://www.cygwin.com/" rel="nofollow">http://www.cygwin.com/</a> ), or even the windows services for unix tools ( SFU, <a
href="http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX" rel="nofollow">http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX</a> ). Even microsoft recognize that a simple way to talk to a computer is the best way to get things done... a computer is a tool you use. it's not a simple box lying around your desktop and letting you watch pr0n on the net, or playing games. It can actually get things done, if you KNOW how to ask it.</p><p>here is an example of my bashrc for linux platforms, you should create a new user with no privileges to start using it, dwelve into it, check the man pages or the infos pages when you don't understand something. those are just my own tools, nothing magic here, but if you wanna learn, get a look at that stuff. It works both on linux and windows with cygwin.</p><p>if you create a test user just copy the archive in the /home folder.</p><p>i send you a copy to your email. it works (in general) for linux and windows (cygwin). and some other oses mentionned before.</p><p>(sorry if i made mistakes, english isn't my mother tongue)<br
/> ---------------------------------------------------------------------------------------------- .bashrc<br
/> #!/bin/bash</p><p>######################################################################<br
/> # Exported User Environment Variables</p><p>export USER=`id -un`                   # username<br
/> export GROUPS=`id -G`                  # list of groups id we're in<br
/> export HOSTNAME=`hostname`             # the machine we're using, define their address in /etc/hosts</p><p># Home dir<br
/> for home in /home /Users; do           # Check Un*x or MacOS<br
/> if [[ -d "$home/$USER" ]]; then<br
/> export HOME="$home/$USER"      # our home directory<br
/> fi<br
/> done<br
/> unset -v home</p><p># Temp dir<br
/> export TMP="$HOME/tmp"                 # Temporary directory<br
/> export TEMP="$TMP"                     # for dos/win apps<br
/> export TMPDIR="$TMP"                   # i don't remember what's using this?!</p><p># xxx maybe create the temp dir<br
/> if [[ ! -d $TMP ]]; then<br
/> echo bashrc: Something is wrong with your TMP dir: "$TMP".<br
/> unset -v TMP TEMP TMPDIR<br
/> fi</p><p># History settings:<br
/> export HISTFILESIZE=4096               # Number of line to save<br
/> export HISTSIZE=1024                   # Number of command to remember<br
/> export HISTCONTROL="ignoreboth"        # dont save already entered commands, and command starting with a space (same as ignoredups:ignorespace)<br
/> export HISTIGNORE="..:...:....:cd *:df *:exit:fg:file *:gpg *:l:ll:loc *:ls *:man *:mc:mount *:su *:umount *:units *:wipe *"    # remove those commands from history<br
/> export PROMPT_COMMAND='history -a'     # Save history everytime you issue a command, useful when multiple bash are running</p><p># Bash facilities<br
/> #export TMOUT=300                       # exit bash after 5 minutes (useful for remote users)<br
/> export IGNOREEOF=1                     # CTRL-D twice to exit<br
/> export CDPATH=".:..:../..:~:~/.cdpath:/data:/media"        # path to search when cd'ing (recurse up to 3 path first)</p><p>######################################################################<br
/> # Setting PATH:</p><p># xxx check if PATH doesnt contain unknown locations<br
/> unset -v PATH<br
/> line=1<br
/> while read -r path; do<br
/> path=${path%#*}<br
/> path=${path##*([$' \t\n'])}<br
/> path=${path%%*([$' \t\n'])}<br
/> eval "path=\"$path\""</p><p> if [[ $path ]]; then<br
/> if [[ -d "$path" &amp;&amp; -r "$path" ]]; then<br
/> PATH="$PATH:$path"<br
/> else<br
/> echo Discarded "$path" at line $line from your PATH.<br
/> fi<br
/> fi</p><p> let line=line+1<br
/> done  33[0;39m"</p><p># XTerm Title<br
/> # PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"</p><p>#perl -e printf "33]0;\$PWD07\$PWD&gt; "</p><p># PS1='\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[0;28m\]Managing 33[1;31m\]\j\[33[0m\]\[33[1;30m\]/\[33[0m\]\[33[1;31m\]$(ps ax | wc -l | tr -d '\'' '\'')\[33[0m\]\[33[1;30m\] \[33[0m\]\[33[0;28m\]jobs.\[33[0m\]\[33[1;30m\]] [\[33[0m\]\[33[0;28m\]CPU Load: \[33[0m\]\[33[1;31m\]$(temp=$(cat /proc/loadavg) &amp;&amp; echo ${temp%% *}) \[33[0m\]\[33[0;28m\]Uptime: \[33[0m\]\[33[1;31m\]$(temp=$(cat /proc/uptime) &amp;&amp; upSec=${temp%%.*} ; let secs=$((${upSec}%60)) ; let mins=$((${upSec}/60%60)) ; let hours=$((${upSec}/3600%24)) ; let days=$((${upSec}/86400)) ; if [ ${days} -ne 0 ]; then echo -n ${days}d; fi ; echo -n ${hours}h${mins}m)\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:.\n\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[1;31m\]$(ls -l | grep "^-" | wc -l | tr -d " ") \[33[0m\]\[33[0;28m\]files using \[33[0m\]\[33[1;31m\]$(ls --si -s | head -1 | awk '\''{print $2}'\'')\[33[0m\]\[33[1;30m\]] [\[33[0m\]\[33[1;31m\]\u\[33[0m\]\[33[0;31m\]@\[33[0m\]\[33[1;31m\]\h \[33[0m\]\[33[1;34m\]\w\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:.\n\[33[0m\]\[33[0;31m\].:\[33[0m\]\[33[1;30m\][\[33[0m\]\[33[1;31m\]\t\[33[0m\]\[33[1;30m\]]\[33[0m\]\[33[0;31m\]:. \[33[0m\]\[33[1;37m\]\$ \[33[0m\]'<br
/> # PS1="${TITLEBAR}\T\[33[0m\]\[33[0;33m\]::\[33[0m\]\[33[1;30m\]\[33[0m\]\[33[0;37m\]\u\[33[0m\]\[33[0;33m\]@\[33[0m\]\[33[0;37m\]\h\[33[0m\]\[33[0;33m\]::\[33[0m\]\[33[1;33m\]\w\[33[0m\]\[33[0;33m\] \[33[0m\]\[33[0;32m\]\[33[0m\]\[33[1;37m\]\[33[0m\]\[33[1;37m\](\[33[0m\]\[33[0;33m\]\$(ls -l | grep \"^-\" | wc -l | tr -d \" \")\[33[0m\]\[33[1;37m\] \[33[0m\]\[33[1;30m\]\[33[0m\]\[33[0;37m\]files\[33[0m\]\[33[1;37m\], \[33[0m\]\[33[0;33m\]\$(ls --si -s | head -1 | awk '{print \$2}') \[33[0m\]\[33[0;37m\]total\[33[0m\]\[33[0;37m\])\n\[33[0m\]\[33[1;37m\]%\[33[0;0m\]"<br
/> # dumb prompt<br
/> #export PS1="\nDate: \d, \t\nUser: [\u@\H] Jobs: [\j] History: [\!]\n\w\$ "<br
/> #export PS2="&gt; "</p><p># New dircolors (see gen_filetypes.pl)<br
/> eval `dircolors -b "$HOME/.dircolors"`<br
/> # File Extentions xxx<br
/> export ExtImages="*.bmp *.BMP *.gif *.GIF *.jpg *.JPG"</p><p># Some useful vars<br
/> #export EDITOR="vim --servername VIM_$USER --remote-silent " # doesnt work as expected<br
/> export EDITOR="vim"<br
/> export EDITORCMD="vim --servername VIM_$USER --remote-silent"<br
/> export GREP_COLOR=31<br
/> export PAGER='less'<br
/> export LESS='-iMQRSw -PM[%i/%m\: ?f%f:STDIN.] [C\:%c] [L\:?l%l:*.-?lb%lb:*./?L%L:*.] [P\:?d%d:*./?D%D:*.] [O\:?b%b:*./?B%B:*.] [?pt%pt:*.-?Pb%Pb:*.\%]'<br
/> #eval `bin/lesspipe`<br
/> #export LESSOPEN="| ~/bin/lesspipe %s";<br
/> #export LESSCLOSE="~/bin/lesspipe %s %s";<br
/> [ -x /usr/bin/lesspipe ] &amp;&amp; eval "$(SHELL=/bin/sh lesspipe)"</p><p># Screen dir (in case compile-time opts set the tmp files somewhere else)<br
/> # export SCREENRC="$HOME/.screenrc</p><p># Fix perl 5.8.0 weird behaviour with cygwin (\r\n -&gt; \n)<br
/> #export PERLIO='raw'</p><p>######################################################################<br
/> # Load configurations file, possibly overriding previous definitions.<br
/> # ATTN: All previously defined aliases will be removed!</p><p>for file in ~/.bash/aliases_functions.sh ~/.bash/shell_options.sh ~/.bash/hosts/$HOSTNAME_*.sh; do<br
/> if [[ -f  $file &amp;&amp; -r $file ]]; then<br
/> . $file<br
/> else<br
/> echo bashrc: Not found: "$file".<br
/> fi<br
/> done<br
/> unset -v file</p><p>########<br
/> # Command line option/completion<br
/> #</p><p># Command line completion<br
/> export FIGNORE='.bck:bak:~'            # ignored ext for completion<br
/> export INPUTRC="$HOME/.inputrc"        # process my readline settings</p><p>complete -d cd                         # we only want to cd into directories<br
/> complete -G "/mnt/*" mount             # cant mount anything<br
/> complete -G "/mnt/*" umount</p><p># i never remember all those pid<br
/> complete -C "find_pid" kill</p><p># command completion<br
/> if [ -f /etc/bash_completion ]; then<br
/> . /etc/bash_completion<br
/> fi</p><p>##### Function keys<br
/> bind -x '"\C-b":cal -m3'</p><p>bind -x '"\M--": pushd ..'<br
/> bind -x '"\M-=": popd'</p><p># Clean<br
/> unset -v WARNINGS</p><p>----------------------------------------------------------------------------------------------<br
/> ---------------------------------------------------------------------------------------------- inputrc</p><p># Various Options<br
/> # man readline (comments are a pain here)<br
/> #</p><p>$if bash<br
/> set editing-mode emacs<br
/> set keymap emacs<br
/> set enable-keypad on</p><p># This one cause problems with correct display of $PS1<br
/> #set horizontal-scroll-mode on</p><p>#set convert-meta off<br
/> #set input-meta on<br
/> #set meta-flag on<br
/> #set output-meta on<br
/> #set bind-tty-special-chars on<br
/> #set byte-oriented off</p><p>set bell-style visible<br
/> set prefer-visible-bell on<br
/> set blink-matching-paren on</p><p>set completion-ignore-case on<br
/> set completion-query-items 256<br
/> set disable-completion off<br
/> #set page-completions off<br
/> set print-completions-horizontally on<br
/> set expand-tilde off<br
/> set mark-directories on<br
/> #set mark-symlinked-directories on<br
/> set visible-stats on<br
/> set match-hidden-files on<br
/> set show-all-if-ambiguous on<br
/> set show-all-if-unmodified off</p><p>set history-preserve-point off<br
/> set mark-modified-lines off</p><p>set comment-begin #</p><p># Completion<br
/> Tab: menu-complete</p><p># History (Up/Down arrowns)<br
/> #"\M-OA": history-search-backward<br
/> #"\M-OB": history-search-forward<br
/> #"\e[A": history-search-backward<br
/> #"\e[B": history-search-forward</p><p># Moving (Home/End)<br
/> #"\e[1~": beginning-of-line<br
/> #"\e[2~": quoted-insert<br
/> #"\e[3~": delete-char<br
/> #"\e[4~": end-of-line<br
/> #"\e[5~": beginning-of-history<br
/> #"\e[6~": end-of-history<br
/> #"\e[5C": forward-word<br
/> #"\e[5D": backward-word</p><p># Custom Shortcuts<br
/> Control-L: clear-screen</p><p># Magic space<br
/> Space: magic-space<br
/> $endif</p><p>----------------------------------------------------------------------------------------------<br
/> ----------------------------------------------------------------------------------------------  .bash/aliases_functions.sh</p><p>######################################################################<br
/> #       Title: ~/.bash/aliases_functions.sh configuration file<br
/> # ------------------------------------------------------------------<br
/> #     Created: 1994-07-23_10:31:17<br
/> #     Version: 2007-02-27_20:01:07<br
/> #      Author: unknown groumph.<br
/> #<br
/> # Description: This bash initialisation file is read and executed<br
/> #              when starting a non-login shell from ~/.bashrc.<br
/> ######################################################################<br
/> # Note that comments beginning with:<br
/> #  - #! Modify the original command (those might cause bugs, I try to avoid them)<br
/> #  - #= Leave the command working as usual<br
/> #  - #&gt; Create a new command (this might override something, but not to my knowledge)<br
/> ######################################################################</p><p>unalias -a                             # Delete all aliases<br
/> alias realias="$EDITOR ~/.bash/aliases_functions.sh; source ~/.bash/aliases_functions.sh" #&gt; Edit and reload aliases</p><p>#alias diff='diff -u'</p><p>######################################################################<br
/> # Navigate<br
/> alias cd..='cd ..'                     #&gt; yes, i was using dos first !#@?<br
/> alias ..='cd ..'                       #&gt; Norton Dos, in fact.... (which was better than 4Dos IMHO)<br
/> alias ...='cd ../..'                   #&gt;<br
/> alias ....='cd ../../..'               #&gt; and i like long directory trees ;-)<br
/> alias z='cd -'                         #&gt; go back to previous directory<br
/> alias tree='tree -df'                  #! not aviailable everywhere<br
/> alias mkdir='mkdir -p'                 #= create nested subdirs too</p><p>######################################################################<br
/> # List files<br
/> alias ls='ls --color=auto --quoting-style=shell-always' #! We want fancy colors, in a quoted string ALWAYS!<br
/> alias l='ls -F'                        #&gt; two chars is faaar too long to type<br
/> alias lU='ls -dFl [A-Z]*'              #&gt; list files/dirs begining with an uppercase letter<br
/> alias lu='ls -dFl [a-z]*'              #&gt; list files/dirs begining with an uppercase letter<br
/> alias l.='ls -adFx .*'                 #&gt; list dot files/dirs<br
/> alias ll='ls -lFh'                     #&gt; list (h)uman-readable<br
/> alias la='ls -lFha'                    #&gt; list (a)ll, (h)uman-readable<br
/> alias lt='ls -lFhart'                  #&gt; list (a)ll, (h(uman-readable, time (recent goes last)<br
/> alias ltc='ls -lFhatc'                 #&gt; list (a)ll, (h(uman-readable, creation time (recent goes last)<br
/> alias lz='ls -lFharS'                  #&gt; list (a)ll, (h(uman-readable, size (biggest goes last)<br
/> alias lx='ls -lFhaX'                   #&gt; list (a)ll, (h(uman-readable, extension<br
/> alias lsd='ls -lhd */'                 #&gt; directories<br
/> alias lad='ls -lhd */ .*/'             #&gt; directories</p><p>######################################################################<br
/> # sockets<br
/> alias showsocks='ss -apes | P'         #&gt; all types, processes infos, detailled infos<br
/> # xxx lsof</p><p>######################################################################<br
/> # Find files<br
/> alias ff='find . -iname'               #&gt; find files in the current subdirs, case (i)nsensitive<br
/> alias flist='find .'                   #&gt; list all files in subdirs (with ./ relative path)<br
/> alias flista='find `pwd` -print'       #&gt; list all files in subdirs (with absolute filename)<br
/> alias loc='locate -i'                  #&gt; find files from update db, case insensitive<br
/> alias locf='locate -bei'               #&gt; find files from update db, only the basename, case insensitive, and if file still exists</p><p>######################################################################<br
/> # Look at files<br
/> alias P='less'                         #&gt; Pager<br
/> alias S='sort -f'                      #&gt; Sort, case insensitive<br
/> alias SP='S|P'                         #&gt; Sort, case insensitive, results in pager<br
/> alias SU='sort -uf'                    #&gt; Sort, uniq, case insensitive<br
/> alias SD='sort -f | uniq -id'          #&gt; Sort, dups, case insensitive<br
/> alias SN='sort -nf'                    #&gt; Sort, insensitive, numerical<br
/> alias SUP='SU|P'                       #&gt; Sort, uniq, case insensitive, results in pager<br
/> alias SDP='SD|P'                       #&gt; Sort, dups, case insensitive, results in pager<br
/> alias SNP='SN|P'<br
/> alias H='head -32'                     #&gt; Show the first 32 lines of a file<br
/> alias T='tail -32'                     #&gt; Show the last 32 lines of a file<br
/> alias Tf='tail -32 -f'                 #&gt; Show the last 32 lines of a file and follow<br
/> alias filez='file -kLpsz'              #&gt; Keep, dereference links, preserve date, special files, uncompress<br
/> # xxx extract meta-data<br
/> alias g='egrep --color=auto -i -r'     #&gt; Quick search with colors, case insensitive and recurse dirs<br
/> #alias hex='hexdump -C'                #&gt; Canonical hexdump ofs hex ascii (you can use hd instead)<br
/> alias hex='xxd -a -c 32 -g 4'          #&gt; hex dump<br
/> alias hexpatch='xxd -r -a -c 32 -g 4'  #&gt; apply hexdump<br
/> # xxx hexpatch<br
/> alias stringz='strings -a'             #&gt; show all, print hex offset<br
/> alias stringx='strings -atx'           #&gt; + hex offsets<br
/> alias V='mcview'                       #&gt;<br
/> alias X='mcedit'                       #&gt; I use this for the binary editor</p><p>######################################################################<br
/> # Access rights<br
/> alias R='chmod -Rc'<br
/> alias O='chown -Rc'</p><p>######################################################################<br
/> # Free space<br
/> alias df='df -PTah --sync'             #! All FS, human read-able, print FS type, sync first<br
/> alias dfi='df -PTai --sync'            #&gt; All FS, list free inodes, FS type, sync first<br
/> alias uspc='du -h --max-depth=1'       #&gt; used space in current dir and subdirectorires</p><p>######################################################################<br
/> # Perl<br
/> alias p='perl -nle'                    #&gt; process file by line, chomp<br
/> alias pp='perl -ple'                   #&gt; process file by line, chomp and print<br
/> alias pdbg='perl -de 1'                #&gt; perl debugger<br
/> alias dpl='perl -MO=Deparse'           #&gt; show how perl see this code<br
/> alias dpl2='perl -MO=Deparse,-p,-q,-sCT' #&gt; show how perl see this code, with parens and more<br
/> alias cpan='perl -MCPAN -e shell'      #&gt; Start CPAN</p><p>######################################################################<br
/> # Processes and jobs<br
/> alias psaux='ps ax --cols 1024 --format pid,euser,egroup,pri,nice,start,etime,%cpu,vsize,tty,args | less' #&gt; i like this format...<br
/> alias pstree='pstree -Aplnu | P'    #&gt; Process tree<br
/> #alias psg='ps aux | egrep -i'          # using pgrep instead<br
/> #alias myps='ps -Af | egrep -i $USER'<br
/> alias psg='pgrep'<br
/> alias top10="uname -a; uptime; echo; ps -eo pcpu,rss,stime,user,pid,cmd --sort -pcpu | head -11 | cut -c -80; echo; ps -eo vsize,rss,size,stime,user,pid,cmd --sort -rss | head -11 | cut -c -80; echo; free -mt" # top 10 cpu/memory processes</p><p>alias j='jobs -l'                      #&gt; list process id too<br
/> alias 1='fg 1'<br
/> alias 2='fg 2'<br
/> alias 3='fg 3'<br
/> alias 4='fg 4'<br
/> alias 5='fg 5'<br
/> alias 6='fg 6'<br
/> alias 7='fg 7'<br
/> alias 8='fg 8'<br
/> alias 9='fg 9'<br
/> alias 0='fg 10'</p><p>######################################################################<br
/> # Various useful shortcuts</p><p># Calculations, units convertions<br
/> alias ?="qalc"                         #&gt; quick calculations/units &amp; money conversion (qalculate.sf.net)<br
/> alias bc='bc -ql'                      #= bc should be quiet, and with mathlib<br
/> alias units='units -qv'                #! should be quiet AND verbose (guess that one)</p><p>alias cls='echo -e \33c; clear'      #&gt; Reset terminal, clear screen</p><p># Various<br
/> alias dmsg='dmesg | less'              #&gt; List kernel boot messages<br
/> alias h='pman'                         #&gt; manual page browser<br
/> alias mrproper='find . \( -type f -and -iname \*.bak -or -iname \*.bck -or -iname \*~ \) -exec rm -f "{}" \;' #&gt; Delete backups and other temp files<br
/> alias notes='vim /data/dox/notes.txt'  #&gt; quickie<br
/> alias tar='tar -b 32768 --atime-preserve' #! here block size ~16M are ok (faster/smaller), no access time modifications<br
/> alias www='elinks'<br
/> alias Z='sudo'                         #&gt; Changing ug is shorter this way</p><p># Use the same editor<br
/> #alias gvim="gvim --servername VIM_$USER --remote-silent" #! use the same gvim for every edit<br
/> #alias vim="vim --servername VIM_$USER --remote-silent" #! use the same vim for every edit<br
/> #alias vi="vim --servername VIM_$USER --remote-silent" #! no vi</p><p># Stupid aliases<br
/> alias fortune='fortune -a'             # Take all<br
/> alias snes='snes9x -y3 -dfr'           #&gt; 2xSaI mode, show framerate</p><p># Date/Time Stamps<br
/> alias ts="date -u +%Y%m%d_%H%M%S"      #&gt; Output a timestamp (UTC). Touch `ts`-newfile.<br
/> alias tsd="date -u +%Y%m%d"            #&gt; Output a date timestamp (UTC).<br
/> alias tsh="date -u +%H%M%S"            #&gt; Output an hour timestamp (UTC).</p><p># X aliases<br
/> alias G="gqview"<br
/> alias D0='export DISPLAY=:0'<br
/> alias DS='echo DISPLAY=$DISPLAY TERM=$TERM $COLUMNS x $LINES'</p><p># Uncomment on mondays mornings...<br
/> #alias rm='rm -i'<br
/> #alias cp='cp -i'<br
/> #alias mv='mv -i'</p><p>#### Services<br
/> #for service in `/etc/init.d/*`<br
/> #do<br
/> #    alias "rc${service}"="/etc/init.d/${service}"<br
/> #done</p><p>alias t='todo'</p><p>########<br
/> # Function<br
/> #</p><p># MC<br
/> # cd to last selected directory (from Torben Fjerdingstad)<br
/> unset -f mc<br
/> function mc () {<br
/> mkdir -pm 0700 $HOME/.mc/tmp 2&gt;/dev/null;<br
/> OLD_TERM=$TERM<br
/> TERM='xterm'<br
/> MC=$HOME/.mc/tmp/mc-$$;<br
/> TERM=$OLD_TERM<br
/> /usr/bin/mc -a -P $MC "$@";<br
/> cd "`cat $MC`";<br
/> rm -f "$MC";<br
/> unset -v OLD_TERM MC;<br
/> }</p><p># Directory creations<br
/> # mkdir and cd<br
/> unset -f md<br
/> function md () {<br
/> mkdir -p "$*" &amp;&amp; cd "$*"<br
/> }</p><p>alias rd="rm -Rf" # Remove non-empty directories</p><p># create a parent directory<br
/> unset -f mpd<br
/> function mpd () {<br
/> mkdir -p ../$1;<br
/> }</p><p>----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/aliases_functions.sh</p><p># create a temporary dir and set $TSTMP<br
/> unset -f mdtmp<br
/> function mdtmp () {<br
/> export TSTMP="~/tmp/`date -u +%Y%m%d_%H%M%S`-$1";<br
/> mkdir -p "$TSTMP";<br
/> }<br
/> # xxx delete TSTMP</p><p># Safe Edit<br
/> # copy and edit<br
/> # xxx $1 -&gt; command $rest files<br
/> unset -f edt<br
/> function edt () {<br
/> local $old="$1.`date -u +%Y%m%d_%H%M%S`.$USER.edt"<br
/> ### find old version of file<br
/> cp "$1{,.$old}"</p><p> cp "$1{,.$USER.`date -u +%Y%m%d_%H%M%S`.edt}"<br
/> vim "$1"<br
/> }</p><p># Save a copy of the file<br
/> # xxx add support for: comment + filenames<br
/> unset -f save<br
/> function save() {<br
/> cp "$1" "$1.`date -u +%Y%m%d_%H%M%S`.$USER.edt"<br
/> }</p><p># Scripts Show<br
/> # Save scripts for replay<br
/> unset -f scriptrec<br
/> function scriptrec () {<br
/> local SCRIPT="$1.script"<br
/> local TMPDIR="$TMP/`date -u +%Y%m%d_%H%M%S`-$SCRIPT"<br
/> local TIMINGS="$SCRIPT.timings"<br
/> local OUTFILE="$SCRIPT.tar.bz2"</p><p> mkdir -pm 0700 "$TMPDIR"<br
/> script -t "$TMPDIR/$SCRIPT" 2&gt; "$TMPDIR/$TIMINGS"<br
/> echo Usage: scriptreplay "$SCRIPT" "$TIMINGS" 3.5 &gt; $TMPDIR/README<br
/> tar -cj -C "$TMPDIR" -f "$OUTFILE" "$SCRIPT" "$TIMINGS" README<br
/> rm -Rf $TMPDIR<br
/> }</p><p># Replay a saved script with turbo 3.5x (looks good here)<br
/> unset -f scriptplay<br
/> function scriptplay () {<br
/> local SCRIPT=${1%.tar.bz2}<br
/> local TMPDIR="$TMP/`date -u +%Y%m%d_%H%M%S`-$SCRIPT"<br
/> local TIMINGS="$SCRIPT.timings"</p><p> mkdir -pm 0700 "$TMPDIR"<br
/> tar -xj -C "$TMPDIR" -f "$1"<br
/> scriptreplay "$TMPDIR/$SCRIPT.timings" "$TMPDIR/$SCRIPT" 3.5<br
/> rm -Rf $TMPDIR<br
/> }</p><p># From bash_aliases docs<br
/> # csh compat</p><p>alias unsetenv=unset<br
/> unset -f setenv<br
/> function setenv () {<br
/> export $1="$2"<br
/> }</p><p>######################################################################</p><p>alias showpath='echo -e ${PATH//:/\\n}'</p><p>unset -f loadpath<br
/> function loadpath () {<br
/> local LINE=1<br
/> local DIR<br
/> local NEWPATH</p><p> while read -r DIR; do<br
/> DIR=${DIR%#*}                # remove comments<br
/> DIR=${DIR##*([$' \t\n'])}    # trim trailling spaces<br
/> DIR=${DIR%%*([$' \t\n'])}<br
/> eval "DIR=\"$DIR\""          # evaluate vars</p><p> if [[ $DIR ]]; then<br
/> if [[ -d "$DIR" &amp;&amp; -r "$DIR" ]]; then<br
/> NEWPATH="$NEWPATH:$DIR"<br
/> else<br
/> echo loadpath: Discarded "$DIR" at line $LINE from your PATH.<br
/> fi<br
/> fi</p><p> let LINE=LINE+1<br
/> done ~/.xpdf-err-log&amp;  return; fi<br
/> #     if test -z "${S:#*PDF}" ; then xpdf $1 2&gt;~/.xpdf-err-log&amp;  return; fi<br
/> #     if test -z "${S:#*dvi}" ; then  xdvi $1 &amp;  return;  fi<br
/> #     if test  "${S/[0-9]//}" ; then  gv $1 &amp;  return;  fi<br
/> #     less $1;<br
/> # #echo "vv(): file $1 is of unknown type." 1&gt;&amp;2;<br
/> # }</p><p>bind '"\C-t": possible-completions' # replaces 'transpose-chars'<br
/> M-t": menu-complete'        # replaces 'transpose-words'</p><p># alias newpw="pwgen --no-capitalize"</p><p>## changing terminal type<br
/> # alias v1='export TERM=vt100'<br
/> # alias v2='export TERM=vt220'<br
/> # alias vl='export TERM=linux'<br
/> # alias vx='export TERM=xterm-color'</p><p># sshot ()<br
/> # { sleep 5; import -window root desktop.jpg }</p><p># ## find all suid files<br
/> # suidfind ()<br
/> # { ls -l /**/*(su0x) }</p><p># ispell -a -m -B |grep -v "@"</p><p># xset fp+ /font/path/</p><p># repeat n times command<br
/> function repeat() {<br
/> local i max<br
/> max=$1; shift;<br
/> for ((i=1; i  C-like syntax<br
/> eval "$@";<br
/> done<br
/> }</p><p>----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/path.txt                                                                 100%<br
/> /bin<br
/> /sbin<br
/> /usr/bin<br
/> /usr/sbin<br
/> /usr/bin/X11<br
/> /usr/local/bin<br
/> /usr/local/sbin<br
/> /usr/share/bin<br
/> /usr/share/sbin<br
/> /opt/gnome/bin<br
/> /opt/kde3/bin<br
/> /usr/lib/hxtools/bin<br
/> /usr/X11R6/bin<br
/> /usr/games/<br
/> $HOME/bin<br
/> /c/windows<br
/> /c/windows/system<br
/> /c/windows/system32<br
/> /c/windows/system32/wbem<br
/> /c/prg/tools<br
/> /c/prg/winrk<br
/> /c/prg/lnk<br
/> /c/prg/ultraedit<br
/> /c/prg/mysql/bin<br
/> /c/prg/perl/bin<br
/> /c/prg/php<br
/> /c/prg/python<br
/> /c/prg/java/bin<br
/> /c/prg/tcl/bin<br
/> /c/prg/bordel<br
/> /c/program files/microsoft sdks/windows/v6.0/bin<br
/> /c/program files/microsoft sdks/windows/v6.0/vc/bin<br
/> /c/program files/microsoft sql server/90/tools/binn<br
/> /c/program files/quicktime/qtsystem<br
/> /c/vstudio/common7/ide<br
/> /c/vstudio/common7/tools<br
/> /c/vstudio/sdk/v2.0/bin<br
/> /c/vstudio/vc/bin<br
/> /c/vstudio/vc/vcpackages<br
/> /c/windows/microsoft.net/framework/v2.0.50727<br
/> /c/windows/system32/windowspowershell/v1.0</p><p>----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/shell_options.sh</p><p>#!/bin/bash<br
/> ######################################################################<br
/> #       Title: ~/.bash/shell_options.sh configuration file<br
/> # ------------------------------------------------------------------<br
/> #     Created: 1994-07-23_10:31:17<br
/> #     Version: 2007-02-27_20:01:07<br
/> #      Author: groiumph<br
/> #<br
/> # Description: This bash initialisation file is read and executed<br
/> #              when starting a non-login shell from ~/.bashrc.<br
/> #              It comes from the output of `shopt -p`. I made it a<br
/> #              separate file due to the fact that different versions<br
/> #              of bash are probably installed on different hosts.<br
/> ######################################################################</p><p># Option without comments means I've not investigated really far into the man page.</p><p>shopt -u cdable_vars                   # you do not want 'cd here' to be the same as 'cd $here'<br
/> shopt -s cdspell                       # correct minor typing errors in cd commands<br
/> shopt -s checkhash                     # faster command completion<br
/> shopt -s checkwinsize                  # check if the terminal changed size !after! each command<br
/> shopt -s cmdhist                       # save multi-line commands into onliners<br
/> shopt -u dotglob                       # find .bashrc with ls *bash*, but NOT with ls *<br
/> shopt -u execfail<br
/> shopt -s expand_aliases                # Expand aliases before<br
/> shopt -u extdebug<br
/> shopt -s extglob                       # Enable extended pattern matching (!, *, ?, @,  etc)<br
/> shopt -s extquote<br
/> shopt -u failglob<br
/> shopt -s force_fignore<br
/> shopt -u gnu_errfmt<br
/> shopt -s histappend                    # do not overwrite history (i dig it!)<br
/> shopt -u histreedit<br
/> shopt -u histverify<br
/> shopt -s hostcomplete                  # hostnames completion<br
/> shopt -u huponexit<br
/> #shopt -u igncr<br
/> shopt -s interactive_comments          # allow comments at the shell<br
/> shopt -u lithist<br
/> #shopt -s login_shell                   # !!!: read-only<br
/> shopt -u mailwarn                      # bash do not even look at my mails<br
/> shopt -s no_empty_cmd_completion       # do not try to complete empty lines<br
/> shopt -s nocaseglob                    # globs are case insensitive for me<br
/> shopt -s nocasematch                   # case match are insentive too [[glob]]<br
/> shopt -u nullglob<br
/> shopt -s progcomp                      # enable programmable completion<br
/> shopt -s promptvars                    # prompt is expanded<br
/> shopt -u restricted_shell<br
/> shopt -u shift_verbose                 # Allow variable paramters to functions<br
/> shopt -s sourcepath                    # Allow "source xxx" if xxx is matched in $PATH<br
/> shopt -u xpg_echo</p><p>----------------------------------------------------------------------------------------------  ----------------------------------------------------------------------------------------------  .bash/hosts/endymion_shell_options.sh</p><p>#!/bin/bash<br
/> ######################################################################<br
/> #       Title: ~/.bash/shell_options.sh configuration file<br
/> # ------------------------------------------------------------------<br
/> #     Created: 1994-07-23_10:31:17<br
/> #     Version: 2007-02-27_20:01:07<br
/> #      Author: groumph<br
/> #<br
/> # Description: This bash initialisation file is read and executed<br
/> #              when starting a non-login shell from ~/.bashrc.<br
/> #              It comes from the output of `shopt -p`. I made it a<br
/> #              separate file due to the fact that different versions<br
/> #              of bash are probably installed on different hosts.<br
/> ######################################################################</p><p># Option without comments means I've not investigated really far into the man page.</p><p>shopt -u cdable_vars                   # you do not want 'cd here' to be the same as 'cd $here'<br
/> shopt -s cdspell                       # correct minor typing errors in cd commands<br
/> shopt -s checkhash                     # faster command completion<br
/> shopt -s checkwinsize                  # check if the terminal changed size !after! each command<br
/> shopt -s cmdhist                       # save multi-line commands into onliners<br
/> shopt -u dotglob                       # find .bashrc with ls *bash*, but NOT with ls *<br
/> shopt -u execfail<br
/> shopt -s expand_aliases                # Expand aliases before<br
/> shopt -u extdebug<br
/> shopt -s extglob                       # Enable extended pattern matching (!, *, ?, @,  etc)<br
/> shopt -s extquote<br
/> shopt -u failglob<br
/> shopt -s force_fignore<br
/> shopt -u gnu_errfmt<br
/> shopt -s histappend                    # do not overwrite history (i dig it!)<br
/> shopt -u histreedit<br
/> shopt -u histverify<br
/> shopt -s hostcomplete                  # hostnames completion<br
/> shopt -u huponexit<br
/> #shopt -u igncr<br
/> shopt -s interactive_comments          # allow comments at the shell<br
/> shopt -u lithist<br
/> #shopt -s login_shell                   # !!!: read-only<br
/> shopt -u mailwarn                      # bash do not even look at my mails<br
/> shopt -s no_empty_cmd_completion       # do not try to complete empty lines<br
/> shopt -s nocaseglob                    # globs are case insensitive for me<br
/> shopt -s nocasematch                   # case match are insentive too [[glob]]<br
/> shopt -u nullglob<br
/> shopt -s progcomp                      # enable programmable completion<br
/> shopt -s promptvars                    # prompt is expanded<br
/> shopt -u restricted_shell<br
/> shopt -u shift_verbose                 # Allow variable paramters to functions<br
/> shopt -s sourcepath                    # Allow "source xxx" if xxx is matched in $PATH<br
/> shopt -u xpg_echo</p> ]]></content:encoded> </item> <item><title>By: chenoel</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17671</link> <dc:creator>chenoel</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17671</guid> <description>oh my... i cant liv on my linux-box without &quot;midnight commander&quot;
*i luv blue screen*</description> <content:encoded><![CDATA[<p>oh my... i cant liv on my linux-box without "midnight commander"<br
/> *i luv blue screen*</p> ]]></content:encoded> </item> <item><title>By: Michael</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17667</link> <dc:creator>Michael</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17667</guid> <description>Hey,generally, knowing about lilo is a good idea but ubuntu uses grub, so s/lilo/grub/
pwconv and *quota might be out of scope if you just switched from win and learning vi/vim is generally a good idea. all other commands: good list, thumbs up!Michael</description> <content:encoded><![CDATA[<p>Hey,</p><p>generally, knowing about lilo is a good idea but ubuntu uses grub, so s/lilo/grub/<br
/> pwconv and *quota might be out of scope if you just switched from win and learning vi/vim is generally a good idea. all other commands: good list, thumbs up!</p><p>Michael</p> ]]></content:encoded> </item> <item><title>By: Vladimir</title><link>http://www.prelovac.com/vladimir/from-windows-to-linux-total-commander-replacement/comment-page-1#comment-17666</link> <dc:creator>Vladimir</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1263#comment-17666</guid> <description>Did you just type all of those tools from your head?</description> <content:encoded><![CDATA[<p>Did you just type all of those tools from your head?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.prelovac.com @ 2012-02-14 13:05:44 by W3 Total Cache -->
