lev258Értem az angol szöveget, de a "futtatás" részben kérlek segítsetek:
1. gedit-be bemásolom a scriptet és elmentem count_em.txt néven? hova mentsem?
2. mit jelent ez a jel ~? ... ~/bin/count_em - hol találom ezt a könyvtárat?
3. gondolom terminálban oda navigálok ahova mentettem a txt-t és kiadom chmod +x ~/bin/count_em parancsot (If you had to make the directory ~/bin then it won't be in the executable path yet, so just log out and back in again. -> azt mondja, hogy ha létrehozok ilyen mappát, akkor nem kell futtatnom, csak kilépek és vissza? ... nem értem sajnos .. elnézést!!
4.To run the program you just type count_em -> vagyis terminálban kiadom a parancsot.
5. and it will list the numbers of all files in the current directory and subdirectories by directory, with the highest count last. Very handy!
Ezzel készen is leszek? Ez nem csak egy listát fog kiadni? -
... Mivel jobb nem jutott eszembe, bemásoltam a kódot a terminálba (Ctrl+Shift+C-vel) mire föl lefutott a script ... root@gabor-desktop:~# rm -f /tmp/count_em_$$
root@gabor-desktop:~# df -h
Fájlrendszer Méret Fogl. Szab. Fo.% Csatol. pont
/dev/sdb5 15G 12G 2,2G 84% /
udev 492M 4,0K 492M 1% /dev
tmpfs 200M 1,2M 199M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 499M 152K 499M 1% /run/shm
cgroup 499M 0 499M 0% /sys/fs/cgroup
root@gabor-desktop:~# df -i
Fájlrendszer Inode-ok IFogl ISzab. IFo.% Csatol. pont
/dev/sdb5 956592 954693 1899 100% /
udev 125860 509 125351 1% /dev
tmpfs 127682 460 127222 1% /run
none 127682 4 127678 1% /run/lock
none 127682 6 127676 1% /run/shm
cgroup 127682 9 127673 1% /sys/fs/cgroup
root@gabor-desktop:~#
ugyan ott tartok mint előtte :( ... a csomagkezelő nem működik ...