Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Copy\Move file
- cp ./source ./dist
- mv ./source ./dist
- # Send a file from local to remote
- scp -i ~/.ssh/privateKey file.zip user@dnsName:~/
- # Connect to a remote via ssh
- ssh -i ~/.ssh/privateKey userName@dnsName
- # Change owner of a file
- chown userName:userGroup ~/filePath
- # Start\Stop systemd service
- systemctl stop serviceName
- systemctl start serviceName
- # Status of systemd service
- systemctl status
- # Generate SSH key pair
- ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
- # Space usage
- du -cha --max-depth=1 /var/lib | grep -E "M|G"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement