11-05-2005
identify whether idrectory or ordinary file
What are the different ways to identify a given file is an ordinary file or a directory?
Yes we can do it by giving the command :
ls -l <filename>
What else?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am newbie in unix and just started learning it. I want to know what is the difference between an executable file and a file (say text file). How to create executable file? What is the extension for that? How to differentiate ? How does it get executed?
Thanks (1 Reply)
Discussion started by: Balaji
1 Replies
2. IP Networking
Hello,
I'm going to use the remote tape via rsh , I think that all the necessary process have been done as below:
(suppose the machine name that want to use tape is : m1
& the source machine is: m2 )
1-in m2 machine i add: +
m1 in .rhosts... (8 Replies)
Discussion started by: nikk
8 Replies
3. Shell Programming and Scripting
hi all,
i have the next question:
how can i identify the type of a file? . I'm working in Unix (Solaris 5.7) and i would like identify if a file is or not is a "flat file". I need have a program what separates the flat file in a directory, and the excel file in another directory.
I must get... (1 Reply)
Discussion started by: DebianJ
1 Replies
4. HP-UX
Hi Mentors,
I have a unix box HPC8000 HPUX 11.11 had just a problem loging in on CDE
using ordinary account.
The problem looks like this when an ordinary account will login to it will automatically closed and the login promtp will appear.
If the root will login no problem at all.
I tried... (0 Replies)
Discussion started by: eykyn17
0 Replies
5. AIX
I'm trying to give a non-root user the right to start IBM HTTP Server, the web server is listening on port 80, but for AIX, ports under 1024 are privilege ports which can be used only by root.
/usr/IBMIHS/bin# ./apachectl start
(13)Permission denied: make_sock: could not bind to address :::80... (1 Reply)
Discussion started by: ibmer414
1 Replies
6. Linux
Hi,
Is it possible to grant root privileges to an ordinary user?
Other than 'sudo', is there some way under Users/Groups configuration?
I want ordinary user to be able to mount, umount and use command mt.
/Brendan (4 Replies)
Discussion started by: brendan76
4 Replies
7. UNIX for Dummies Questions & Answers
How to give an ordinary user the superuser (root) ID which is 0 (9 Replies)
Discussion started by: sharaola
9 Replies
8. Shell Programming and Scripting
find . -type fl
o/p is only the ordinary file. where in it wont give the link files. (2 Replies)
Discussion started by: nikhil jain
2 Replies
9. Shell Programming and Scripting
I have a very large system generated file containing around 500K rows size 100MB like following
HOME|ALICE STREET|3||NEW LISTING
HOME|NEWPORT STREET|1||NEW LISTING
HOME|KING STREET|5||NEW LISTING
HOME|WINSOME AVENUE|4||MODIFICATION
CAR|TOYOTA|4||NEW LISTING
CAR|FORD|4||NEW... (9 Replies)
Discussion started by: jubaier
9 Replies
LEARN ABOUT LINUX
deb-old
deb-old(5) Debian deb-old(5)
NAME
deb-old - old style Debian binary package format
SYNOPSIS
filename.deb
DESCRIPTION
The .deb format is the Debian binary package file format. This manual page describes the old format, used before Debian 0.93. Please see
deb(5) for details of the new format.
FORMAT
The file is two lines of format information as ASCII text, followed by two concatenated gzipped ustar files.
The first line is the format version number padded to 8 digits, and is 0.939000 for all old-format archives.
The second line is a decimal string (without leading zeroes) giving the length of the first gzipped tarfile.
Each of these lines is terminated with a single newline character.
The first tarfile contains the control information, as a series of ordinary files. The file control must be present, as it contains the
core control information.
In some very old archives, the files in the control tarfile may optionally be in a DEBIAN subdirectory. In that case, the DEBIAN subdirec-
tory will be in the control tarfile too, and the control tarfile will have only files in that directory. Optionally the control tarfile may
contain an entry for `.', that is, the current directory.
The second gzipped tarfile is the filesystem archive, containing pathnames relative to the root directory of the system to be installed on.
The pathnames do not have leading slashes.
SEE ALSO
deb(5), dpkg-deb(1), deb-control(5).
Debian Project 2006-02-28 deb-old(5)