Running a command on the remote server
Answer:
To run a command on the remote server over ssh, use the following command:
# ssh username@server COMMAND
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Running a command on the remote server
Answer:
To run a command on the remote server over ssh, use the following command:
# ssh username@server COMMAND
Add an existing user to an existing group
Answer:
Add an existing user to an existing group (supplemental group)
# sudo usermod -a -G www-data john
john will be added to the www-data group
Ignoring the program's output
Answer:
Sometimes, you want to throw away the standard output (stdout) from a particular program/command, you can redirect the stdout the the /dev/null
cat test.txt > /dev/null
How to print something to screen
Answer:
Use the echo commamd
# echo "Hello World"
Hello World