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
[sourcecode language="bash"]-t sort by modification time, newest first[/sourcecode]
q> dan ketemu -r
[sourcecode language="bash"]-r, --reverse reverse order while sorting[/sourcecode]
q> mengurutkan file berdasarkan waktu modifikasi
[sourcecode language="bash"]ls -lt[/sourcecode]
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
[sourcecode language="bash"]ls -ltr[/sourcecode]
Alhamdulillah
No comments:
Post a Comment