Link onde encontramos as palestras do VMware 2018 e muito mais.
- https://videos.vmworld.com/searchsite/2018
willian@localhost:[~]: ping 10.0.0.1 -c3PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=1.75 ms64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=1.63 ms64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=1.96 ms--- 10.0.0.1 ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 2003msrtt min/avg/max/mdev = 1.630/1.782/1.966/0.147 ms
willian@localhost:[~]: telnet www.google.com 80Trying 74.125.196.104...Connected to www.google.com. Escape character is '^]'.
willian@localhost:[~]: telnet www.google.com 8080Trying 74.125.196.104...telnet: connect to address 74.125.196.104: Connection timed out
willian@localhost:[~]: curl -v telnet://www.google.com:80* Rebuilt URL to: telnet://www.google.com:80/* Trying 74.125.196.103...* Connected to www.google.com (74.125.196.103) port 80 (#0)
willian@localhost:[~]: curl -v telnet://www.google.com:8080* Rebuilt URL to: telnet://www.google.com:8080/* Trying 74.125.196.106...* Trying 2607:f8b0:4002:c07::6a...* Immediate connect fail for 2607:f8b0:4002:c07::6a: Network is unreachable
root@localdomain:~# VBoxManage list vms
"CentOS7" {40b52b73-4c78-4e09-9e36-8010c7fe9852}
root@localdomain:~# VBoxManage startvm CentOS7
Waiting for VM "CentOS7" to power on...
VM "CentOS7" has been successfully started.
root@localdomain:~# VBoxManage startvm CentOS7 --type headless
Waiting for VM "CentOS7" to power on...
VM "CentOS7" has been successfully started.
root@localdomain:~# VBoxManage controlvm CentOS7 poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
root@wvcardoso # cdrecord --devicesGravando uma iso em um CDROM via linha de comando
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/sg1' rwrw-- : 'HL-DT-ST' 'DVDRAM GH22NS70'
-------------------------------------------------------------------------
root@wvcardoso # cdrecord -v -dev=/dev/sg1 -data rhel-server-6.3-x86_64-dvd.iso
Google se torna segunda companhia de tecnologia mais valiosa do mundo http://glo.bo/OA8ewq (via @Época Digital)
vmware-cmd -l
vmware-cmd (virtual_machine).vmx getstate
vmware-cmd (virtual_machine).vmx stop hard
vm-support -x
vm-support -x VMID
ps auxfww | grep (virtualmachinename)
kill -9 PID
willian@willian:~/Desktop$ for i in 1 2 3;do > arq${i};doneAgora eu quero listar apenas os diretórios:
willian@willian:~/Desktop$ for i in 1 2 3;do mkdir dir${i};done
willian@willian:~/Desktop$ ls -l
drwxr-xr-x 5 willian willian 4096 May 25 00:56 ./
drwxr-xr-x 33 willian willian 4096 May 25 00:18 ../
-rw-rw-r-- 1 willian willian 0 May 25 00:56 arq1
-rw-rw-r-- 1 willian willian 0 May 25 00:56 arq2
-rw-rw-r-- 1 willian willian 0 May 25 00:56 arq3
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir1/
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir2/
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir3/
-d, --directory
list directory entries instead of contents, and do not dereference symbolic links
willian@willian:~/Desktop$ ls -dSolução:
.
willian@willian:~/Desktop$ ls -ld
drwxr-xr-x 5 willian willian 4096 May 25 00:56 .
willian@willian:~/Desktop$ ls -d */
dir1/ dir2/ dir3/
willian@willian:~/Desktop$ ls -dl */
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir1/
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir2/
drwxrwxr-x 2 willian willian 4096 May 25 00:56 dir3/
# cat /etc/selinux/configPesquisando na internet, achei um tutorial "mão-na-roda", bem simples, básico e de fácil compreensão, que mostra os conceitos básicos do uso do SELinux.
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing # <-------------- HABILITADO AQUI
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Link onde encontramos as palestras do VMware 2018 e muito mais. https://videos.vmworld.com/searchsite/2018