
e) In the context of Unix file system , what does "path" means?
f) Write down the absolute path for the main.cpp in the timeproj directory
g)Write down the relative path from inside timeproj directory to the prgm1.cpp file
h)Write down the Unix commands and key strokes needed to create a new sourcefile named time.cpp and then save it to disk using the pico editor.
i) In Unix each file has three access modes, namely r,w, and x.
1) Write down the unix command that displays the file access mode for all files in your current folder
2) If the access mode for a file is shown as rw-rw-r, describe the meaning of each of the nine characters
Thanks for your help. I would vote like when answered..
Ans e)A path defines the location of a file or folder in a
computer's file system.
It is the route of a particular file through a file system .They
are also called "directory paths" because they often include one or
more directories that describe the path to the file or folder.
As another prospective , PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which directories to search for executable files in response to commands issued by a user.
Ans f)Absolute path for main.cpp is :
cd /home/juliet/programs/timeproj/main.cpp
Ans g)Relative path for prgm1.cpp from current position is
:
cd ../../../../romeo/programs/prgm1.cpp
Ans h)To create a file : pico filename
When you finish editing your file, press <^x> to save and
exit PICO.
Ans i)
1)The command : ls -l , will list all the files of the current
directory with access mode.
2)rw-rw-r means:
The first three characters ("rw-") describe the permissions of the
owner of the file: read and write, but no execute. The next three
characters ("rw-") describe the permissions for those in the same
group as the owner: read, write, but no execute. The last three
characters (r--)describe the permissions for all others: read, no
write, no execute.
e) In the context of Unix file system , what does "path" means? f) Write down...