(Notes)
Notes (2019)
Linux Handbook
This is simple unsorted various commands to quick remember useful Linux operation. You also can see hundred various recipes in this page - Linux.
1. Ubuntu server
- Open Firewall for WebServer
- Firewall rules order
- PermitRootLogin SSHD (sudo nano /etc/ssh/sshd_config,PertitLogin=yes,Service sshd restart, sudo passwd root)
- SCP Copy Over SSH
- Add Second User With The Same Home Contents
- List all service
- File permission - everyone can write file (-R recursive) sudo chmod u+rw,g+rw,o+rw tst1
- Ifconfig set IP anf gateway
- Ubuntu second IP
- Ubuntu 20 IP configuration (sudo nano /etc/netplan/00-installer-config.yaml)
- Disk manipulating - lsblk, fdisk, mkfs, /etc/fstab, mount, raid
- Increase swap
- IO monitoring (sudo apt install sysstat, watch iostat -x)
- Network monitoring iftop, Iptraf-ng, cat /proc/net/vlan, bmon, dstat
2. CentOS server
- List device and mount cdrom
- List device and mount cdrom
- Network diagnostic (nslookup, wget, mtr, route, ifconfig, resolv.config, etc/hosts, ethtool, ftp upload)
- SSL diagnostic (openssl s_client -debug -cipher ALL -servername github.com -connect github.com:443), github, generate ssh key, add key yo ssh client
3. OpenSuse desktop
- Switch Suse repository by Yast
- Zypper list (history and by repository) and remove packages.
- XfsDump
- Fdisk And Boot Partition Flag
- Check Disk Performance
- ProtonVpn
- Switch for mounting SMB shares
- DD over FTP with Gzip
- List all hardware
- Desktop link to application
- Open SSH
3. Other
- Allow Ftp transfer Special Chars to filenames
- mRemoteNG ShowPass
- FF PortBlocked