Tuesday, July 7, 2015

Personal linux command references (Debian command)

Note: these are command references for personal usage, you may use them as references freely with your own responsible. No warranty for any damages causing bay these references.

Using ssh : remote to server using secure channel

$ ssh -l [user_name] [servername_or_ip]
scp : upload to server using secure channel (secure copy)
$ scp [file_source_to_upload] [user_name]@[servername_or_ip]:[full_path_destination_folder]

Using tar.gz 

To compress
$ tar -cvf [file_name.tar] [folder_to_archive]
To decompress from tar.gz
$ tar -xvf [file_name.tar]
$ tar -czvf BoyerMoore.tar.gz  ./BoyerMooreCopyPaste

Using p7zip

decompress
$ p7zip -d ./Kramaning.4.3.7z
compress folder
$ 7z a kramaning.7z ./Kramaning/*

Restart lightdm xfce desktop server

# systemctl start lightdm
# systemctl status lightdm


No comments:

Post a Comment