Today, I’ll share with you how to determine the size of the HTTP response header. The problem I encountered Last week one of my systems encountered the following error. When a user send a resquest POST, a 502 error occurs. I checked the log on the server, I received the following log. 2019/04/02 09:23:33 [error]
This article we will learn about the tilde expansion in Linux. There will be many times, you will encounter many examples using tilde in Linux commands. So what is tilde expansion? Tilde expansion There will be times when you see commands like this. # cd ~ Or like this. # source ~/.bashrc Have you ever
How to calculate percent of memory used in Linux? This article will guide you to do that. For Linux desktops, you can easily see the percentage of RAM used on your computer through programs like System Monitor. But for Linux servers, only the command line, you must use it. Free command in Linux Linux provides
Working mechanism of wildcard characters, we call it pathname expansion. So how does the this expansion in Linux work? Example of pathname expansion Let’s try a simple example with the ls command, simply listing the current directory. linuxmint Pictures # ls 36845609-dragon-picture.jpg knight.jpg 481821.jpg macOS-Sierra-Wallpaper-Macbook-Wallpaper.jpg apple_icon.png mac.png bear.jpg Webcam Now try expansion with the printing
In this article, what will we learn about expansion in Linux? What does it do when we type the command on the terminal? Throughout this series, we only use a single echo command. This command is quite simple and probably everyone knows, it will print out the text content that we type from the keyboard.
How to use tee to read from stdin and output to stdout and files? This article, I will introduce you to the tee command. If you forget what stdin and stdout are, read the article overview of I/O redirection. About tee command Linux provides a tee command, but according to the man page, it will read
In this article, I will introduce you to the head command. We use head command to print first part of files. Sometimes, you don’t want to display the entire contents of the file on the terminal window. You just want to display the first few lines of the file. About the head command The head
This article will guide you to the grep command. How to use grep to print lines match a pattern. The grep command is an extremely powerful command in Linux, especially when you use it in the pipeline. Grep command syntax We have two ways to use this command. First, we use this command to find
This article will introduce wc command. The wc command is used to count the number of lines, words and bytes in the file. Wc command syntax There are 2 ways to use the wc command as below. We use wc to count the number of lines in a file, not the data in the pipeline.
In this article, we will talk about using the uniq command to delete duplicate lines. This is one of the commands that is also used quite a lot while working on Linux systems. Uniq command and sort command In the article about sort command, we know that the sort command will help you output an