[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

[quote=thrvers]'
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
:)