Licence
Creative Commons License

This work by Stephane KATTOOR is licensed under a Creative Commons Attribution 3.0 Unported License.
Feeling like tipping ?
If you find this blog useful, you might consider sending a few bitcoins to support it : 1BTtsC3beGJ6ysd8DhrXjdo6jVw5WD9mvY
RSS
 
RSS Feed
Follow me !
Tech@Sakana on Facebook
Search this site

Newsletter

Get latest posts by email (No spam, only posts):

Enter your email address:

Delivered by FeedBurner

Categories
Monthly archives
February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  
Unix 101 : Showing non-printing characters in text files (ex : DOS files) - January 7, 2011 by Stephane Kattoor

A non-printing character is a character which won’t actually get directly printed (or displayed) but rather interpreted. Such non-printing characters are for example line-feed or tabulation. The interpretation of those characters can differ from one system to the next. For example the line-feed character is different on Unix or DOS.

If you need an easy way to confirm that a text file is DOS or UNIX formatted (they differ with respect to the end of line character(s) for example) or if you wish to display normally non-printing characters of a text file, you can use the -vET command line switches of the cat utility.

As explained in the man page :

  • -v : will use the ^ and M- notation for control and multibytes characters
  • -E : will make ends of lines visible
  • -T : will make tabulations visible

For example : read this entry »

Unix 101 : Filesystem basics & Special files - December 8, 2010 by Stephane Kattoor

This post is meant to clarify a few key concepts about Unix filesystems such as directory permissions, hardlinks and symlinks.

read this entry »

AIX : Use sar to check cpu usage - January 30, 2010 by Stephane Kattoor

If you’re looking for CPU usage statistics and system performance on IBM AIX, sar might just be the tool your looking for. It’ll display information for 5 minutes intervals from midnight to current time. The output looks like this :
read this entry »

Linux / Unix : Disk usage and identifying biggest files - January 17, 2010 by Stephane Kattoor

When working as a systems administrator, you’ll always end up having to solve a file system full error in a hurry. Here are a few commands and hints to help you get out of it quickly on a UNIX like system.
read this entry »

OpenSolaris : Switching to the /dev development branch - November 8, 2009 by Stephane Kattoor

In OpenSolaris, switching to the /dev development branch is a bit like switching to the testing branch for some linux distros. So you might want to think twice before doing so, as it might sometimes break things.

If you still want to do that, follow those instructions :
read this entry »

SSH : Multiplexing connections - April 28, 2009 by Stephane Kattoor

There is a feature in OpenSSH since v3.9 which allows multiple SSH connections with the same caracteristics (host, port, remote login) to be made through a single TCP connection. This is useful because you’ll have to authenticate only once, and besides the new SSH connections will be much faster to establish.
read this entry »

Xen : OpenSolaris 2008.11 DomU running on a Linux Dom0 - December 14, 2008 by Stephane Kattoor

This post is a step by step explanation about how to get an OpenSolaris 2008.11 run as a Xen DomU on a Linux Dom0.
To follow this, you’ll need a Linux machine ready for Xen (I run Xen 3.3.0), with vncviewer installed.

This post doesn’t explain the basics of Xen, so you might want to start by learning Xen if you don’t already know a bit of it.

read this entry »

shell tip : identify broken symlinks - November 29, 2008 by Stephane Kattoor

If you need to identify broken symlinks, you can do the following :
find -L . -type l

The -L options instructs find to follow symlinks when possible. Hence no “working symlink” will ever get returned as the targets won’t match -type l (meaning “file is a symlink”).

On the other hand, find will not be able to follow broken symlinks, so the information will be taken from the symlink itself and not from the non-existent or otherwise unreachable target. The -type l will then be a match and the broken symlink filename will be returned.

Broken symlinks

Case solved ;-)

Thanks to the “Ferg’s Gaff” blog (especially the comments) for showing the way !

Gentoo : Managing software packages - November 9, 2008 by Stephane Kattoor

In this post I’ll cover the basics one needs to know to install, upgrade and remove packages on a Gentoo linux system. read this entry »

Gentoo : First thoughts after the switch - October 5, 2008 by Stephane Kattoor

I’ve recently switched to the Gentoo Linux distribution (mostly to experiment with this Linux distro) and I don’t regret it so far. This post is about my first impressions about Gentoo.

read this entry »

« old entrys
Who am I ?
Ads