≡ Menu

Linux

Unix Stat Command: How To Identify File Attributes

Question: How do I find out all the available file attributes. i.e I would like to know more about a file or directory than what the ls -l command displays. Answer: Everything in Unix is treated as files. This includes devices, directories and sockets — all of these are files. Stat command displays file or [...]

{ 10 comments }

If you want to convert your website from HTTP to HTTPS, you need to get a SSL certificate from a valid organization like Verisign or Thawte. You can also generate self signed SSL certificate for testing purpose. In this article, let us review how to generate private key file (server.key), certificate signing request file (server.csr) [...]

{ 21 comments }

Question: What is the reason my cron job does not gets executed when i use percentage ‘%’ in my cron job. How to solve this issue ? Answer:‘%’ is the new line specifier in cron command. Thus when you use % it is interpreted as a new line in the cron job. Let us see [...]

{ 4 comments }

Top 5 Best Linux Text Editors

As part of the contest that was conducted a while back, I got around 200 responses from the geeky readers who choose their favorite Linux text editor.   Based on this data, the top spot in the best Linux text editor goes to…   Vi / Vim Editor   Vim won by a huge margin [...]

{ 50 comments }

A while back we reviewed 15 practical find command examples (Part I). Find command can do lot more than just searching for files based on name.   In this article (Part 2), let us discuss 15 advanced examples of find command including — finding files based on the time it is accessed, modified or changed, [...]

{ 35 comments }

5 Practical Examples To Delete / Remove Directory in Linux

Question: How can I delete empty directory, directory with files and sub directories in Linux / Unix ? Also, how can I use an alias effectively for rm and rmdir command?   Answer: You can delete empty directory using rmdir command, or directory with content using rm command. Deletion can be done interactively, recursively, forcefully, [...]

{ 22 comments }

Question: How do I find out the major and minor number of my block device / partition / mount points / SAN disk / filesystem? Why do you need to know major and minor device number? Sometimes you may need to know the major and minor number of devices for various reasons. For example, sar [...]

{ 1 comment }

The Ultimate Guide to Create Users in Linux / Unix

Creating users in Linux or Unix system is a routine task for system administrators. Sometimes you may create a single user with default configuration, or create a single user with custom configuration, or create several users at same time using some bulk user creation method. In this article, let us review how to create Linux [...]

{ 27 comments }