Skip to content

Instantly share code, notes, and snippets.

@mariocesar
Last active May 6, 2019 13:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariocesar/8ea61fc5e67705ae99311fb9922c813b to your computer and use it in GitHub Desktop.
Save mariocesar/8ea61fc5e67705ae99311fb9922c813b to your computer and use it in GitHub Desktop.
Annoying a sysadmin

Petty things that annoy a Sysadmin, also a How-To avoid madding yourself by remembering Petty things that will annoy you.

Subtle disabling of loading a .bashrc when connecting with ssh.

sysadmin says: My .bashrc file is not loading!

You could make a sysadmin expend hours trying to debug a .bashrc just by creating and empty .bash_profile in the home directory, this will override the loading of .bashrc and load the instructions in the .bash_profile instead.

ssh server
touch ~/.bash_profile 

Hide your commands from the bash history

sysadmin says: What was doing in the server?

Add an space before your command, that will make ignoring capturing the line to the bash history file.

$ echo "hello"
$ history
echo "hello"
history
$   echo "Secret"
$ history
echo "hello"
history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment