Linux Tutorials on the topic “shell”

  • Linux fgrep Command Tutorial for Beginners (with Examples)

    linux Author: Himanshu AroraTags: , Comments: 0Published: Aug 30, 2017

    While grep is a well-known Linux command (we've already covered it in detail), do you know that there exist two different variants of this tool? Yes, these are egrep and fgrep. In this tutorial, we will discuss the latter (fgrep) using easy to understand examples.

    read more... | add comment | view as pdf | print

  • Linux expr command tutorial for beginners (with examples)

    linux Author: Himanshu AroraTags: , Comments: 1Published: Aug 22, 2017

    Sometimes, while working on the command line (especially when dealing with a shell script), you may find yourself in a situation where you have to perform actions like searching for a substring in a string, finding its index, as well as other things like performing comparisons and arithmetic operations. For those who aren't in the know, there exists a command line utility - dubbed expr - that lets you do all this.

    read more... | add comment | view as pdf | print

  • Linux expand Command Tutorial For Beginners (with Examples)

    linux Author: Himanshu AroraTags: , Comments: 0Published: Aug 16, 2017

    While working on the command line in Linux, there may arise a situation where-in the requirement is to replace tabs in a file with spaces. The task isn't difficult if the file is small, but what if the file you're dealing with is huge, or worse, there are hundreds of files in which you have to make this change? Worry not, there exists a command line tool that's specifically built for this work. The tool in question is expand, and in this tutorial, we will discuss the basics of expand using some easy to understand examples.

    read more... | add comment | view as pdf | print

  • Linux env Command Tutorial For Beginners (5 Examples)

    linux Author: Himanshu AroraTags: , Comments: 0Published: Aug 11, 2017

    If your work involves doing stuff through the command line in Linux, more likely than not, you'll be using the Bash shell. Did you know there's an environment associated with the processes that are executed through the shell? And, if you want, you can tweak this environment specifically for the task you're doing? Well, in this article we will discuss a command line tool - env - that not only lets you access the shell environment, but also allows you to make changes to it as an when required.

    read more... | add comment | view as pdf | print

  • How to clone disks with Linux dd command

    linux Author: Matt VasTags: , , Comments: 7Published: Aug 10, 2017

    In this tutorial we'll refer to a practical example of Linux dd command that can be used by system administrators to migrate or clone a Windows Operating System or a Linux OS from a larger HDD partitioned in MBR or GPT layout style to a smaller SSD.

    read more... | add comment | view as pdf | print

  • Linux exit Command Explained for Beginners (With Examples)

    linux Author: Himanshu AroraTags: , Comments: 0Published: Aug 08, 2017

    If you are a Linux newbie, and your work involves doing stuff through the command line, then it goes without saying that you must be spending a lot of time on the terminal window. As you'd likely agree, there are some commands that we tend to use very frequently, like ls, cp, and rm. However, there are some others that are comparatively less used. In this tutorial, we will discuss one such, less frequently used command: Exit.

    read more... | add comment | view as pdf | print

  • Linux du Command Tutorial for Beginners (10 Examples)

    linux Author: Himanshu AroraTags: , Comments: 2Published: Jul 26, 2017

    Sometimes, while working on the Linux command line, you might want to quickly know disk usage for a set of files or for a complete directory. There's a specific command line tool that lets you do this, dubbed du. In this tutorial, we will discuss the basics of this tool as well as the features it provides using easy to understand examples.

    read more... | add comment | view as pdf | print

  • Linux echo Command Tutorial for Beginners (5 Examples)

    linux Author: Himanshu AroraTags: , Comments: 0Published: Jul 25, 2017

    In this tutorial, we will discuss basics of echo as well as the command line options it provides. Suppose you want to append a hard-coded line of text to a file through the command in Linux, what would you do? An obvious approach would be to open the file in an editor, and then enter the line manually. But think of a case where-in this task needs to be automated. What's your option in that case?

    read more... | add comment | view as pdf | print

  • Linux dirname command explained for beginners (4 examples)

    linux Author: Himanshu AroraTags: , Comments: 3Published: Jul 20, 2017

    Are you a new Linux user? Does your work involve shell scripting? If your answer to both these questions is yes, the tool we'll be discussing here will likely interest you. The name of the tool is dirname, and it's mostly used in situations where-in you need to strip the last component from an absolute file-name.

    read more... | add comment | view as pdf | print

  • Linux df Command Tutorial for Beginners (8 Examples)

    linux Author: Himanshu AroraTags: , Comments: 1Published: Jul 18, 2017

    Sometimes, you might want to know how much space is consumed (and how much is free) on a particular file system on your Linux machine. There a specific command - dubbed df - that does this for you. In this tutorial, we will discuss the basics of this command, as well as some of the major features it offers.

    read more... | add comment | view as pdf | print