answersLogoWhite

0


Best Answer

'dir <directory>' Read the 'dir' manual with the command 'man dir'.

NOTE: The 'ls' command is more commonly used instead of 'dir'.

Below are some examples.

$ dir

Desktop Documents Music Pictures

$ dir Documents

test.txt test.odt test.pdf

$ dir /

bin etc lib lost+found opt run srv usr

boot home lib32 media proc sbin sys var

dev initrd.img lib64 mnt root selinux tmp vmlinuz

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

1.go to directory

CD <dir name>

2.ls

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Address of that directory.

Example: dir c:\

dir a:\

dir c:\windows

dir "c:\documents and settings"

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you add to the DIR command to list the contents of a directory that's not the cuurrent working directory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the command ls-al?

This command lists the contents of the current working directory in a long listing format, including normally hidden files.


What does the Al?

This command lists the contents of the current working directory in a long listing format, including normally hidden files.


How do you identify the working directory in Linux?

The command 'pwd' will identify the full path of the present working directory.


What is the Linux command for displaying a working directory?

The command pwd displays your current/present working directory.


What is the pwd command in Linux?

The pwd command prints the working directory. The working directory is the directory you are "in", where operations on files that don't have an absolute path specified will be performed. For instance, if my working directory is /home/username/stuff, then the command echo "test" > test.txt would place the file test.txt in that directory.


What Linux commands make your home directory the working directory?

the command 'cd ~' will get you there .


What is the output of the command file file in unix?

Assuming you had a file called 'file' in the current working directory it would try to guess what type of file it is, based on its contents.


How do you make your home directory the working directory?

Use the 'cd' command without any target; that always puts you in the home directory which becomes by default the working directory.


How do you find absolute path name of your home directory what is it on your system?

All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path


What command can you use to change the current working directory to the directory where the modules for the running kernel are stored?

cd /lib/modules/$(uname -r)


What command will display files starting from z in unix?

Use the command: ls z* for those files in your current working directory.


How do you change path in Linux?

You change the current working path directory in Linux by issuing the cd command, followed by the directory you want to change to. For example:cd /dev/inputwould take me to the that directory.