Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to make a log of my ternminal history

export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu mate 20.04 videodev module not working 
Shell :: azure devops trigger exclude file 
Shell :: set music cover image linux 
Shell :: how to close terminal tab 
Shell :: restart mikrotik router command 
Shell :: git still traching .gradle files although adding it at .gitignore 
Shell :: drupal 9 dump database 
Shell :: bash awk remove one specific column 
Shell :: uninstall laptop mode tools elementary os 
Shell :: extending ubuntu screen to android 
Shell :: create a file a1.txt tyep some content of it in linux 
Shell :: You are not inside a Hardhat project. 
Shell :: zip older linux 
Shell :: modify JSON values in place with jq 
Shell :: how to get a zombie villager in minecraft 
Shell :: AppRegistryNotReady notebook django shell 
Shell :: Online Git repository commands 
Shell :: imagem para pdf linux 
Shell :: sed replace single line with multi line 
Shell :: how do you run a lisp file with sbcl 
Shell :: delete all lock files 
Shell :: solr cloud cluster setup for windows 
Shell :: how to add file to application linux 
Shell :: preserve bash history 
Shell :: how to kali pentest guide line command how to hack with kali humm my friendsss is all back in google make a signe 
Shell :: running shell script 
Shell :: curl copy from sftp 
Shell :: Instala o Prettier no desenvolvimento 
Shell :: bash temporary files 
Shell :: install ambrella uml ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =