Command History

[Không rõ 2010/11/27 09:50 | by Admin ]

01. Last thousand command display
[root@server ~]# history |more

02. Last ten command display
[root@server ~]# history 10

Once you logout or shutdown your pc your current command history will be saved in to a hidden file in your home folder.

03. See a hidden file
[root@server ~]# cd
[root@server ~]# cat .bash_history


4. To clear History
[root@server ~]# ln -sf /dev/null ~/.bash_history
[root@server ~]# >~/.bash_history


5. Another
1) Another option is link ~/.bash_history to /dev/null:
ln -sf /dev/null ~/.bash_history

2) The sintax is wrong, it shoud say:
ln -sf /dev/null ~/.bash_history

Bài viết số 367 đã được: 0.0/10 (0 Đánh giá)

Chia Sẻ
Linux | Nhận xét(2) | Trích dẫn(0) | Đọc(321)
LadonnaLester Email Homepage
2010/12/15 23:26
Very sensational story. With significance being so necessary online, this is a adroit outline for begin new on that people will use for <a href="http://www.thesisleader.com">buy dissertation</a>.
ConradLatonya22 Email Homepage
2010/12/09 14:02
According to my own analysis, millions of people in the world get the <a href="http://bestfinance-blog.com/topics/personal-loans">personal loans</a> at good banks. Thence, there's good chances to receive a commercial loan in all countries.
Phân trang 1/1 Trang đầu 1 Trang cuối
Viết nhận xét
Hình vui
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
Mở HTML
Mở UBB
Mở hình vui
Ẩn giấu
Tên gọi   Mật khẩu   Khách không cần mật khẩu
Địa chỉ web   Email   [Đăng ký]