Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

show bash history

history # show all
history | tail -5 # show last 5
history | grep text # search for text
Comment

bash history

# Set time format of bash history (current session)
HISTTIMEFORMAT="[%D_%T] "
# Do not add item to bash history (current session)
HISTCONTROL=ignoredups    # ignore adding duplicate lines to history
HISTCONTROL=ignorespace   # ignore adding lines start with space to history
HISTCONTROL=ignoreboth    # ignore both dupes and lines started with a space
# Set number of history elements (current session, default 500)
HISTFILESIZE=2500
Comment

bash search history hstr

sudo add-apt-repository ppa:ultradvorka/ppa && sudo apt-get update && sudo apt-get install hstr && hstr --show-configuration >> ~/.bashrc && . ~/.bashrc
Comment

linux bash search history

Type Ctrl R at the command line and start typing the previous command.
Comment

PREVIOUS NEXT
Code Example
Shell :: add a file to repository git 
Shell :: steps to assign mfa using aws cli 
Shell :: scp command from local to remote 
Shell :: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections 
Shell :: shell cd 
Shell :: get program path powershell 
Shell :: how to install macos from usb 
Shell :: install babel language 
Shell :: find in terminal 
Shell :: how to change git commit date 
Shell :: linux run multipel comands in one line 
Shell :: public access denied assmebla 
Shell :: Create Remote for Contributing to a GitHub project 
Shell :: dev/ktm not found 
Shell :: Overwrite Line Batch 
Shell :: terminal make directory and enter in the same time 
Shell :: run specific logrotate 
Shell :: Pipe script to a remote server 
Shell :: linux shell filter binary files 
Shell :: linux convert to sha512 
Shell :: how to git stash with spesific file 
Shell :: disban camera ubuntu 
Shell :: cara melihat git sudah terinstal atau belum di linux terminal 
Shell :: powershell invoke 
Shell :: coc.nvim not working after update 
Shell :: install zeo 
Shell :: sc windows 
Shell :: ipython config location 
Shell :: cmdlet Invoke-Expression na posição de comando 1 do pipeline Forneça valores para os seguintes parâmetros: Command: 
Shell :: powershell function with "invoke-sqlcmd" return resultset 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =