Posts Tagged ‘command’

Argument list too long

ปัญหาแบบนี้

$ mv item_display/* ../item_display/
bash: /bin/mv: Argument list too long

แก้โดย

find /path/to/file -type f | xargs -i mv “{}” /path/to/move

หรือ

find /path/to/file -type f -name '*' -exec mv {} /path/to/move/. \;

หรือแบบยากๆเลย

http://www.linuxjournal.com/article/6060

Posted: March 18th, 2013
Categories: how-to, linux
Tags: ,
Comments: No Comments.

hard drive speed test with dd command

# dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output
10240+0 records in
10240+0 records out
83886080 bytes transferred in 2.227896 secs (37652602 bytes/sec)

 

ps. my poor MK8034GSX

Posted: March 8th, 2012
Categories: how-to, linux
Tags: , ,
Comments: No Comments.

sudo: timestamp too far in the future

จดไว้สักหน่อย

เมื่อเจอ เหตุการณ์แบบนี้

$sudo

sudo: timestamp too far in the future: Jun 17 08:17:55 2006

ให้ใช้คำสั่งนี้แก้

$sudo -k

จบ.

Posted: June 21st, 2008
Categories: how-to, linux
Tags:
Comments: No Comments.