I had a need to scan a huge directory tree today, identifying the users and Unix groups owning all the files. The problem I faced was too long usernames and group names which meant the find /directory -ls command which I normally use for such … [Continue reading] about Perl: Searching Through Directory Trees
In Unix systems, there are 6 file types. Below I will give a very short description of each. How to find out the type of file in Unix The first and most obvious way to confirm the type of a particular file is to use the long-format output of ls … [Continue reading] about Unix File Types
If you run your Ubuntu system behind a firewall and have to use proxy server for http and ftp access, then your apt-get on a newly installed Ubuntu system will probably not work. To make it use proxy, simply set the http_proxy environment variable. … [Continue reading] about How To: Use apt-get behind proxy
I've recently upgraded Apache and PHP on my VPS, and one of the unpleasant surprises was that some scripts which tried including pages from remote sites (I know, not the most secure approach, but there were reasons for that) got … [Continue reading] about URL file-access is disabled in the server configuration
If you have used your fresh Ubuntu install for longer than half an hour, chances are that you've discovered the sudo command already. sudo allows certain users to execute a command under another user's privileges. Most commonly, using sudo implies … [Continue reading] about Ubuntu: Using Sudo to Grant User Privileges
Starting with RHEL4, the system only accepts local (socket-based) X11 server connections. This means that if you go to another Unix server and try forwarding X11 output by using DISPLAY variable to point to your RHEL4 box, it will no longer work. … [Continue reading] about Allow Incoming TCP Connections for X11 on a RedHat (RHEL4) System
Different UNIX-like operating systems store information about their release versions differently. If you know what OS you have, but not sure about the version, then here's how you can find out: RedHat Linux bash-3.1$ cat /etc/redhat-release Red Hat … [Continue reading] about How To: Find Out the Release Version of Your UNIX
H, and welcome to UNIX Tutorial - a future hub for all sorts of useful information on various UNIX systems. The project is about to be launched by the end of August, so stay tuned! If you have any ideas/suggestions - please don't hesitate to … [Continue reading] about Welcome!