Skip to content
Main Menu
  • Home
  • About

Desk Shell

Technology Makes Life Better!

  • Home
  • About

Tag: bash

  • Home
  • bash

variable indirect expansion in bash

2023-01-132023-03-19 Leon Xie

Usually in Bash scripting, we define a variable by giving it a name. and reference it later by using that name in the form of ‘${variable_name}’. This is the usual use case. However, there is another unusual use case. The… Read More

bash, linuxbash, linuxLeave a comment

the EDITOR and VISUAL environment variables

2021-07-152021-07-15 Leon Xie

I installed a Debian Linux OS today, but found that the default text editor is nano, which I am not familiar with. After searching how to set text editor using google, I got the solution. Two environment variables can be… Read More

bash, linuxbash, linuxLeave a comment

boilerplate code for Linux getopt

2021-05-042024-09-27 Leon Xie

Linux getopt command is often used to parse script options. I find a piece of boilerplate code for this command and mark it in this post for further reference. set -eu set +e options=$(getopt –name “demo.sh” -o “f:d” -l “file:,debug”… Read More

bash, linuxbash, getopt, linuxLeave a comment

bash command history

2020-12-17 Leon Xie

Yesterday morning after arriving at the office, I booted up my laptop as usual and tried to connect to my Linux development server using putty. However, the ssh connection couldn’t be established successfully. After struggling for a while, I found… Read More

bash, linuxbash, linuxLeave a comment

Recent Posts

  • data consistence between cache and database — cache aside
  • an introduction to channels in golang
  • introduce curl command
  • two useful clients about ssh and vnc in ubuntu
  • variable indirect expansion in bash

Recent Comments

  • John on raw.githubusercontent.com的DNS记录被污染了
  • Anonymous on disk block size vs filesystem block size
  • Leon Xie on hello world

Archives

  • March 2024
  • February 2024
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • March 2022
  • February 2022
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • February 2020
  • October 2019
  • September 2019
  • August 2019
  • February 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018

Categories

  • ansible
  • apt
  • bash
  • certificate
  • curl
  • data-struct
  • database
  • debian
  • docker
  • etcd
  • git
  • golang
  • gradle
  • helm
  • iptables
  • java
  • jenkins
  • junit
  • jvm
  • kubernetes
  • linux
  • mariadb
  • maven
  • nginx
  • nodejs
  • npm
  • openssl
  • oracle
  • prometheus
  • python
  • redis
  • rhel
  • robot
  • route
  • rsa
  • springboot
  • sql
  • ssh
  • tls
  • tree
  • ubuntu
  • uncategorized
  • zookeeper

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © All rights reserved.
Education Mind by Axle Themes