How to view a compressed log file in gnuzip format

gzip-logo


Log files are generally compressed, to save disk space. But it can be quite a hassle if we are to uncompressed one by one to just browse through them. There is a utility / command that will make our life easier :



Read More »

How to encypt file or directory in linux, freebsd & os x

gpg-logo


Another short tip. The below demonstrate how to encrypt and decrypt files & folders on Mac OS X, Linux & FreeBSD using GnuPG :



Read More »

How to find out the type of the file

qtip-blue


Some file comes with no extension so we are unable to know what kind of application to associate with. Luckily Linux/Freebsd has a utility that can determine the file type.



Read More »

How to force quit or stop a program

bsd-daemon-tux-logo


After running a job, only to find out later that it is stuck at some point and even Control-C cannot stop it.


e.g. a infinite loop script, X program that stuck in the X window & etc.


Read More »

How to change the message display upon login

qtip-black


There are some message display after a successful log into the system. e.g. (if your system is running Ubuntu)


"The programs included with the Ubuntu system are free software; the
exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted
by applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/"



Read More »

Linux – how to split / break big files in to smaller chunks

tux-logo


Just did a backup and noticed that the backup tar file is more then 2gb, which fail to copy to a fat32 thumb drive. The mysqldump output text file is more then 5gb and needless to try as it cannot fit into any fat32 formatted drive. Or even regular file that is more then 10mb would not be able to email to any Yahoo or Gmail account.


These are the scenarios where the big files are needed to break into smaller chucks in order to transfer it. Below is a good way of doing it :



Read More »

how to check who is current log in and what are they doing

qtip-green


Use the command

w

and it would list who is currently logged in, logged in from where, since when and what are they doing.


See ya !!!

How to view file in read only mode

vim-logo

view” is the editor “vim” or “vi” in read-only mode. The browsing capability is same as vim. It is an alternative to read a file other then using less or more.

e.g.

view some-text-file.txt

Ciao !!!

GNU find – execute command after find results

gnu-logo


Normally we use the “find” command to search for some files and post process it using the pipe (“|”). But do you know find can process the results without using pipe? Here it is :



Read More »

how to check disk space utilization

qtip-blue


Command :

df


Common parameters :

-h = display sizes in human readable format, kb, mb & gb

-i = display inode usage rather then disk usage


e.g.

df -h
df -hi


See Ya !!!

Please sponsor my coffee if you find my posts worth reading, thanks!


-->
Improve the web with Nofollow Reciprocity.