How to pipe the output of locate to ls
locate command can be used to search for files. Locate command is good at search an index but not great at listing the results. To get better listing features, you…
Simply Explaining Technology
locate command can be used to search for files. Locate command is good at search an index but not great at listing the results. To get better listing features, you…
The following bash script shows how to capture image properties from ImageMagick: xa.jpg is an image which is stored in the same directory as this script. identify is an ImageMagick…
To check disk space, you can use one the following commands: This command would list the amount of space used and available on each partition of the system. du commands…
Error Cause rm can only handle a certain number of arguments. If you run following command in a directory of 500 json files, the argument list is 500 Solution Use…
The following code read the contents of a text file To read first five lines only Read five lines and then delete those lines
You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out: You will probably see multiple users. Ignore…
Linux is the most widely used variant of Unix. Linux is a very powerful operating system which has been around for more than 30 years. Initially, it was primarily been…
tar command The tar command is used to collate collections of files into one larger file. Creating archives Suppose we have directory xdir containing many files, we use the following…
Suppose I need to change the file extensions of certain files in a directory. The directory address specified by the user is read into the script in line 2. This…