command line linux mengurutkan file berdasarkan time

Bagaimana mengurutkan file pada terimal / console  berdasarkan time / tanggal modifikasi.

Bismillah

q> Buka terminal dengan kombinasi tombol ctrl + alt + t

q> ketik man ls

q> baca ….

q> ketemu -t

-t sort by modification time, newest first

q> dan ketemu -r

-r, --reverse  reverse order while sorting

q> mengurutkan file berdasarkan waktu modifikasi

ls -lt

akan mengurutkan file dari yang terbaru (ter-new) ke yang terlama (ter-old)

q> Nah lho,, lha piye nek njaluk sing lawas disek lagek sing nyar, mode on
q> Nah am, kayapa jua mun handak maurutakan nang lawas dahulu imbah to nang hanyar

q> Pakai -r broo

ls -ltr

Alhamdulillah

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

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 / Change )

Twitter picture

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

Facebook photo

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

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s