Useful Linux Commands
-
I figured maybe we could make a thread of useful commands you know/use.
Here's a good one to start with:
If you want to see ip addresses connected via ssh type:
echo $SSH_CLIENT | awk '{ print $1 }'
-
You can also just type
pinky
and it will give you the username, full name, time, and ip address of the connected users. -
@johnhooks said:
You can also just type
pinky
and it will give you the username, full name, time, and ip address of the connected users.Just like the older
finger
command used to do. It's a play on the name. Finger is what we used in the early 1990s for that same function. -
I recently came across this comprehensive resource for BASH on Reddit's /r/bash.
The BASH Hacker's Wiki ---> http://wiki.bash-hackers.org/