passwd
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install vlc
sudo apt-get install transmission-gtk -y
sudo apt-get install gparted -y
#super user
sudo su -
ls -ld
chmod -R 0777 ./ #gives 0777 to all files and directories starting from the current path
md5sum #checksum
scp file pi@192.168.1.1:/folder/to #lan copy
systemctl restart vncserver.service
#to disable BT wifi
dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
#upgrade motioneye
pip install motioneye --upgrade
dietpi-services restart
#find command
find . -xdev -type f -size +100M
cd ./root/.local/share/Trash/files
cd /mnt/dietpi_userdata/motioneye
rm -R *
#expand dietpi file system
df -h
systemctl unmask dietpi-fs_partition_resize.service
systemctl enable dietpi-fs_partition_resize.service
reboot
#install netstat on Pi
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
#kill vpn
sudo pkill openvpn
# mounting ssd
sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
sudo blkid
sudo mkdir /mnt/1terra
sudo mkdir /mnt/1terra/transmission
sudo chmod -R 777 /mnt/1terra/transmission
sudo mount /dev/sda1 /mnt/1terra
ls /mnt/1terra
sudo nano /etc/fstab
#1terra
UUID=f7d61fdd-1b1b-4836-8421-48137dd4cb8d /mnt/1terra ext4 defaults,auto,users,rw,nofail 0 0
#to make file executable
chmod +x
#tar stuff
#make the tar in /root folder
tar -czvf lanscripts.tar.gz .lan-serversdown.txt .lan-serversreboot.txt .rack-serversdown.txt rebootall shutdownall shutdownrack
#dislpay tar files
tar -tvf lanscripts.tar.gz
#sendto backup pi
scp /root/lanscripts.tar.gz dietpi@192.168.3.10:/var/www/backup
apt list --upgradable
#check os
cat /etc/os-release
#check hardware
cat /proc/cpuinfo
#check model
cat /sys/firmware/devicetree/base/model
scp root@192.168.1.20:/etc/hosts /etc
scp root@www:/root/.showip.sh /root
ssh-copy-id root@192.168.x.x
#no dig command
apt install dnsutils -y