Have you ever having to control more than a single file with your tail -f ? I will and I just recently found out that you can run the tail command specifying the -f flag several times so you can give the command: tail -f /varlog/messages -f /var/log/syslog You’ll get an output like this: ==> […]
Dig into your history
The history command is very useful when you frequently work at the terminal and you want to invoke a command given in the past.But there are several options that are not so common or poorly understood, in this article we’ll see some of them in bash and zsh. Basic usage Show last commands in history. […]
setsid – start programs in a new shell
As someone posted in a comment of one of my former article (nohup, bg e disown), i’ve forget a command: setsid, while talking about the possibility of detach a process from a terminal or a shell man setsid setsid – run a program in a new session The main difference i see from nohup is […]
How to run commands in the background in Linux
Suppose you have a long-running task (for example, compiling a large program) that you need to run, but you also want to get some other work done. Linux lets you start a task in the background and keep on doing other things from the command prompt. We will see in this article how to send […]
Screen and Byobu
If you frequently use the terminals and the command line, I hope you know the command screen, otherwise get ready to see something that will help you immensely. Screen ? (from the man page) Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). Each virtual terminal provides […]