Initialization or clearing of log files

2009-12-22 1 min read Linux

Like all Unix file systems, open log files can cause a real problem when they get too large and need to be deleted. The problem is, if you delete an open file, the link is removed, but all of the inodes are lost. Even worse, if the program continues to log to the file, the link never re-appears, and additional inodes are lost and are unrecoverable. I suggest two solutions to the above problems.

Continue reading

Change information for the user on Linux machine.

2009-12-19 1 min read Linux

Today I have couple of hours to spare and thus thought might as well spend it on my blog. The finger command in *nix systems is used to display the information on the users. This information is taken from the /etc/passwd file. You can use the chfn command to change the information. Man page for <a href="http://amit.themafia.info/phpMan.php?parameter=chfn&mode=man" target="_blank">chfn.

Chrome – Chromium on Linux (repo)

2009-12-19 1 min read Fedora

Fedora people put up a repo for the chrome web browser and it is quite frequently updated. All you need to do to install the browser is following:

sudo vi /etc/yum.repos.d/chrome.repo

and add the following lines

name=Chromium Test Packages
baseurl=http://spot.fedorapeople.org/chromium/F$releasever/
enabled=1
gpgcheck=0

Once this is done, you can install the browser with yum as follows:

sudo yum install chromium

[[danscartoon]]

Tip: Using find Command in Linux

2009-12-10 2 min read Linux

Ok this I was planning for quite sometime.. but found this <a href="http://www.pinoytux.com/linux/tip-using-find-command-in-linux" target="_blank">here. Worth reading for people who want to start off using find command.

Doing command-line stuff in Linux is fun. It may be intimidating for some at first, now that we are in the age where GUI is no longer an option. But with CLI, we can do so many things that can be accomplished faster if we know how to utilize the features of a certain command.

Continue reading

One click install for Linux systems.

2009-12-08 1 min read Linux

There has been this concept for quite sometime that there should be one click install for the applications in Linux. This applies to the themes and widgets of wordpress too 🙂 and quite some applications are taking it seriously (like wordpress for example).

But how about the application to do one-click install, there are couple of issues with that but still there exists at least one way. A nice blog <a href="http://www.linux.com/feature/49328">here.

Continue reading

Pipeing linux commands and their output

2009-12-08 1 min read Linux

As a system administrator, I always worry about certain things, like who's doing what, what processes are running, what the network traffic looks like, etc.  One day I decided to create a simple alias that would combine all the commands I wanted into one big chunk of information.  Then I realized that it wouldn't all fit into one screen.
Fortunately I knew how to group all of the commands together, so the "more" command could handle them as one set of input.

Continue reading
Older posts Newer posts