Linux commands

for Redhat Linux

  • list all the repositories

  • find current folder size
    findmnt /tmp -o SOURCE,FSTYPE,SIZE,USED,AVAIL,USE%,TARGET

  • centos minimal might not contains netstat

yum install net-tools

https://cyruslab.net/2014/07/11/installing-netstat-on-centos-7-minimal-installation/

list block device

1
lsblk

https://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-lvm.html

Type:
disk
part
lvm
rom

SSH Tunnels

https://scriptingosx.com/2017/07/ssh-tunnels/

shell
1
$ ssh  -N -L localhost:8080:localhost:80 -i ~/.ssh/ec2Test.pem ec2-user@ec2publicip.us-east-2.compute.amazonaws.com

Setup test env

Reward Makes Perfect
0%