Linux Commands - Red Hat | Ubuntu | Copying Files from One Server to Another Server | ssh, scp
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 -- install
rpm -qa -- list all the packages
rpm - e chef -- remove
Ubuntu
--------
dpkg -i -- 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
server1 scp/a/ root@server2:/b --? copies /a/ from server1 to server2 to /b
1)
server1 server2
/a /
server2
2) scp root@server2:/b/ /a -- copies /b/ from server2 to server1
ifonfig -- to list the ipaddress
ipconfig -- windows
scp /b/ :/
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
1 view
1878
403
2 months ago 00:08:59 1
Linux для начинающих | Терминал Linux | Основные команды
2 months ago 00:45:43 1
Полный Айсберг Linux: Что скрывается под поверхностью ОС?
2 months ago 00:29:57 1
Parrot 6.2 Release, The Ethical Hacking Distro Now Introduces Rocket Launcher for Docker Containers
2 months ago 00:05:35 1
Как обойти блокировку YouTube на Андроид Телевизоре и Смартфоне
2 months ago 00:09:02 41
Linus Torvalds: Speaks on Hype and the Future of AI
2 months ago 00:21:21 1
Ubuntu : the SNAP ecosystem improves, with a touch of nostalgia
3 months ago 00:08:15 1
Linus Torvalds: Speaks about Leaving Linux and Burn Out
3 months ago 00:13:20 1
Brother Electronic Knitting Machines: Upload patterns using Knittington, GIMP (Linux)