Linux Shell

The command "setfacl" refers to Set File Access Control Lists and "getfacl" refers to Get File Access Control List. Each file and directory in a Linux filesystem is created with a specific set of file permissions for its access. Each user can have different set of file access permissions. The permissions can be set using the setfacl utility. In order to know the access permissions of a file or directory we use getfacl. The getfacl command displays the access permissions of files and directories with file name, owner, group and the ACL's(Access Control List). When we create a directory it is created with a default set of access permissions and by using getfacl we will be able to see the access rights.

Continue reading

When you untar large tar files even as the root user on your VPS you might run into the error "Cannot change ownership to uid NNN, gid NNN: Disk quota exceeded". This is because the extracted files from the tar archive is being attempted to be created with the original UID and GID as on the system where the tar archive was created. Now if the UID is not already present on the new VPS or if the UID corresponds to a user without a lot of disc quota available the above error will be triggered preventing extraction of the tar.gz archive.

Continue reading

Most of us must be familiar with the names 'dig' and 'whois'. If not, these are two commands used to find the details of domains. You just have to type in dig domainname or whois domainname to get a comprehensive set of info on the domain.

What if you have not just one or two domains to check about. How about a 1000 domains and you want to know the details of each?

Continue reading
  • By sandeep.sasikumar on July 24, 2012 - 23:27
  • GNU Linux
0

Most linux users are aware of the basic Linux terminal commands such as cd, ls, rm, rmdir, mkdir etc. Now let us take a look at some other commands which will help you make the best of the linux shell/terminal.

Continue reading
  • By sandeep.sasikumar on July 12, 2012 - 23:46
  • Linux Shell
0

Generating SSH keys and using them for connecting to SSH servers is a straightforward process on Linux. But for Windows users, Windows does not provide any support for the SSH protocol by default. There is no SSH client that comes by default on Windows. Let alone generating keys.

Continue reading

The find command available in GNU/Linux shells is a versatile tool for finding files matching the given conditions in a folder and performing a specific action on the files found. The following command will find all files greater than 1M size in your current folder and ask you if you would like to delete the file

find . -size +1M -exec rm -i {} \;

Continue reading
  • By anoopjohn on May 25, 2012 - 16:53
  • Debian
0

Nmap is a Free Software tool that can be used for a variety of network network exploration tasks and security auditing. Nmap ("Network Mapper") scans IP packets to determine a lot of different aspects about hosts available on the network and also about services these hosts are offering. It can help you find a lot of information about these hosts including reverse DNS names, operating system guesses, device types, and MAC addresses.

Continue reading

We get frequent requests to rebuild existing sites using Drupal. When we get such a request it would help to have a copy of the full site on our local server to make it easier for themers and developers to reuse whatever existing components that can be salvaged from the original site. Wget is a powerful tool that can help mirror websites locally or on any web servers.

Continue reading

It's another Friday Morning at the office, and Sandeep's fingers are running across his keyboard at twice the speed of light (or well, at a few fractions of the speed of light).

Continue reading

STATUATORY WARNING: Get ready to be Terminally Surprised

(and you thought you knew programming?)

It was one normal Friday Morning, and Tingu was thinking of how to spend the rest of her day, when Binny came along with sl and bb to make Tingu's day...

Continue reading