![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Odd .sh behavior in script | robertmcol | UNIX for Dummies Questions & Answers | 2 | 02-10-2008 10:22 AM |
| sed behavior on hp-ux | andy2000 | Shell Programming and Scripting | 8 | 05-04-2007 09:23 PM |
| ltoa Behavior | charitonca | HP-UX | 2 | 07-13-2006 06:29 PM |
| Telnet behavior | piltrafa | UNIX for Dummies Questions & Answers | 4 | 10-31-2001 03:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ls behavior
I put this here because it is a 'behavior' type question..
I seem to remember doing ls .* and getting all the .-files, like .profile .login etc. But ls .* doesn't do that, it lsts the contents of every .*-type subdirectory. Is it supposed to? I should think that a -R should be given to dive into subdirs? All I have access to are Solaris, BSD and Linux, what is with the others? Atle ![]() |
|
||||
|
If I understand you question correctly
Your ls .* is finding the two directories . & .. (your current directory & the one a step back up the hierarchy) use ls -d .* to supress printing the contents of these. |
|
||||
|
Quote:
It is printing all the stuff in .xauth, .netscape, etc. Quote:
Alias set up instantly ![]() |
|
||||
|
Quote:
L miss those l, lc and ll and whatever they wre called. You reminded me to make them! If you want to have some more fun, I'm setting up a 'hackers corner' (hacker in the true sense of the word, of course, not as in 'intruder') at http://atle.linux-site.net it is a little cryptic, so it actually goes like this /cgi-bin/signon.cgi - signon /cgi-bin/manager.cgi - manage For the kind of people mention belov Unix only That is: and Atle |
|
|||||
|
I never knew I would miss ll and the others until I used HP-UX for the first time... Now, the first thing I do on a new system is set up my ls alias' !
Here's some other helpful ones: alias lr='ls -ltr' lsd () { ls -l $@|grep "^d" ; } alias emode='set -o emacs' alias vmode='set -o vi' Boy, do I love Unix! |
|
||||
|
& amen 2 that
Not to start a shell war, but what is your favourite shell? I've sort of rediscovered csh these days, it's really a shame that it seems to be losing out. if ($< == "q") echo "yes" is sort of 'natural' to a C programmer ... |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|