Sponsored Content
Full Discussion: Help
Operating Systems Linux Help Post 302086738 by tookers on Sunday 27th of August 2006 07:34:30 AM
Old 08-27-2006
If you cd into your directory
cd /yourdirectoryname
then type
ls
you will see a directory & file listing of the current directory.
There are many more options with ls such as listed by date created, name etc.
As Carl mentioned, you can get a listing of your parent directory by typing
ls ../

You should also see a . and .. in your directory listing.
The . represents the current directory, and .. represents the parent directory.

Take this for example, cd /prg/tocc/scripts
I then want to run my script
[ prg/tocc/scripts#]./myscript
I use ./ as my script is in the current directory.

If, for example, I want to run my script but put my output to a text file in the parent directory, I would do the following.

[ prg/tocc/scripts#]./myscript > ../mylog.txt
 
NWDIR(1)							       nwdir								  NWDIR(1)

NAME
nwdir - Lists files in directory SYNOPSIS
nwdir [-h] [-v] [-l] [-t] [-d] [-e] [-f] [directory] DESCRIPTION
nwdir lists files, directories and their attributes from the specified NetWare directory. OPTIONS
-h -h is used to print out a short help text. -d List directories like other files, rather than listing their contents. -l Show filename in all available namespaces. -v Verbose listing, display everything possible. -e Display OS/2 Extended Attributes. -f List connections using each file. -t Show all informations (rights, attributes, file inodes) also as hexadecimal numbers. directory You can specify the directory to list. Current working directory is used by default. You have to specify path in Linux format, not in NetWare format. EXAMPLES
nwdir -t -v /NetWare/server/sys With this example, all files from directory /NetWare/server/sys are displayed. AUTHORS
nwdir was written by Milan Vandrovec. See the Changes file of ncpfs for other contributors. BUGS
Directory quotas are not displayed. User names are not taken from NDS, but only from bindery. nwdir 4/2/1998 NWDIR(1)
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy