User Tools

Site Tools


History command

by default returns an history of latest command ran on this login
it is ~the latest “HISTSIZE” commands. it can differ with the options of HISTCONTROL (for example ignoredups which ignore duplicates)

remove the number

history | cut -d ' ' -f 4-

depending on the setup you might change 4 by 5/6 … Reference:

Avoid registering a command

When you pass some arguments like passwords, you can skip the registration of the command by adding a space before the command

scripting/bash/history.txt · Last modified: 2023/05/12 10:57 by warnaud