• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

Category: Linux Commands

18 December 2020

How to Use sed to Find and Replace String in Files

Written by Admin
How to Use sed to Find and Replace String in Files
When working with text files, you’ll often need to find and replace strings of text in one or more files. The sed is a stream editor. It is used to search, find and replace, insert and delete words and lines. You also can use the regular expressions. In this article we will show you...
Read More about How to Use sed to Find and Replace String in Files
Linux Commands Leave a Comment
16 December 2020

Linux Head Command

Written by Admin
Linux Head Command
The head command is used to print the few first lines (by default 10 lines) of file or standard output. This tutorial shows you how to use the Linux head command with practical examples. Head Command Syntax# Below is the basic syntax for the head command: head [OPTION]... [FILE]... Here, Use of Head Command#...
Read More about Linux Head Command
Linux Commands Leave a Comment
15 December 2020

How to Rename Files and Directories in Linux

Written by Admin
Rename Files and Directories in Linux
It’s a basic requirement to rename the files and directories on a Linux system. There are two ways to rename files using command-line terminal or via GUI file manager. In this tutorial, we will cover how to rename files and directories using mv and rename commands. Rename Files using mv Command# The mv command...
Read More about How to Rename Files and Directories in Linux
Linux Commands Leave a Comment
14 December 2020

Linux Time Command

Written by Admin
Linux Time Command
Time command is useful when you want to determine the command execution time. Generally, it’s useful to test the performance of the commands and scripts. In this guide, we will cover how to use the time command in Linux. When you are writing multiple script which doing same job and want to choose better...
Read More about Linux Time Command
Linux Commands Leave a Comment
13 December 2020

How to Redirect stderr to stdout in Bash

Written by Admin
Redirect stderr to stdout in Bash
Sometimes when you are redirecting the output of a command by piping to another command or to a file, you get the error messages. There are three standard I/O streams, which are used in Bash and other Linux shells when a program is executed. Below are the streams and each representing by the numberic...
Read More about How to Redirect stderr to stdout in Bash
Linux Commands Leave a Comment
12 December 2020

Bash printf Command

Written by Admin
Bash printf
The printf command have more control over the formatting of the output. It formats and prints arguments similar to the C printf() function. In this article we will see how to use printf command bash. printf Command# Bash and other shells like Zsh and Ksh have printf by default. The standalone binary /usr/bin/printf is...
Read More about Bash printf Command
Linux Commands Leave a Comment
24 November 2020

Bash Select (Make Menus)

Written by Admin
bash select
Using the select construct you can generate menus. In this guide, we will discuss about the basics of the select construct in Bash. Bash select Construct# You can generate a menu from the list of items using the select construct. Following is the syntax for the select construct and it is similar to the...
Read More about Bash Select (Make Menus)
Linux Commands Leave a Comment
23 November 2020

Writing Comments in Bash Scripts

Written by Admin
Writing Comments in Bash Scripts
It’s a best practice to make bash script in a clean and understandable way. You can make you code clean and arrange by indenting, blocks and giving related names of variables and functions. You can also improve the code readability using comments. Comments are human-readable explanation or short description. In this article we will...
Read More about Writing Comments in Bash Scripts
Linux Commands Leave a Comment
22 November 2020

How to Increment and Decrement Variable in Bash

Written by Admin
Increment & Decrement a Variable in Bash
Variable increment and decrement is fundamental arithmetic operation in bash scripting. It’s mostly used with the for, while and until loops. Increment means adding value to variable and Decrement means subtracting from numeric variable value. This article explains multiple ways to increment or decrement a variable. Use of + and - Operators# You must...
Read More about How to Increment and Decrement Variable in Bash
Linux Commands Leave a Comment
21 November 2020

How to Check if a String Contains a Substring in Bash

Written by Admin
Check if a String Contains a Substring in Bash
While you working with string in Bash need to check whether a string contains another string. In this guide, we will show you multiple ways to check if a string contains a substring in bash scripting. Use Wildcards# It is easy to use asterisk wildcard symbols (asterisk) * to compare with the string. Wildcard...
Read More about How to Check if a String Contains a Substring in Bash
Linux Commands Leave a Comment
1 2 … 13 Next →
DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Jenkins on Debian 11
    How to Install Jenkins on Debian 11 January 5, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook