Beginner / Session 2
ویرایش فایل های متنی: vi
* Command mode(ESC)
* Insert mode(i)
* Command line mode(:)
* :w :q :wq :q! :w filename
* copy/cut/paste/visual y d p v
* search forward/backward
* h j k l $ 0 G x o A
فشرده سازی فایل ها
* tar zcvf file.tar.gz directory
* tar xf file.tar.gz
* gzip / gunzip / zcat / zless / zgrep
* tar jcf file.tar.bz directory
* tar xf file.tar.bz
* bzip2 / bunzip2 / bzcat / bzless / bzgrep
* tar Jcf file.tar.xz directory
* tar xf file.tar.xz
* xz / unxz / xzcat / xzless / xzgrep
* unzip / unrar
تنظیمات شبکه
* ip address add 192.168.10.100/24 dev ens192
* ip address show
* ip -br -c a s
* ifconfig
* ip route add default via 192.168.10.1
* ip route del default
* ip route show
* ip -c r s
* route -n
* ping
* /etc/network/interfaces
auto lo
iface lo inet loopback
auto ens192
iface ens192 inet static
address 192.168.10.100/24
gateway 192.168.10.1
iface ens192 inet6 static
address 2a0e:0:1:b:109::/64
gateway 2a0e:0:1:b::1
* /etc/resolv.conf
nameserver 85.15.1.14
nameserver 85.15.1.15
* wget
* tcpdump
نصب نرمافزارها
* /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
* apt update
* apt upgrade
* apt install tree
* apt search speedometer