Re: Changing Your Shell - Was: Learning What I Need To Know About Basic Linux

  • From: "Bill Gallik" <BillGallik@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 30 Jul 2010 10:40:02 -0500

You can list all files via the following command:

       ls -a

If you want to get a complete listing of all files at and below a given directory structure you can use the "find" command as follows:

       cd to_desired_directory
       find . -print  # There's a "." (dot) after the word "find" here

You'll want to use the dot "." instead of the asterisk "*" so all files (even those beginning with a dot) are printed

If you want to print only:

directories: include the "-type d" argument
non-directory files: include the "-type f" argument
executable files: use the "-type x" argument
writable files: use the "-type w" argument
readable files: use the "-type r" argument

There's a small handbook masquerading as a manual page on the find command. And yes, "find" is a highly abnormal command in Unix/Linux given the argument list.
----
Holland's Person, Bill
E-Mail: BillGallik@xxxxxxxxxxxxxx
- The early bird may get the worm, but the second mouse gets the cheese!
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: