Re: [Linuxcommand-discuss] finding hidden files
Brought to you by:
bshotts
|
From: Bruce B. <bbu...@ea...> - 2002-09-09 00:10:13
|
----- Original Message -----
From: "Steve Sanders" <st...@th...>
To: <lin...@li...>
Sent: Sunday, September 08, 2002 10:27 AM
Subject: [Linuxcommand-discuss] finding hidden files
Greetings all! I am new to the list so I apologize if this question is out
of place because it is too basic. I am taking a class at college on Linux.
We are completing a lab, and one of the questions was to determine how many
hidden files there are in the /etc directory. I found the answer using:
ls -a
I am just wondering if there is a way to just display the hidden files. I
tried using:
ls -a | grep .*
but it seemed to ignore the . and just display everything.
[ grep uses regular expressions, and the . dot means to
substitute one character for it.. It is a wild card...
escape the dot like so: \. ]
I tried several other things as well, but everything seemed to just ignore
the ".". So, does anyone know a way to just display the hidden files in the
/etc directory? Thanks for the help.
Steve
[Welcome Steve........
If you want to display the hidden files do:
$ cat /etc/.* then use Shift+PageUp/PageDown to
scroll back and forward....
If it is a really long list, pipe it to less:
$ cat /etc/.* | less
This is from the console.....I don't use X.
To get to a real console (instead of an Xterm) do
Ctrl+LeftAlt and F1-6, then login.
Bruce<+> ]
|