Monthly Archives: April 2009

How to view compressed log file in bzip format

This post is similar to the previous one talking about how to view a log file compressed in gnuzip format. Below is the command to view compressed file in bzip2 format instead :

How to change the login screen banner

The previous tip was about change the banner after login. This tip, however, was to change the banner of the login prompt aka pre-login message.

How to view a compressed log file in gnuzip format

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 :

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

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

How to find out the type of the file

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.

How to force quit or stop a program

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.

How to change the message display upon login

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 [...]

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

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 [...]

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

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

“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 !!!

-->
Improve the web with Nofollow Reciprocity.