[Linux]: Mencari file terbaru di directory

Desember 6, 2010 at 5:06 am Tinggalkan Komentar

Bagaimana mencari file yang terbaru di suatu directory linux ?

Masuk ke dalam directory yang mau dicari dan ketik perintah nya

 

ls -tr | tail -1

Ok, sekarang bila mau memindahkan file directory ke tmp misalnya

maka perintahnya

mv `ls -tr | tail -1` \tmp\newfile

 

Begitu, sekian terima kasih…

donairl

 

 

 

Entry filed under: linux, tips. Tags: .

Program android yang #1 Rsync dengan ssh custom port

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


 

Desember 2010
M S S R K J S
« Nov   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Kategori


Ikuti

Get every new post delivered to your Inbox.