Archive

Archive for February, 2011

upotreba find-a

February 22, 2011 Leave a comment

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

Categories: Linux Tags: , ,

pretraga nekoliko pojmova u fajlu – grep

February 22, 2011 Leave a comment

grep “nesto\|blabla” fajl.txt

Categories: Linux Tags: , , ,

DHCP server

February 2, 2011 Leave a comment

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;
}
}