Change file ownership and access permissions with one command

You can change the file permissions and ownership, the group and mode of a directory with a single command, using chown. For example, to make a directory called /dir accessible for everyone (RW), set the user joe as the owner of /dir and it’s contents and claim dev as the ownership group, use chown -R… Read More »

Custom archiving specific filetypes in Linux

Using the command line can save you time. Say you want to archive all the .DOC files from your entire /home directory. Use locate .doc | grep /home/ | zip arhivate -@ to obtain an archive of these files.

Chain renaming files in Linux

To quickly rename a large number of files in Linux using the command line, use rename. rename ‘s/\.jpg$/.gif/’ *.jpg will transform all the extensions of JPEG files into GIF.