Re: /usr broken, will the machine reboot ?



Le 10/09/2011 14:25, Mark Neidorff a écrit :
On Wednesday 07 September 2011 3:33:10 pm jacques wrote:
Hi,

Hi Mark,

1. alias "rm" to "rm -i" to add a
rm: remove regular file `filename' ?
to give the user a moment to think for each file.

Done :) (1)



2. mount /usr as read only

What about updating software

3. Disconnect the keyboard

alternatively : Cut admin's both hands ;)

Mark
Jacques



(1) In .bash_profile uncomment the if/fi statement

# include .bashrc if it exists

if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi


in .bashrc add a line :

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
alias rm='rm -i'





--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4E6B5925.7050600@xxxxxxxxxxxxxx



Relevant Pages

  • Re: audacity export wma format[1 more question]
    ... (I was too lazy to process $1, alias won't. ... Yes, add it to .bashrc. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Handy Bash alias script
    ... The idea is to have an alias that makes new aliases. ... had this in your .bashrc: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: bash alias ineffective?
    ... alias rm='rm -i' ... but rm still removes without asking for confirmation. ... source .bashrc ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: no blueman interface at all!
    ... whats this sorcery... ... in .bashrc ... alias bugs='apt-listbugs list $1 $2 $3' ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: [OT] Using aliases or functions in bash script
    ... replies that I get... ... to source .bashrc. ... That will execute function dt with the current ... for the alias you could define a function that does whatever it is ...
    (Debian-User)