Sysadm Linux
We trust you have received the usual lecture from the local System Administrator.
It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Linux commands and tools
Una lista di comandi usabili da una shell di Linux.
comando | funzione |
---|---|
pwd | stampa la directory corrente |
ls (<percorso>) | elenca i file in una directory |
cd <percorso> | cambia la directory corrente |
mv <cosa> <dove> | sposta o rinomina un file/directory |
cp <cosa> <dove> | copia un file/directory |
rm <cosa> | rimuove un file/directory |
mkdir <percorso> | crea una o piu’ directory |
echo <testo> | stampa l’eco |
cat <percorso> | stampa il contenuto di un file |
tac <percorso> | stampa il contenuto sottosopra |
head <percorso> | stampa l’inzio di un file |
tail <percorso> | stampa la fine di un file |
wc <percorso> | conta caratteri, parole e righe |
sort <percorso> | ordina righe |
uniq <percorso> | rimuove righe consecutive identiche |
cut <percorso> | stampa una o piu’ colonne |
tr <percorso> | sostituisce un carattere con un altro |
grep <regex> <percorso> | seleziona righe in base ad una regex |
- Linux / Unix Commands
- Bash Tutorial – Level 1
- Bash Tutorial – Level 2
- An introduction to the GNU Core Utilities
- All You Need To Know About Processes in Linux
- 12 Useful Commands For Filtering Text for Effective File Operations in Linux
- What’s Difference Between Grep, Egrep and Fgrep in Linux?
- ${var?} and &&: Two simple tips for shell commands in tech docs
- Laboratorio di Informatica @UniTN
Linux internals
Ubuntu System Administration
- What is “dist-upgrade” and why does it upgrade more than “upgrade”?
- Changing Network Interfaces name Ubuntu 16.04
- Change default network name (ens33) to old “eth0” on Ubuntu 18.04 / Ubuntu 16.04
- xRDP – Easy install xRDP on Ubuntu 16.04,18.04,20.04,20.10 (Script Version 1.2.1)
- xRDP – Our Customized xRDP login screen
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04
Linux configuration
Linux networking
USE THIS IPROUTE COMMAND INSTEAD OF THIS NET-TOOL COMMAND
ip addr ifconfig -a
ss netstat
ip route route
ip maddr netstat -g
ip link set eth0 up ifconfig eth0 up
ip -s neigh arp -v
ip link set eth0 mtu 9000 ifconfig eth0 mtu 9000
- ifconfig vs ip
- Tcpdump Examples
- Configuring Multi-VLAN support on a Raspberry Pi
- Ubuntu 20.04 Network Configuration
- How to switch back networking to /etc/network/interfaces on Ubuntu 20.04 step by step instructions
- How to configure VLAN network in Ubuntu 20.04
- How to limit bandwidth on Linux to better test your applications
- Simulate high latency network using Docker containers and “tc” commands
Linux security
Log Analysis
Linux storage
- Giocando con LVM, su dischi esistenti
- Getting started with iSCSI
- How to Setup an iSCSI Storage Server on Ubuntu 20.04 LTS
- Service – iSCSI | Ubuntu
- iSCSI : Configure iSCSI Target (tgt)
- iSCSI : Configure iSCSI Initiator
- Set up an iSCSI Target and Initiator and configure multipath
- Creating and managing iSCSI targets
- Using ODrive for Cloud Storage on Linux
tgtadm ACL
tgtadm --lld iscsi --mode target --op bind --tid 1 --initiator-address ALL
Serial communications
Linux customization
- Changing colors for user, host, directory information in terminal command prompt
- How can I change my tcsh prompt to show my current working directory?
- [SOLVED] xterm font tweak to supress and fix a font error
Log Analysis
- GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser
- AWStats is a free powerful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages
- Logrotate: Force Log Rotation
AWK Scripts
- AWK: Efficiently prints lines from a file without duplicates, without sorting (unlike `sort -u`)awk ‘! seen[$0]++’
BASH Scripts
Installazioni di software
OpenWRT
Tools
- Network Notepad Freeware Edition
- Pi-KVM – Open and cheap DIY IP-KVM on Raspberry Pi
A very simple and fully functional Raspberry Pi-based KVM over IP that you can make with your own hands without any soldering. (Needs extra hardware) - How to Configure an SSH Tunnel on PuTTY
- How to get your Airview2 Spectrum Analyzer installed & working
- AirView on Windows 8
- Airview2 and Airview9 Latest Software
- PyAirview
PyAirview is a very simple Python library for the Ubiquiti Airview2 2.4GHz spectrum analyzer, which has an undocumented device API.
PyAirview allows the Airview device to be used by 3rd party applications. - p7m, estrarre il file d’origine con openssl
openssl smime -decrypt -verify -inform DER -in $file_input_name -noverify -out $file_output_name
curl -I https://reqbin.com/echo