history

Published by onesixx on

날짜와 함께 보이도록 세팅

$ history

 1376  ls -al
 1377  pwd
 1378  cd ..
 1379  ls -al


$ export HISTTIMEFORMAT="%d/%m/%y %T "

$ history

 1376  09/02/23 10:25:32 ls -al
 1377  09/02/23 10:25:32 pwd
 1378  09/02/23 10:25:32 cd ..
 1379  09/02/23 10:25:32 ls -al

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

최근 10개만 보이기

$ history 10 
Categories: Ubuntu

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x