{"id":652,"date":"2012-06-29T12:14:30","date_gmt":"2012-06-29T11:14:30","guid":{"rendered":"http:\/\/www.xenonique.co.uk\/blog\/?p=652"},"modified":"2012-06-29T12:14:30","modified_gmt":"2012-06-29T11:14:30","slug":"favourite-linux-and-unix-bash-aliases","status":"publish","type":"post","link":"https:\/\/www.xenonique.co.uk\/blog\/2012\/06\/29\/favourite-linux-and-unix-bash-aliases\/","title":{"rendered":"Favourite Linux and Unix Bash Aliases"},"content":{"rendered":"<p>I first got involved with commercial UNIX in the early 1990s. It was fascinating experience on <strong>Sun Microsystems <\/strong> <strong>SunOS 4.1.3<\/strong>, if memory serves. Even before that professional development, I learnt a lot about UNIX and C at university in my fourth year of the degree course. Yet it was my first work experience at a small start up in joint-venture start-up in Southern Germany that got me hooked into UNIX and its open philosophy. It was there at the JV, I learnt about GNU Emacs, the Free Software Foundation, and spent endless hours programming in C, and building, compiling and installing the GNU Compiler myself, GCC and G++. Fun times were had with <strong>OSF Motif<\/strong> and <strong>X Windows Toolkit<\/strong> development, which I suppose were one of the long ancestors of modern JavaFX graphical user interface engineering. In those heady days of native C programming, little did I know at the time that somebody was writing a byte-code virtual machine with a garbage collector, and another group of clever people were developing a portable, network-enabled, multiple thread enabled, and security conscience programming language close to the C language. I do so ever digress. <\/p>\n<p>I developed the following bundle of Bash Aliases over a couple of decades now. They came from other developers, administrators and tips from popular UNIX \/ C books and the Internet. Some of these were inspired by situations that I faced on various systems.<\/p>\n<p>Here is a smaller subsection of bash login script:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nset -o emacs\r\n# Do not exit on EOF. To exit the shell type `exit'\r\nset -o ignoreeof\r\n# Do not allow output redirection (&gt;) to overwrite an existing file\r\nset -o noclobber\r\n# set the core limit\r\nulimit -c 10240\r\n\r\nset history=100\r\nset savehist=50\r\n\r\n## export LDFLAGS='-lpthread'\r\n## Slackware: export LS_OPTIONS='--8bit --color=tty -F -b -T 0'\r\n## export LS_OPTIONS='--color=tty -F -b --author'\r\nexport LS_OPTIONS='--color=tty -F'\r\n\r\n\r\n# Aliases\r\nalias ls=&quot;\/bin\/ls $LS_OPTIONS&quot;\r\nalias ll='ls -l'\r\nalias lsd='ls -ld'\r\nalias la='ls -a'\r\nalias lf='ls -F'\r\nalias lr='ls -alFRt'\r\nalias lx='ls -xF'\r\nalias llar='ls -laFR'\r\nalias lt='ls -lartF'\r\nalias lrt='ls -lrt'\r\n\r\nalias home='cd ${HOME}'\r\nalias up='cd ..'\r\nalias pe='printenv'\r\nalias senv='env | sort'\r\nalias pu='pushd'\r\nalias po='popd'\r\nalias pud='pushd .'\r\nalias rot='pushd +1'\r\nalias jobs='jobs -l'\r\nalias mroe=more\r\nalias lses=less\r\nalias lsse=less\r\nalias l=ls\r\nalias f=file\r\nalias c=cat\r\nalias m=more\r\nalias j=jobs\r\nalias k=kill\r\nalias d=dirs\r\nalias h=history\r\nalias his=history\r\nalias hm='history | less'\r\nalias sy3='sync; sync; sync; echo &quot;sync 3 times ...&quot;'\r\nalias del='rm -i'\r\nalias bye=exit\r\nalias ciao=exit\r\n\r\nalias vibashpro='vi ~\/.bash_profile'\r\nalias rebashpro='. ~\/.bash_profile'\r\n\r\nPS1=&quot;`whoami`@`hostname` [\\$HISTCMD] &gt; &quot;\r\nexport PS1\r\n\r\n<\/pre>\n<p>These are part of my developer toolbox.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I first got involved with commercial UNIX in the early 1990s. It was fascinating experience on Sun Microsystems SunOS 4.1.3, if memory serves. Even before that professional development, I learnt a lot about UNIX and C at university in my fourth year of the degree course. Yet it was my first work experience at a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80,81,138,82,139],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/652"}],"collection":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":6,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":658,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/652\/revisions\/658"}],"wp:attachment":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}