EasyManua.ls Logo

Alcatel-Lucent OmniSwitch AOS Release 6 - Displaying Directory Contents Including Subdirectories; Copying an Existing Directory

Alcatel-Lucent OmniSwitch AOS Release 6
346 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
File and Directory Management Managing System Files
page 1-12 OmniSwitch AOS Release 6 Switch Management Guide July 2010
Displaying Directory Contents Including Subdirectories
The ls -r command displays the contents of your current directory in addition to recursively displaying all
subdirectories. The following example shows the result of the ls -r command where the /flash/working
directory contains a directory named newdir1. Be sure to include a space between ls and -r.
-> ls -r /flash/working
Listing Directory /flash/working:
drw 2048 Oct 14 17:14 ./
drw 2048 Oct 14 17:12 ../
drw 2048 Oct 14 17:14 newdir1/
-rw 2636 Oct 12 11:16 boot.cfg
-rw 123574 Oct 14 10:54 Kbase.img
-rw 123574 Oct 14 10:54 Ksecu.img
Listing Directory /flash/working/newdir:
drw 2048 Oct 14 17:14 ./
drw 2048 Oct 14 17:14 ../
Copying an Existing Directory
The cp -r command recursively copies directories, as well as any associated subdirectories and files.
Before using this command, you should make sure you have enough memory space in your target direc-
tory to hold the new material you are copying.
Note. Your login account must have write privileges to execute the cp -r command.
In this example, a copy of the working directory and all its contents will be created in the certified direc-
tory of an OmniSwitch. The destination directory must exist before the cp -r command will work.
->cp -r /flash/working flash/certified/working
Flash Directory
Working Directory
(Files)
boot.cfg
newdir1 Directory
Certified Directory
Working Directory
(Files)
newdir1 Directory
(Files)
boot.cfg
Kos.img
Keni.img
Ksecu.img
Kbase.img
Ksecu.img
boot.cfg
Kbase.img
Ksecu.img

Table of Contents

Related product manuals