HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

Tips for bash / shell / HOME

#############################

Description

Some tips for preparing the HOME environment.

Tips

(*) Hiding

Put in your .bashrc the following line:
umask 077

Meaning:
When you create a file / dir, it'll be hidden from everybody else.

(*) Forwarding bash history to trash

rm .bash_history
ln -s /dev/null .bash_history

Why?
If you do some nasty things and you forget to purge the history, the administrators can trace back what you did. Not a good thing.

(*) Don't add the current directory (".") to your PATH.

Why?
Imagine that someone puts the following script called ls in your HOME:

#!/bin/bash
<some nasty things>
/bin/ls "$@"

When you execute ls, this installed script will be executed if "." is at the beginning of your PATH. Since it calls the real /bin/ls, you don't even notice that something nasty happens too in the background.

(*) Using your favorite text editor

In your .bashrc:

EDITOR=/usr/bin/vim
export EDITOR
If you want to use this editor in Midnight Commander too, then edit ~/mc/ini :

use_internal_view=0
use_internal_edit=0
Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2007 November 23, 14:30