answersLogoWhite

0


Best Answer

You can open any read-only file in Unix assuming that you have the read permission. Any utility or program that can get access to that file in read mode can open it, which would include programs such as 'more', 'less', 'vi', 'cat', etc.

Read-only merely means you can't change it; but you could copy it or look at it.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you open a read only file in Unix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do change a normal file to a hidden file in UNIX?

There are no actual "hidden" files in Unix. The only way to hide the existence of a file is to place it in a folder that no one has read permissions for.


How can you make a file in c language read only?

In UNIX: use function chmod


What is an open filecompared to open read-only and open as copy file?

open mms photo recieved


What is the purpose of profile in unix?

The .profile file is used to put any settings or changes to the login shell environment when you log in. This file is only read once during login.


Can you open a file in read only mode?

All major operating systems allow developers to write code that can open a file in a variety of different ways, including "r" or "ro" (read-only) "rw" (read-write), "w" (write-only), and "a" (append, like "w" but starts at the end of the file, preserving the previous contents). In these operating systems, applications may choose to open a file as "read-only", which prevents accidental modification of the file by logic errors in the code.


How do you read pz files in Unix?

I can't find any official reference to a 'pz' file - are you referring to a compressed PNG?


How do you open include file in c?

1. You (human) want to read an include file: use a text editor. 2. Your program wants to read a file: use open/fopen.


What is 000 in unix file systems?

It depends on where the 000 is being used. For permissions, it would indicate that the file or directory or device has no permissions at all. For the 'umask' it would indicate that all newly created files or directories would have wide open permissions (world read, world write, etc.).


How do you read from file in unix shell script?

You will have to be more specific about what you intend to do. In general, a shell script by itself does not read file information and then do something with it. There may be calls to other scripting languages such as awk, perl, python, etc., that will actually read the information and process the data.


What are typical access rights that may be granted or denied to a particular user for a particular file?

Read, write, execute, and functions in software objects.


How do you extract the contents of a file in C?

Open it (open of fopen), read the data (read or fread), then close it (close or fclose).


How do you change a read only file into a read write file?

To change a read only file into a read write file, first find the file to be edited. Then right click the file and click on properties. Next, click the general tab and clear the read only check box. Lastly, click on the OK button.