08-27-2002
hey John!
I can answer your first question but not the second one.
Actually you have to use following command to see all files startign with .(dot).
ls -al
after giving this command you can see the files start with dot(.)
-al swith tell shell to list(l) all files starting with including those files starting with .(a).
default is all files excluding .(dot) files.
Hope this will work.
Abid Malik
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
&& set -x && echo "enter tablespace_end_backup" >&2
Can you tell me what's mean above?
thanx (1 Reply)
Discussion started by: Lee
1 Replies
2. UNIX for Advanced & Expert Users
Dear Members;
I changed ,by mistake ,the root shell in /etc/passwd and logged out. Thereafter, I can no more have a prompt when trynig to log in as root.
How to solve this pb ?
Regards :confused: (8 Replies)
Discussion started by: oss
8 Replies
3. UNIX for Dummies Questions & Answers
What are the different type of shell available in UNIX and how to change the shell?
just this 2 question pls help mi (4 Replies)
Discussion started by: yeah016
4 Replies
4. Shell Programming and Scripting
hi,
can any one tell a solution for the following :
I want to append 10 spaces and a string say "ok" to 12 digit number which is stored in a varialbe & display using shell script. (1 Reply)
Discussion started by: Sandeep Kale
1 Replies
5. Shell Programming and Scripting
Hi all,
until yesturday grep command was running in KSH ....
I was executing this command
ls -l | grep *.sh
But today its not working at all ...
Should I check any of the setting ...
I am not getting whats the problem ...
I have relogged to unix box but it didn't... (14 Replies)
Discussion started by: dhananjayk
14 Replies
6. Shell Programming and Scripting
Hi,
My sheel script has below statement:
if; then
When I run iam getting the below error:
-bash: syntax error near unexpected token `then'
What is wrong with that statement:
Plz help me. (2 Replies)
Discussion started by: pradeep_script
2 Replies
7. Shell Programming and Scripting
Hello!
Can you please help me on a lab at school:
I have to to write a shell program which reads all .C files from the current directory and prints for each file how many '#define' directives it has and for each macro defined how many times is it used in that file.
Can you suggest how can i... (1 Reply)
Discussion started by: dark_knight
1 Replies
8. Shell Programming and Scripting
hi...i create a script which reads data from file and compare that the data which is entered by me through keyboard...i can easily read first two contents of file..i am facing the problem to read other contents..
structure of my file is
username:password:username1:password1.......and so on
... (1 Reply)
Discussion started by: shubhig15
1 Replies
9. Shell Programming and Scripting
problem:
I give the source of a c program.. is required to indicate how many times is called each function defined in the program and line number
there is a call.
let's say i have lab2.c:
float dist(int *a,int *b,int n){
int i=0;
double d=0;
for (i=1;i<=n;i++){
d+=pow((a-b),2);
}... (4 Replies)
Discussion started by: sherpeledenis
4 Replies
10. UNIX for Dummies Questions & Answers
this picture for print You didn't do the question. Go back.
if $1 = 0
but until now it give me this message
what i should be do ?
http://img717.imageshack.us/img717/6137/eeevb.jpg (2 Replies)
Discussion started by: NeeZaaR
2 Replies
ncheck(8) System Manager's Manual ncheck(8)
NAME
ncheck - lists i-number or tag and path name for files in a local file system.
SYNOPSIS
/usr/sbin/ncheck [-i numbers] [-asm] file_spec [file_spec...]
PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the
name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the
mnt_point field of the file system's entry in the /etc/fstab file.
You can also specify a UFS file system by entering the name of its device special file. For example: /dev/disk/dsk3c.
You can also specify an AdvFS fileset by entering the name of the file domain, a pound sign (#) character, and the name of the file-
set. For example: root_domain#root.
FLAGS
Includes in the list the path names . (dot) and .. (dot dot), which are ordinarily suppressed. Lists only those files with the specified
i-numbers (UFS) or tags (AdvFS). If you enter a zero (0) all allocated numbers will be displayed. Includes in the list the mode, UID, and
GID of the files. To use this flag you must also specify either the -i or the -s flag on the command line. Lists only the special files
and files with set-user-ID mode.
DESCRIPTION
The ncheck command with no flags generates a list of all files on every specified file system. The list includes the path name and the
corresponding i-number or tag of each file. Each directory file name in the list is followed by a /. (slash dot). Use the available flags
to customize the list to include or exclude specific types of files.
The files are listed in order by i-number or tag. To sort the list in a more useful format, pipe the output to the sort command.
NOTES
The term file_spec represents either a UFS file system or an AdvFS fileset.
To uncover concealed violations of security policy, that is, the inappropriate use of the set-user-ID mode, issue the command with the -s
flag to list only special files and files with set-user-ID mode.
RESTRICTIONS
You must be the root user to use this command.
The ncheck command checks the /etc/fstab file for the specified domain and file system entry. If there is no entry in /etc/fstab for the
specified file system, an error message is displayed to indicate that the file does not exist.
DIAGNOSTICS
When the file system structure is improper, ?? (question mark question mark) denotes the parent of a parentless file. A path name begin-
ning with ... (dot dot dot) denotes a loop.
ERRORS
The ncheck command can be used only for checking local file systems. The "nnn" string identifies the file system type.
FILES
Specifies the command path
RELATED INFORMATION
sort(1), quot(8). delim off
ncheck(8)