Linux uses >> operator to write to a file.
For instance:
If you want to calculate the size of your log directory and want to write it somewhere, then
du -s /var/log>> filename
Isn't this simply awesome,
Multiple commands
( date +'%Y %m %d %H : %M'; du -s /var/log) >> LogsDirectorySize.txt;
In above sample, we are writing date plus size both. Yes, so simply use semi...
Popular Posts
-
Sometimes, when we install any package, this following error comes "dpkg status database is locked" You can remove this lock...
-
Sourcing a file means to execute everything within a file. Important point about Sourcing is that, it will execute the file within the curr...
-
< Previous C ommands (Cont. 1 ) You can check the no. of documents in a collection by using > db.data.count() ...
-
How many types of Memory Cards exist..? Memory cards are small devices that are used to store electronic data (based on the device) li...