• Device or resource busy in Linux
    04 May

    Resolve Device or Resource is Busy Error in Linux

    1. Introduction When working with Linux, you might encounter the error message “Device or Resource is Busy” while trying to unmount a filesystem, detach a storage device, or perform operations on files or directories. This error indicates that the target you’re trying to operate on is currently in use by the system or a process, […]

  • awk print $2
    05 January

    What is awk print $2

    In this tutorial, we will see about what is meant by awk print $2. awk is interpreted programming language. It is very powerful programming language and used for text processing. Awk stands for the names of its authors “Aho, Weinberger, and Kernighan”. awk print $2 As said before, awk can be used for text processing. […]

  • 18 January

    Sed Command in unix

    Sed (Stands for stream editor) is a command line utility to modify each line of a file or stream matching a specified string. It makes basic text changes to a file or input from a pipeline. Sed command can perform variety of functions on file like, searching, find and replace, insertion or deletion. Most common […]

  • 16 October

    Find command in linux

    In this post, we will see about find command in linux. Find is an important and one of most widely used command in Unix and Linux operating systems. It is used to search and locate list of files and directories based on conditions you specify for files that match the arguments. Find command lets you […]

  • 15 October

    Grep command in unix

    In this post, we will see about grep command in unix. The grep command stands for "Global Regular Expression Print" and is used to search text or searches the given file for lines containing a match to the given strings or words. It is a powerful file pattern searcher in Linux and Unix-like operating systems. […]

  • 26 September

    What is awk print $1?

    1. Introduction awk is interpreted programming language. It is very powerful and used for text processing. Awk stands for the names of its authors “Aho, Weinberger, and Kernighan”. One of its fundamental features is the ability to easily extract specific columns from a text input. The command awk print $1 is used for this purpose. […]

  • 24 September

    sed Replace String in File

    In this post, we will see how to replace String in file using sed in linux. Problem How to find and replace "Text1" with "Text2" using sed command in linux. Solution Sed stands for stream editor.It reads the file and modifies the file as provided by list of sed command.By default, input is written on […]

  • 24 September

    Find file containing text in linux

    In this post, we will see how to find files containing specific text. Problem You want to search for any specific text in all the files in a directory. Solution There are lots and lots of files on linux or unix server. You can find and locate a file using find command but it is […]

  • 24 September

    find file by name in linux

    In this post, we will see how to find file by name in linux. You can use "find" command to find file by name. Find file in the current directory Here is a simple command to find file "letters.txt" in current directory. find . -name letters.txt $ find . -name letters.txt ./txtFiles/letters.txt If you want […]