$ >filename
Home »
Linux Useful Commands
» Clearing a log/text file #file
Clearing a log/text file #file
Related Posts:
Securing files #terminal #security #file Here is a simple tip to password protect your files: vi -x test This command will ask for an encryption key. You have to type the key twice. Then save and quit the opened file. Now, whenever you open this file, it will a… Read More
Clearing a log/text file #file $ >filename … Read More
To display all open network sockets #netstat netstat -uta … Read More
To display network statistics #netstat netstat -s … Read More
How to check the date and time the system was rebooted #terminal #reboot #security Here is a simple command to check the system's reboot date and time: #last reboot reboot system boot 2.6.18-53.el5 Sat Aug 6 18:02 (8+04:45) wtmp begins Sat Aug 6 18:02:07 2011 The command below will give you the date a… Read More
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.