[ask]cara cari nama file/data lewat terminal

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
Newbie_Pinguin
Posts: 28
Joined: 02 Jan 2011, 17:39
Location: depok city

[ask]cara cari nama file/data lewat terminal

Postby Newbie_Pinguin » 05 Jan 2011, 23:47

selamat malam kk..
sya mo tanya ,klo mau cari nama file/data lewat terminal perintahnya apa kk, tapi perintahnya langsung cari ke seluruh isi hardisk.

trims..
User avatar
aptfast
Posts: 3847
Joined: 03 Jan 2010, 23:38
Location: Jakarta, Indonesia
Contact:

Re: [ask]cara cari nama file/data lewat terminal

Postby aptfast » 05 Jan 2011, 23:59

coba whereis
tanpa kurung siku
User avatar
Newbie_Pinguin
Posts: 28
Joined: 02 Jan 2011, 17:39
Location: depok city

Re: [ask]cara cari nama file/data lewat terminal

Postby Newbie_Pinguin » 06 Jan 2011, 00:48

aptfast wrote:coba whereis
tanpa kurung siku


ga bisa kk hasilnya seperti ini ??

Code: Select all

cyberatorium@ubuntu:~$ whereis newbie.txt
newbie:
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ask]cara cari nama file/data lewat terminal

Postby thrvers » 06 Jan 2011, 03:20

'
mlocate:
$ sudo updatedb
$ mlocate newbie


find:
$ find /home -iname "*newbie*"

= CMIIW =
User avatar
aptfast
Posts: 3847
Joined: 03 Jan 2010, 23:38
Location: Jakarta, Indonesia
Contact:

Re: [ask]cara cari nama file/data lewat terminal

Postby aptfast » 06 Jan 2011, 07:31

Newbie_Pinguin wrote:
aptfast wrote:coba whereis
tanpa kurung siku


ga bisa kk hasilnya seperti ini ??

Code: Select all

cyberatorium@ubuntu:~$ whereis newbie.txt
newbie:


file nya ga ada kali
coba pake cara nya bro thrvers
User avatar
Newbie_Pinguin
Posts: 28
Joined: 02 Jan 2011, 17:39
Location: depok city

Re: [ask]cara cari nama file/data lewat terminal

Postby Newbie_Pinguin » 08 Jan 2011, 02:56

aptfast wrote:
Newbie_Pinguin wrote:
aptfast wrote:coba whereis
tanpa kurung siku


ga bisa kk hasilnya seperti ini ??

Code: Select all

cyberatorium@ubuntu:~$ whereis newbie.txt
newbie:


file nya ga ada kali
coba pake cara nya bro thrvers


ada ko kk, malah filenya sengaja saya buat, buat ngetes.tapi tetap tidak bisa.
thanks kk dah di bantu

klo pake cara nya kk thrvers, bisa.tapi hanya bisa mencari di partisi Ubuntu saya saja.tidak bisa menemukan di partisi wind*s saya.kecuali jika di arahkan ke partisi wind*s'nya

ada cara lain ga kk agar bisa langsung menemukan file yg ingin saya cari langsung scan ke sluruh partisi di PC saya lewat perintah di terminal.

thanks.
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: [ask]cara cari nama file/data lewat terminal

Postby blackshirt » 08 Jan 2011, 04:50

ada ko kk, malah filenya sengaja saya buat, buat ngetes.tapi tetap tidak bisa.
thanks kk dah di bantu

iya, karena
whereis - locate the binary, source, and manual page files for a command


:grin:
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: [ask]cara cari nama file/data lewat terminal

Postby c0jack » 08 Jan 2011, 17:50

coba cmd pake ini, tapi sebelum itu mount dulu partisi windows-nya

Code: Select all

sudo find / -name newbie.txt -print

regards,
c0jack
User avatar
akunp2
Posts: 37
Joined: 10 Jan 2011, 10:00
Location: bandung

Re: [ask]cara cari nama file/data lewat terminal

Postby akunp2 » 15 Jan 2011, 14:14

pake find aja
User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: [ask]cara cari nama file/data lewat terminal

Postby Sudoers » 09 Mar 2011, 10:30

sudo su -
updatedb
cd /
locate yourfilename

selain locate bs pake perintah2 diatas.

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 7 guests