[ask] command 'ls'

Tempat nongkrong. Diskusi bebas di luar topik.
User avatar
shinthux
Posts: 205
Joined: 25 Feb 2010, 20:09
Location: denpasar
Contact:

[ask] command 'ls'

Postby shinthux » 05 Nov 2010, 18:18

mw nanya nh para mastah sekalian
pas sy mw noba ngelist isi dari /usr/bin pke perintah
"ls -la /usr/bin"
yg keluar kok cm file yg berawalan huruf R-Z aja y
Trus yg A-Q ga kliatan (bukannya "ls -a" tu fungsinya bwt ngelist semua filw sampe yg hidden)
gmana caranya biar kliatan smua?

trims
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: [ask] command 'ls'

Postby MasDjo » 05 Nov 2010, 18:35

Itu karena yg sebelum r atau s gak kelihatan di terminal bro :grin:

coba dibatasi cuma a*
ls -la /usr/bin/a*

atau hasil output ls dijadikan ke file :
ls -la /usr/bin > ~/isiusrbin.txt
lalu buka file isiusrbin.txt tsb dg gedit ... :)
User avatar
shinthux
Posts: 205
Joined: 25 Feb 2010, 20:09
Location: denpasar
Contact:

Re: [ask] command 'ls'

Postby shinthux » 05 Nov 2010, 18:48

it works...
thanks atas infonya MasDjo...
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: [ask] command 'ls'

Postby thrvers » 05 Nov 2010, 18:50

'
dari manual ls:
NAME
ls - list directory contents

DESCRIPTION
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort.

jadi ls bukan buat lihat isi dari file :D

CMIIW
User avatar
shinthux
Posts: 205
Joined: 25 Feb 2010, 20:09
Location: denpasar
Contact:

Re: [ask] command 'ls'

Postby shinthux » 05 Nov 2010, 20:48

thrvers wrote:'
dari manual ls:
NAME
ls - list directory contents

DESCRIPTION
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort.

jadi ls bukan buat lihat isi dari file :D

CMIIW


bener bgt bang, "ls" tu emang bwt ngelist, bkn nampilin isi file...
biasanya sh sy pke "cat" ato "more" ato yg lain bwt nampilin isi file text...
cm sy bingung pas di list di /usr/bin kok ga semua isinya ditampilin di terminal tp cuma yg R-Z aja... hehe
maklum sy masih belajar...
makasih bgt infonya
CMIIW
:)
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: [ask] command 'ls'

Postby c0jack » 07 Nov 2010, 18:03

shinthux wrote:cm sy bingung pas di list di /usr/bin kok ga semua isinya ditampilin di terminal tp cuma yg R-Z aja... hehe

masalah batasan layar aja tuh, saking banyaknya file di direktori /usr/bin jadi kalo di tampilin memanjang kebawah layarnya ga cukup buat nampilin semua walau udah di scroll. solusinya cukup tambahkan opsi more

Code: Select all

ls -la | more

regards,
c0jack
User avatar
shinthux
Posts: 205
Joined: 25 Feb 2010, 20:09
Location: denpasar
Contact:

Re: [ask] command 'ls'

Postby shinthux » 07 Nov 2010, 21:18

makasi banyak bang cOjack...
baru pertama kali ngelist dengan isi sebanyak itu, hehe
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: [ask] command 'ls'

Postby blackshirt » 08 Nov 2010, 05:35

selain dengan more, bisa juga dengan less ...
User avatar
greenmintt
Posts: 255
Joined: 24 Oct 2010, 05:37
Location: Di bawah telapak kaki Ibu
Contact:

Re: [ask] command 'ls'

Postby greenmintt » 08 Nov 2010, 13:58

ijin nymak yah om :D

Return to “Pembicaraan Bebas”

Who is online

Users browsing this forum: Baidu [Spider] and 23 guests