cat /dev/null >| filename
Does anyone know any other commands to achieve the same thing in linux?
cat /dev/null >| filename
echo "" > filename
:> filename
>filename
rm filename && touch filename
cat /dev/null > filename
truncate -s0 filename
cp /dev/null filename
""is a character #13 or #10 which is invincible to human eyes.
echo "" > filename
rm filename && touch filename
Edited by PiNoY, 30 May 2012 - 08:01 AM.
|
Linux
Help & Discussion Center →
Software & PC Support →
Internet, Network & Security →
Microphone ain't working in TSStarted by parrot, 16 Apr 2013 |
|
|
|
|
Help & Discussion Center →
Software & PC Support →
Internet, Network & Security →
need help in using mtrStarted by rajaah thunder, 27 Mar 2013 |
|
|
|
|
Linux
Help & Discussion Center →
Software & PC Support →
Linux for a laptopStarted by Wizbang, 31 Jan 2013 |
|
|
|
|
PC Gaming - Discussion →
Enemy Territory Discussion →
ET Support →
The old problem with sound on Linux.Started by Jormehara, 26 Jan 2013 |
|
|
|
|
Linux
Help & Discussion Center →
Software & PC Support →
Pc logout when quit et. debian wheezy/sid Linux 2.6.39-2-686-paeStarted by Narug0, 03 Dec 2012 |
|
|
0 members, 0 guests, 0 anonymous users