General commands

How to run shell scripts (.sh files)

sh [file.sh]

OR

bash [file.sh]

Display current Linux version

cat /proc/version

Display current Ubuntu version

cat /etc/issue

List all running processes

ps ux

End process

kill -9 <process_id>

List all environment variables

printenv

Leave a Reply

Your email address will not be published. Required fields are marked *