Wednesday, September 15, 2010

5 different ways to do file listing without ls command

  ls has to be the command which every UNIX user has used the most. Well, what if ls command does not exist. Can we still list the files and directories without the ls command? In other words, can we simulate the ls command? There are many different ways to achieve that. Lets us see some of them.

1. The simplest of all is using the echo command:
echo *
  In case, if you also want to list the hidden files as well,

Monday, September 13, 2010

EXINIT vs .exrc

In one of our earlier articles, we discussed the use of .exrc file. In this article, we will discuss about the EXINIT variable and how it is related to .exrc file.

  EXINIT is an environment variable which is used by the vi command. When the vi command opens a file, it first reads the EXINIT variable, if present,  and applies the settings accordingly.