Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

bash - Page 3 of 4 - DesignLinux

Oct 23 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash Case Statement

The bash case statement can be used when you have multiple choices conditions. Using bash case statement, it will be more readable and easier to maintain instead of nested if statements. This tutorial shows you the basics and use of the Bash case statement in shell scripts. The Bash case statement has a similar concept

Read More
Oct 21 2020
  • designlinux
  • 0 Comments
    • Tutorial
Echo Command in Linux with Examples

In Linux, the echo command is most common and frequently used command. It will print the passed arguments to the standard output. Generally, echo command is used in shell scripts to show a message or output the results of other commands. echo Command# By default, the echo is built-in in Bash and other shells like

Read More
Oct 16 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash For Loop

Loop is the basic requirement of any programming languages. Loops are useful when you want to execute a series of commands until the certain condition is satisfied. In Bash, loops are useful for automating repetitive tasks. In this tutorial, we will see basics of for loop in Bash. There are three basic loop constructs, for

Read More
Oct 13 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash if..else Statement

The if statement is the most basic concepts of any programming language. In Bash, you can also use if…else, if…elif.else and nested if statements like other programming languages. In this article, we will show you the basics of the Bash if statement and use of it in your shell scripts. if Statement# If statement can

Read More
Oct 01 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash Exit Command and Exit Code

In this article, we will discuss about the Bash exit built-in command and the exit code of the executed commands. Generally, at the time of writing Bash scripts, you will need to terminate the script when a certain condition is met or to take action based on the exit code of a command. Exit Status#

Read More
Aug 10 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash Source Command

The source is a shell built-in command which is used to read and execute the content of a file, passed as an argument in the current shell script. It is useful to load functions, variables, and configuration files into shell scripts. Source Command Syntax# The following is the basic syntax for the Source Command: source

Read More
Jul 29 2020
  • designlinux
  • 0 Comments
    • Tutorial
Bash: Append to File

This tutorial explains how to append text to a file in Bash. There are different ways to append text to a file. Prerequisite# Your user must have write permission to a file in which you want to append text. Otherwise, you will receive a permission denied error. Append Text using Redirection Operator (>>)# Using Redirection

Read More
Jun 18 2020
  • designlinux
  • 0 Comments
    • Tutorial
How to Check if a File or Directory Exists in Bash

While working with Bash and shell scripts, you might need to check whether a directory or a file exists or not on your filesystem. In order to check whether a file or a directory exists with Bash, you can use test command. Following is the basic syntax for the test command: test EXPRESSION [ EXPRESSION

Read More
  • designlinux
  • 0 Comments
    • Tutorial
Bash Exit Command and Exit Codes

Often when writing Bash scripts, you will need to terminate the script when a certain condition is met or to take action based on the exit code of a command. In this article, we will cover the Bash exit built-in command and the exit statuses of the executed commands. Exit Status # Each shell command

Read More
  • designlinux
  • 0 Comments
    • Tutorial
How to Redirect stderr to stdout in Bash

When redirecting the output of a command to a file or piping it to another command, you might notice that the error messages are printed on the screen. In Bash and other Linux shells, when a program is executed, it uses three standard I/O streams. Each stream is represented by a numeric file descriptor: 0

Read More
  • «
  • 1
  • 2
  • 3
  • 4
  • »
Popular Post
  • How to Install Skype on Arch Linux
  • How to Check the PostgreSQL Version
  • Du Command in Linux
  • How to Start, Stop, or Restart Nginx
  • How to Install Shutter Screenshot Tool in Ubuntu 20.04
  • Echo Command in Linux with Examples
  • Bash Case Statement
  • How to List Cron Jobs in Linux
  • How to Boost the Productivity with Sublime Text Snippets
  • How to Change Hostname on Ubuntu 20.04
Recent Posts
  • How to Install Puppet on Ubuntu 22.04
  • How to Install Skype on Ubuntu 22.04 LTS
  • How to Install Slack on Ubuntu 22.04
  • 25 Outstanding Backup Utilities for Linux Systems in 2023
  • How to Install Java on Ubuntu 22.04
  • How to Install Jenkins on Ubuntu 22.04
  • Progress – Show Percentage of Copied Data for (cp, mv, dd, tar) Commands
  • How to Monitor Progress of (Copy/Backup/Compress) Data using ‘pv’ Command
  • How to Install GIMP on Ubuntu 22.04
  • How to Install Notepad++ on Debian 11
Recent Comments
    Popular Tags
    apache Apache Tips bash browser cassandra centos CentOS Tips commandline tools database debian Debian Tips elasticsearch fail2ban Fedora Tips git Hadoop Tips java kernel LAMP Guides LFCA Certification Exam linux distros Linux IDE Editors Linux Mint Tips linux network monitoring linux office suite linux server monitoring Linux Tricks loop mariadb mysql MySQL Tips Networking Tips Nginx Tips php postgresql python rdp RHEL Tips Rocky Linux Tips security ssh SSH Tips terminal ubuntu Ubuntu Tips
    Archives
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • July 2022
    • June 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    Categories
    • AlmaLinux
    • Android
    • Ansible
    • Apache
    • Arch Linux
    • AWS
    • Backups
    • Bash Shell
    • Bodhi Linux
    • CentOS
    • CentOS Stream
    • Chef
    • Cloud Software
    • CMS
    • Commandline Tools
    • Control Panels
    • CouchDB
    • Data Recovery Tools
    • Databases
    • Debian
    • Deepin Linux
    • Desktops
    • Development Tools
    • Docker
    • Download Managers
    • Drupal
    • Editors
    • Elementary OS
    • Encryption Tools
    • Fedora
    • Firewalls
    • FreeBSD
    • FTP
    • GIMP
    • Git
    • Hadoop
    • HAProxy
    • Java
    • Jenkins
    • Joomla
    • Kali Linux
    • KDE
    • Kubernetes
    • KVM
    • Laravel
    • Let's Encrypt
    • LFCA
    • Linux Certifications
    • Linux Commands
    • Linux Desktop
    • Linux Distros
    • Linux IDE
    • Linux Mint
    • Linux Talks
    • Lubuntu
    • LXC
    • Mail Server
    • Manjaro
    • MariaDB
    • MongoDB
    • Monitoring Tools
    • MySQL
    • Network
    • Networking Commands
    • NFS
    • Nginx
    • Nodejs
    • NTP
    • Open Source
    • OpenSUSE
    • Oracle Linux
    • Package Managers
    • Pentoo
    • PHP
    • Podman
    • Postfix Mail Server
    • PostgreSQL
    • Python
    • Questions
    • RedHat
    • Redis Server
    • Rocky Linux
    • Security
    • Shell Scripting
    • SQLite
    • SSH
    • Storage
    • Suse
    • Terminals
    • Text Editors
    • Top Tools
    • Torrent Clients
    • Tutorial
    • Ubuntu
    • Udemy Courses
    • Uncategorized
    • VirtualBox
    • Virtualization
    • VMware
    • VPN
    • VSCode Editor
    • Web Browsers
    • Web Design
    • Web Hosting
    • Web Servers
    • Webmin
    • Windows
    • Windows Subsystem
    • WordPress
    • Zabbix
    • Zentyal
    • Zorin OS
    Visits
    • 0
    • 4
    • 557,453

    DesignLinux.com © All rights reserved