Archive & FTP

Archive and Compress Files

tar cvf nsotelo.tar /home/nsotelo

archive all folders in /home/nsotelo

mkdir new

create a directory 'new'

mv nsotelo.tar new

move archive to 'new'

cd new

change to 'new' directory

gzip nsotelo.tar

compress nsotelo.tar

gzip -d nsotelo.tar.gz

uncompress nsotelo.tar.gz

tar xvf nsotelo.tar

extract archive

 

File Transfer Protocol

remote host:

rpm -qa | grep ftp

check if the required package is installed

ping www.google.com

verify internet connection

yum install vsftpd

install the remote package

nano /etc/vsftpd

disable anonymous login

uncomment ascii_upload_enable=YES

uncomment ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP sevice

add to the end of the file "use_localtime=YES"

save & exit

systemctl start vsftpd

 

systemctl enable vsftpd

 

systemctl stop firewalld

 

systemctl disable firewalld

 

client host:

yum install ftp

install the client package

ftp 192.168.50.105

log in to the remote host via ftp

enter username and password of an active remote host account

bi

switch to binary mode (data integrity)

hash

display progress visually

put filename

transfer a file

bye

exit ftp

 

Secure Copy Protocol (Better security and authentication)

  • Uses Port 22 (same as SSH)

client host:

touch filename

create a file

scp filename jsmith@192.168.50.105:/home/jsmith

securely copy the file to /home/jsmith on remote host
enter jsmith password


Revision #1
Created 2026-07-05 06:23:25 UTC by Admin
Updated 2026-07-05 06:23:31 UTC by Admin