What Is “awk ‘{print $1}'”?

What Is "awk '{print $1}'"?

The awk is a very powerful command or interpreted scripting language to process different text or string data. The awk is generally used to process command output or text or configuration files. The awk provides ‘{print $1}’ command in order to print the first column for the specified file or output. In this tutorial, we … Read more

How To Force Remove Directory In Linux?

Linux provides the rmdir command in order to delete a directory. But while using the rmdir command we may get an error like “rmdir: failed to remove ‘nmap’: Directory not empty”. This is caused by a non-empty directory that contains child directories and files. But we can remove this directory by forcing removal with different … Read more

Bash Concatenate Strings Tutorial

Bash provides very similar features to the programming languages. Concatenating strings are one of the most popular features of the bash. The string concatenation is simply joining multiple strings together or adding all strings into the first string. There are different methods for concatenating strings in bash and we will examine some of them. Concatenate … Read more

Move Directory In Linux

Move Directory In Linux

Directories are used to store other directories and files in a hierarchycal way. Some time we may need to move directories to the different paths or inside another directory. Linux provides the mv command in order to move directories. There are different ways to move directories in Linux like multiple move, verbose move, approve every … Read more

How To Unzip File In Linux?

How To Unzip File In Linux?

Zip is one of the most popular archives or compression formats and algorithms. The zip is used to compress data into a single file. Multiple files or folders can be zipped into a single zip file. In this tutorial, we examine different cases to unzip files in Linux. Install unzip Command In most of the … Read more

How To Use Sed To Replace String In File?

The sed command is an important command used to edit files or command outputs. The sed can be used to find and replace strings for a file easily via the command line interface. The sed name comes from the Stream Editor which provides advanced features to work with file contents. In this tutorial, we examine … Read more

How To Find Large Files In Linux?

Linux is a file-based operating system that contains a lot of files of different sizes. During daily usage, a lot of files are created or downloaded by systems or users. This consumes a lot of disk space which results in storage errors and warnings. We can search and find big or large files using different … Read more