Just wanted to keep track of commands and configurations I frequently forget and google.
For unzipping a .zip file via terminal
For unzipping a .zip file via terminal
unzip file.zip -d destination_folderFor copying files using ssh
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
from-host: Is the name or IP of the host where the source file is, this can be omitted if the from-host is the host where you are actually issuing the command
user: Is the user who has the right to access the files and directories to be copied in case of from-host, and the user who has the rights to write in case of to-host
source-file: Is the file or files that are going to be copied to the destination host, it can be a directory but in that case you need to specify the -r option to copy the contents of the directory
destination-file: Is the name that the copied file is going to take in the to-host, if none is given all copied files are going to keep its names