Change Access Permissions with chmod

chmod changes the access permissions of the named files. Synopsis:chmod [option]… {mode | –reference=ref_file} file… Structure of File Mode Bits The file mode bits have two parts: the file permission bits, which control ordinary access to the file, and special mode bits, which affect only some files. There are three kinds of permissions that a […]

Concatenate and Write Files in Reverse with tac Command

tac is reverse of cat command in functionality. tac copies each file (- means standard input), or standard input if none are given, to standard output, reversing the records (lines by default) in each separately. Synopsis: tac [option]… [file]… A sample run is shown below: $ tac gskjhsg shgsgeg skheghseg skheghseg shgsgeg gskjhsg Note that […]

Removing(Deleting) Files and Directories with rm Command on GNU/Linux

rm which is shorthand for remove, removes files and directories. But by default, it does not delete directories. For full documentation please refer to coreutils documentation of your operating system. Given below is synopsis: rm [option]… [file]… Typical usage is rm filenames, where filenames can be one file or many files or a regular expression. […]

Moving(renaming) Files with mv Command on GNU/Linux

For a complete reference of mv command please refer to coreutils documentation installed on your system or refer to Here we will cover most important aspects of mv command with some examples. mv command is used to move(cut and paste) or rename files. There is no separate command for renaming files on GNU/Linux. Given […]