Making an Empty File
You may sometimes want to create a new, empty file as a kind of “placeholder.” To do so, give the name that you want to use for the file as an argument to touch.
To create the file `a_fresh_start’ in the current directory, type:
$ touch a_fresh_start [RET]
To create the file `another_empty_file’ in the `work/completed’ subdirectory of the current directory, type:
$ touch work/completed/another_empty_file [RET]
This tool “touches” the files you give as arguments. If a file does not exist, it creates it; if the file already exists, it changes the modification timestamp on the file to the current date and time, just as if you had used the file.
NOTE: Often, you make a file when you edit it, such as when in a text or image or sound editor; in that case, you don’t need to make the file first.
Vezi că dacă eşti pe o partiţie jmecheră, cum ar fi ext3, fişierul nu o să ocupe loc pe disc - va fi creat “sparse”. Dacă vrei să ocupe locul pe disc, try this:
Multumesc.
Da, e ext3. Vreau să-l pun în share pe hub-ul local, unde nu-ți verifică nimeni ce ai în share atât timp cât e ceva acolo, orice, numai să fie 5 Gb.
Ca să-l pun în share trebuie neapărat să fie pe hdd, nu?
Deci folosesc a doua “formulă magică”?
Bineînţeles că merge ...
Nu m-am lăcomit, mi-am “făcut” nişte iso-uri de Ubuntu pentru share
Faza la care nu mă aşteptam e că le hash-uieşte la fel ca pe alea reale.
Exista o explicaţie?
Pai am făcut cu metoda lu’ Dacu’, aia cu fisier “sparse”. E sau nu e pe hdd?
Eu zic că nu e, că am verificat și fișierul avea 2 Tb, ori n-am eu bani de un hdd de ăsta nici dacă vând tot ce am.
Și dacă nu e, cum le hashuiește?
Magic.