Last active
May 6, 2019 13:16
Revisions
-
mariocesar revised this gist
May 6, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,8 @@ 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. ```shell -
mariocesar revised this gist
May 6, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ 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! -
mariocesar revised this gist
May 6, 2019 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ > 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. ```shell ssh server -
mariocesar revised this gist
May 6, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,8 @@ You could make a sysadmin expend hours trying to debug a .bashrc just by creatin in the .bash_profile instead. ```shell ssh server touch ~/.bash_profile ``` ## Hide your commands from the bash history -
mariocesar revised this gist
May 6, 2019 . 1 changed file with 17 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,22 @@ You could make a sysadmin expend hours trying to debug a .bashrc just by creatin .bash_profile in the home directory, this will override the loading of .bashrc and load the instructions in the .bash_profile instead. ```shell $ ssh server $ touch ~/.bash_profile ``` ## Hide your commands from the bash history Add an space before your command, that will make ignoring capturing the line to the bash history file. ```shell $ echo "hello" $ history echo "hello" history $ echo "Secret" $ history echo "hello" history ``` -
mariocesar created this gist
May 6, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ## 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 ```