ls

>The ls command is used to list the contents of directories. It takes this general form:

						ls [options] [directory-names]
					

If no directory names are given, it lists the files in the current directory.

Table A.3 shows some of the options that can be used with ls (note that these options are case sensitive).

Some ls Options
OptionMeaning
-aLists all files, including hidden files
-dReports only on a directory, not its contents
-fDisplays the directory contents in the current order, without attempting to sort
-lDisplays a long-format listing, which includes permissions, owner, size, and modification time
-nLike -l, but shows group ID numbers and user ID numbers rather than names
-tSorts files according to when they were modified (most recent first)
-xFormats in rows, going across the screen
-BIgnores backup files (those ending with a ~)
-RRecursively lists subdirectories, as well as the current directory
-XSorts by file extension

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.35.247