Displaying Directory Contents Including Subdirectories; Copying An Existing Directory - Alcatel-Lucent OmniSwitch 6850-48 Management Manual

Release 6
Hide thumbs Also See for OmniSwitch 6850-48:
Table of Contents

Advertisement

File and Directory Management

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
directory contains a directory named newdir1. Be sure to include a space between
-> 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
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 /flash/working flash/certified/working
Working Directory
(Files)
boot.cfg
Kbase.img
Ksecu.img
page 1-12
Flash Directory
newdir1 Directory
boot.cfg
Kos.img
Krelease.img
Ksecu.img
OmniSwitch AOS Release 6 Switch Management Guide
ls
-r command where the /flash/working
cp
-r command.
cp
-r command will work.
Certified Directory
(Files)
Working Directory
(Files)
newdir1 Directory
boot.cfg
Kbase.img
Ksecu.img
Managing System Files
ls
and -r.
September 2009

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents