Tuesday, October 21, 2014

How to view Bash history without line numbers?

Read full details here: How to view Bash history without line numbers?





bash history command is very useful. It gives you an complete view of what commands you ran. By default bash  historycommand will give you all your previous commands with Line numbers. It’s the default behavior. However when you’re trying to copy-paste those commands again, you have to manually remove those Line numbers. This becomes rather annoying when you are trying to copy paste a lot of commands at the same time. This is very simple guide on how to view bash history without line numbers.

bash history with line numbers

When you type in history in your bash terminal, following what you see.
root@kali:~# history 
-------snip------------
 2002  clear
 2003  ls
 2004  cd
 2005  top
 2006  nethogs wlan0
 2007  htop
 2008  sar -r
 2009  free -m
 2010  pstree
 2011  pgrep gdm3
 2012  w
 2013  who
 2014  last | head
-------snip------------
This is very normal behavior.



Read the rest of it here: How to view Bash history without line numbers?

No comments:

Post a Comment