upotreba find-a
find . -name “example_filename.txt”
pretraga fajlova
find /usr/share/icons -iname “*mail*”
find . -iname “example_filename.*”
find . -mmin -60
find . -size 512k
find . -perm -777
pretraga nekoliko pojmova u fajlu – grep
grep “nesto\|blabla” fajl.txt
DHCP server
instalacija:
yum -y install dhcp
editovanje konfiguracionog fajla
nano /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.191.0 netmask 255.255.255.128 {
range 192.168.191.70 192.168.191.75;
# — default gateway
option routers 192.168.191.1;
option subnet-mask 255.255.255.128;
option nis-domain “domen”;
option domain-name “domen”;
option domain-name-servers 192.168.1.8;
# option time-offset -18000; # Eastern Standard Time
option ntp-servers ntp.server.domen;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;
# range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host jebiga {
#next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}