Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 494 Bytes

File metadata and controls

33 lines (31 loc) · 494 Bytes

Commands

find . -type f -exec cat {} \;

To access VM from your local machine in Virtual Machine

vim /etc/ssh/sshd_config
  • edit the line
PermitRootLogin yes
  • check VM ip address
ip addr show

on your machine

ssh root@{vm-ip-address}

To know the distribution of the machine

cat /etc/os-release

to remove all files and directories but one

shopt -s extglob
rm -rf !("filename")