[ASK] Copy hasil perintah terminal secara otomatis

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
slaveman
Posts: 22
Joined: 25 Jan 2013, 16:47
Location: Di atas Bumi Diriku Berpijak

[ASK] Copy hasil perintah terminal secara otomatis

Postby slaveman » 26 Mar 2013, 14:27

Ane punya pertanyaan yg bikin ane penasaran sendiri gan,,
Misalkan ane lg di root terminal, klo ane ketik 'ls' pasti yang muncul hasilnya spt :
/bin
/boot
/dev
/etc
/home
dll....

yang mau ane tanya gimana ya supaya hasil dari perintah 'ls' tadi lsg bisa di save ke file txt / sejenisnya....
User avatar
nif
Posts: 2816
Joined: 31 Mar 2011, 07:48

Re: [ASK] Copy hasil perintah terminal secara otomatis

Postby nif » 26 Mar 2013, 14:30

pake redirect '>' atau '>>'
coba ini;
ls > cuma_file_biasa.txt
User avatar
slaveman
Posts: 22
Joined: 25 Jan 2013, 16:47
Location: Di atas Bumi Diriku Berpijak

Re: [ASK] Copy hasil perintah terminal secara otomatis

Postby slaveman » 26 Mar 2013, 15:22

koq ane coba access denied ya gan ?
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ASK] Copy hasil perintah terminal secara otomatis

Postby thrvers » 26 Mar 2013, 15:41

'
savenya jangan di root :D

# ls > /home/thrvers/Desktop/ls.txt

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests