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 https://www.gnu.org/software/coreutils/manual/coreutils.html#mv-invocation. 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 […]

GNU/Linux Directory Structure

This is a summary of GNU/Linux filesystem. For a longer version of documentation you can refer to https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/c23.html The root of GNU/Linux filesystem is / directory. In this directory there are many directories or folders with files for various purposes. /bin contains the most essential binaries of the system. /boot contains the kernel and boot […]