06 August

How to delete files using rm command in Linux?

Use rm command in Linux is used to delete the files. Although by default it can remove files only but rm command can also be used to delete directories using certain options (a less known fact to beginners). Syntax rm [OPTION]…[FILE]… Example The ls shows that originally there are three files. Then we use the […]

30 July

How to use head and tail Command in Linux

In this post we are going to discuss – How to use head and tail Command in Linux head The head command is used to output a subset of lines from the file starting from the top. By default it will output the first 10 lines. Syntax of head command $head [OPTION]…[FILE]… Example $head grepfile […]

27 July

5 Basic Linux Commands for Beginners

So, now that you know how to get to command line the next step is to start using it. We will discuss 5 basic Linux commands for beginners. Understanding the General Command Syntax Any command will have the following syntax command options arguments command: refers to the command name. For example, ls, pwd, date, chmod […]

24 July

Accessing Command Line in Linux

The power of Linux lies in its command line. So, the first thing to know is – how to access command line in Linux? There are two ways of accessing command line in Linux:1. Opening an application (called Terminal) within the GUI2. Opening one of the Virtual Consoles 1. Opening an application (called Terminal) within […]

19 July

Prerequisites For Learning Linux

Planning to learn Linux! Wonder what you all hardware, software or personal skills to require before you begin. So, lets discuss the prerequisites for learning Linux. What is Linux? Linux is an open-source Operating System which helps you to operate your computer/laptop. So, its objective is similar to that of Windows/macOS. There are many Linux […]

07 July

How to use grep command in Linux?

grep command in Linux is used to search for patterns within a file i.e., it will help to your search for content within a file. For example, if you want to search for “help” within a file f1.txt, then you can use grep command. A pattern is different from a word. For example, the as […]

28 June

How to change directory using cd command in Linux?

The cd command in Linux is used to change the current directory. cd is a shell builtin command. Syntax cd [path]  where path specifies the path of the new directory. For example: The current working directory as checked with pwd command was /home/baljit/search. Next, we  use cd to change the directory to /home/baljit/cse325 Different methods […]

26 June

How to search for files in Linux?

Sometimes you want to apply command on several files or a subset of files. For example, you want to delete all files whose name starts with “TH”. So there are two ways to do it. One, you delete them one by one or you specify some pattern which matches all files starting with “TH”. In […]

24 June

How to create files using touch command in Linux?

In this post we focus on How to use touch command in Linux? Use touch command is used to update the timestamp of a file or directory. Timestamp means that it will update the access and modification times of the file or directory specified. Syntax touch [OPTION]…[FILE]… Example of How to use touch command in […]

21 June

How to use ls command in Linux?

Use ls command in Linux is used to list the directory contents. If a directory name is not specified then the contents of the current working directory are displayed. Syntax ls [OPTION]… [FILE]… Example of How to use ls command in Linux? First, we use ls without specifying any directory name. So it displays the […]