Staticka = nemenna adresa pridelana ISP nebo spravcem site pro PC
Dynamicka = pridelovana DHCP serverem po pripojeni do site, ma dobu expirace,atd
Verejna = je videt do internetu
Neverejna = vetsinou schovana za nejakou Gateway poskytovatele
sudo /etc/init.d/networking restart
<===> restartuje sitovku (pouze u SysVinit)sudo /etc/init.d/networking stop
<===> stopne sitovku (pouze u SysVinit)sudo /etc/init.d/networking start
<===> nastartuje sitovku (pouze u SysVinit)sudo systemctl restart networking
<===> restartuje sitovku na linuxu s {pouze systemD}
Network address can be of one of the following
Unicast (destined to one host)
Multicast (destined to group)
Broadcast (destined to all)
Anycast (destined to nearest one)
scp file1 user@host:/path/to/destination/
<===> pomocní programu SCP zkopiruje soubor pres sit na jiny PCscp -r /home/uzivatel-mistni/xxx Tato e-mailová adresa je chráněna před spamboty. Pro její zobrazení musíte mít povolen Javascript..0.1:/tmp
<===> pomocní programu SCP zkopiruje cely adresar xxx i vnorene slozky pres sit na jiny PC do slozky tmp
neboli
scp soubor uzivatel@hostname:destination_path
<===> You can send a single file to serverscp -r slozka uzivatel@hostname:destination_path
<===> You can send a whole directory to server
sudo /etc/init.d/saned stop
<===> zastavi sluzbu saned /**/ saned is the SANE (Scanner Access Now Easy) daemon that allows remote clients to access image acquisition devices available on the local host.
testparm /etc/samba/smb.conf
<===> otestuje spravnost samba serveru
lsof
<===> Lists information about files that are open by the processes running on the systemlsof | grep -i ipv4
<===> ???lsof -Pn | grep -i ipv4
<===> ???sudo lsof -i :80
<===> To find the process/service listening on a particular port, type (specify the port).sudo lsof -i -P -n
<===> This lsof command is used to find the files and processes used by a user. The options used here are: -i: If no IP address is specified, this option selects the listing of all network files -P: inhibits the conversion of port numbers to port names for network files -n: inhibits the conversion of network numbers to host names for network files
sudo fuser -v {otevreny-port}/tcp
<===> zjisti PID otevrenyho portusudo fuser -kw {otevreny-port}/tcp
<===> zabije proces ktery vyuziva portsudo fuser -v -n tcp 45171
<===> zjisti co pouziva konkretni port 45171 / To find out what uses a specific port do
pokud nemam nainstalovany fuser, je potreba nainstalovat psmiscsudo apt install psmisc
arp -a
<===> vypise arp tabulku
iwlist
<===> Co vse umi vase sitova WIFI kartaiwlist {wlan0} scan
<===> Skenuje vsechny podrobnosti o AP ve vasem okoli / jake jsou wifi ve vasem okoli nc
<===> Utility which reads and writes data across network connections, using TCP or UDP protocolnetworkctl
<===> Introspect the state of network linkswpa_supplicant
<===> Textmode wifi clientipcalc 192.168.0.1
<===> Vypocita vse o vasi IP adreseiw wlan0 info
<===> informace o wifine
ethtool eth0
<===> dostaneme velice hezky sesumarizované veškeré informace týkající se síťového hardwaru (a možných voleb při konfiguraci).
rpcinfo
<===> makes an RPC call to an RPC server and reports what it finds.
iptraf-ng
<===> CLI nastroj na mereni site