Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp
#linuxtutorials #linuxcommands #devops
RedHat
------
redhat/suse/fedora/centos --- rpm -- .rpm
ubuntu -- dpkg -- .dpkg
rpm -ivh chef.rpm -- install
rpm -qa -- list all the packages
rpm - e chef -- remove
Ubuntu
--------
dpkg -i chef.dpkg -- install
dpkg -l -- list
dpkg -r chef -- remove
man pages -- to check the usage of a command
man ls --
rpm -help -- to check syntax
wget url -- downloads the package to linux machine
1 ) download to windows
copy it linux
winscp -- too copy
2 ) directly download to linux -wget
linux machine1 linux machine2
log file
rpm file
ftp - file transfer protocol
scp -- secure copy protocol
server1 server2
/a /b
chef.log
server1 scp/a/chef.log root@server2:/b --? copies /a/chef.log from server1 to server2 to /b
1)
server1 server2
/a /bl.log
server2
2) scp root@server2:/b/1.log /a -- copies /b/1.log from server2 to server1
ifonfig -- to list the ipaddress
ipconfig -- windows
scp /b/1.log 10.0.0.41:/
1) /etc/ssh/sshd_config
permitrootlogin yes
service ssh restart -- restart ssh
password -- to set a password
useradd -d /home/user1 -s "/bin/sh" -c "comment" -m -- to create user cat /etc/password
password
su - root@server2
su - user --
ssh -l user1 ip/hostname --
base -- ubuntu/xenial64
vagrant up --
vagrant ssh
sudo su -
redhat package manager
user
home directory
shell
ksh
shell
bash
comment
Watch video Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp online without registration, duration hours minute second in high quality. This video was added by user Online Tutorial 15 April 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,889 once and liked it 71 people.