Using basename command in Linux

The basename command is useful if the full path name of a file is given but you require only the file name. It is used to strip the directory and trailing suffixes from a file name. Usually, it is used in shell scripting. In this article, you will learn the usage of the basename command … Read more

Using fc command in Linux

The fc is a command¬† used to list, edit and re-execute a command that was previously executed on a system. It is a shell built-in command that is present in shells including bash, ksh, zsh, etc. This command is helpful for re-executing long commands without having to rewrite them. In this article, we will discuss … Read more

Using atrm command in Linux

The atrm command is used to remove specified jobs in a system. These jobs are scheduled using at or batch command. The job id is passed as the argument to atrm command. To delete a job a user should have the required permission. A root user can remove any job queued in the system. In … Read more

Using at command in Linux

The at is a command-line utility that is used to schedule a task to run automatically at a particular time in the future. For example, you can schedule a mail program to send mail automatically at a given time. at is most suitable for scheduling one-time tasks for repetitive tasks such as taking backup every … Read more

Using GNU bc (basic calculator) in Linux terminal

The bc or basic calculator is a command-line utility and language that supports arbitrary numbers with interactive execution of statements. It has a syntax that is similar to the c programming language.¬†By using bc you can perform basic mathematical calculations. In this article, we will discuss the usage of the bc command in the Linux … Read more

Using fmt command in Linux

The fmt command in Linux is used to format each paragraph of a text file. You can manually format the text of a small file but what if the file is larger then formatting manually will be a very hectic and boring task. So in Linux, you can use this tool to easily format the … Read more

Using tree command in Linux

The tree is a command which is available for both Linux and Windows. It recursively displays the content of directories on your system. If this command is used without an argument it will recursively print the files and directories under the current working directory. Otherwise, it takes a directory name or path as an argument … Read more

Using tee command in Linux

The tee is a Linux command that reads from the standard input and writes to both standard output and files. It is used mostly with other commands through the concept of pipes. This command performs two tasks simultaneously i.e. writes output to one or more files and also displays on the standard output. In this … Read more

Using tail command in Linux

Linux tail command prints the first given number of lines from the bottom of a file by default it is 10 lines. It is complementary to the Linux head command which prints the first given number of lines from the start of a file. In this article, you will see the usage of the Linux … Read more

Using head command in Linux

Linux head command prints the first given number of lines by default 10 lines of a file provided as input on the standard output. It is complementary to the Linux tail command which prints the given number of lines from the bottom of a file. In this article, you will see the usage of the … Read more