[ILUGC] GNU/Linux commands - history

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 8 Sep 2016 20:25:41 +0530

Hi
# history - GNU commands History  we executed in a shell

# history

list all GNU/Linux commands we executed before

# history -c

clear history history of commands

# history | grep ping
# history | grep ls

Search Commands in History Using Grep Command

# vi ~/.bashrc

HISTSIZE=0

it will disable Storing History of Commands

# vim ~/.bash_history

list Specific User’s Executed Commands


regards,

T.Dhanasekar

_____________________________________
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts: