Sunday, April 14, 2013

Linux Basics - Commands

Finding Linux Distribution Name

cat /etc/*{release,version}

Finding Kernel Version

uname -a OR uname -mrs

Clearing History

history -c

Adding Timestamp to be displayed on History Command

echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
source ~/.bash_profile

No comments:

Post a Comment


The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.