Category Archives: LINUX
Change SSH Server Pre Login Message
Edit this file /etc/ssh/sshd_config Uncomment or add this line: I added it, it was not there) Banner /etc/sshserver_welcome_msg_123 Then create /etc/server_welcome_msg_123 with the text you want… It can be whatever file you want, or location. I will update the “Post Login Message” later………
Find your debian linux version
cat /etc/debian_version or lsb_release -a easy
screen (linux app)
Quick details, screen must be installed. (sudo apt-get install screen) screen ping http://www.google.com ctrl + A , D to detach. To get back screen -dr to exit again: ctrl + A , D or type exit to DETACH from the “screen” session, the session will keep working behind scenes. MORE THAN 2 SESSIONS… screen -S …
make file executable
sudo chmod +x filename.bin
add text to a file
echo “Hello you!” >> myfile.txt
unzipping / decompressing files in linux
unzip myzip.zip tar xvf filename.tar gunzip filename_tar.gz