Tuesday, January 22, 2013

Trash di Terminal

RM mungkin sudah banyak yang tahu, namun mungkin sedikit yang sadar bahwa RM dalam linux itu sama seperti SHIFT+DELETE dalam Win***.
Nah, gimana nih klo kita mau menghapus sementara yang artinya file/folder tersebut memang tidak kita butuhkan kembali namun mungkin sewaktu-waktu mau kita restore. Permasalah tersebut dapat kita atasi dengan cara trash (win: Recycle bin). Saya yakin bagi anda yang sudah kenal Linux, pasti gak asing dengan tempat penitipan sementara itu (baca Trash). Caranya yang simple dalam GUI Linux memang hanya dengan klik kanan, delete. Namun tahukan anda bahwa trash tersebut juga bisa kita operasikan via Terminal?? Woke berikut oprekannya,,

1. Instal paket trash-cli
# apt-get install trash-cli

2. Hapus file dengan trash 
# trash /home/rijalhanif/modul_igos_trainn2013.pdf

3. Tiga utilitas penting, list-trash, restore-trash, empty-trash

4. Cek file apa saja yang ada dalam KOTAK Trash,
# list-trash

2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
2013-01-22 10:33:33 /home/jaya/sample
2013-01-22 10:33:33 /home/jaya/sample1
2013-01-22 10:33:33 /home/jaya/sample2


5. Restore file 
# restore-path


   0 2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
   1 2013-01-22 10:33:33 /home/jaya/sample
   2 2013-01-22 10:33:33 /home/jaya/sample1
   3 2013-01-22 10:33:33 /home/jaya/sample2

What file to restore [0..3]:

Isikan nomor berapa file yang akan direstore [0..3]??

6. Mengosongkan KOTAK Trash
# empty-trash
# list-trash (hasilnya kosong)

--semoga bermanfaat

3 comments:

  1. Quality content is the main to attract the viewers
    to visit the web site, that's what this site is providing.

    Take a look at my web blog: http://sherwood.iupdhc.org
    My blog : Was ist das ausgezeichnete an der Zöliakie Diät

    ReplyDelete
  2. I'm gone to tell my little brother, that he should also pay a visit this website on regular basis to get updated from most recent news update.

    Take a look at my website :: einführung wordpress deutsch

    ReplyDelete
  3. You need to take part in a contest for one of the finest websites on the net.
    I most certainly will recommend this website!

    My website: abnehmen mit diätplan

    ReplyDelete

Silahkan beri komentar ya.. :-)