How to tail a remote file over ssh
Answer:
If you want to tail a remote file over ssh, you can use
# ssh -t remote-server "tail -f /var/log/log.txt"
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to tail a remote file over ssh
Answer:
If you want to tail a remote file over ssh, you can use
# ssh -t remote-server "tail -f /var/log/log.txt"
Writing more robust shell script
Answer:
You should always start your bash shell script with the line set -eu
The meaning is:
How to clear terminal's shell buffer in Mac OS X
Answer:
To clear your terminal's shell buffer in Mac OS X, you can use COMMAND + K
How to list system installed locales
Answer:
You can list all system's currently installed locales via the command: locale -a
Mass resolve ip to hostname
Answer:
If you have a list of IPs and need to resolve to the hostname(via reverse DNS lookup), you can use the following command:
cat ip_addresses.txt | xargs -n 1 -P 100 -i dig -x {} +short