Relative Pathnames


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Relative Pathnames
# 1  
Old 10-24-2015
Relative Pathnames

Hi,
Could anyone help me with the following questions about relative addressing.
The questions are:
1) Enter below the command to copy the file basics.pptto the folder outline, using relative addressing.
2) Enter below to move the file .secrets.doc to the folder Day1 using relative addressing.
Here is the tree that goes along with these questions:
~/lab3/uli101/outline/ -- marks
-- class
-- policy
/course/Day1/ -- presn1.ppt
-- lab1.doc
-- Lab2.doc
/course/day2/ -- basics.ppt
-- commands.doc
/course/Day3/ -- 1ans
-- 2ans
-- 3ans
/sales/ -- .proposal.txt
-- .secrets.doc
I am also having problems creating the files .proposal.txt ad .secrets.doc in Unix.
Thanks for the help.
ML
# 2  
Old 10-24-2015
Moderator's Comments:
Mod Comment Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

Please review the guidelines for posting homework and repost.

This thread is closed.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with cp command using relative path?

I have a lab I am doing for a Linux Operating class. The question I am stumped on is "For the following questions, only use the cp command to copy files. You should currently be inside your lab07 directory. Create a subdirectory inside this directory called ones and copy (working ... (1 Reply)
Discussion started by: CodyMongrel
1 Replies

2. UNIX for Dummies Questions & Answers

Relative column offsets

Ive been trying to slide the second column one line down while keeping the first one in place. For a start, I tried to see if I can go through every line and print the element located on the line below with the following command, but it didnt work. Maybe awk is not the right way to do it. Matlab... (6 Replies)
Discussion started by: Alabama
6 Replies

3. Shell Programming and Scripting

Relative path not safe

Hallo everyone, I am running an SQL-Script over KShell-Script. Thus, in the KShell-Script there are these lines: WORKPATH=$PWD/work EXPORTDIR=export_meine_datei_bitte EXPORTPATH=${WORKPATH}/${EXPORTDIR} ... db2 connect to ${DBNAME} || die "can not open database connection" db2... (9 Replies)
Discussion started by: ratnalein88
9 Replies

4. Shell Programming and Scripting

Search a directory for files that contain pathnames

Hello, I really don't know if this is possible, but I figured the wonderful users of unix.com may be able to provide me with some help/suggestions. I want to create a (bash) script that would go will accept an input file. That input file contains important information as well as pathnames. For... (4 Replies)
Discussion started by: tester213
4 Replies

5. Shell Programming and Scripting

tar and relative paths

HOw can I create a tar file with relative paths find . -depth -print | xargs tar -cvf /tmp/file.tar ? Thanks to all who answer (1 Reply)
Discussion started by: BeefStu
1 Replies

6. Shell Programming and Scripting

how to read the relative path

suppose i ahve a shell script Nsdnet.sh inside a directory /dialp/Release/bin another file nsdnet_file.csv is under the same directory. Now in the shell script i have call a java file, which reads the csvfile from the commandline. Now when i run the file as $ ./Nsdnet.sh ./nsdnet_file.csv then... (5 Replies)
Discussion started by: priyanka3006
5 Replies

7. UNIX for Dummies Questions & Answers

problem with relative pathing

Hi all, My directory structure is as follows home /md/DEV/SCRIPTS/DAILY and home/md/DEV/MIS/LANDING so this command find home/md/DEV/MIS/LANDING -name MIS_Customer_\* is giving me the desired output ... (1 Reply)
Discussion started by: rajarp
1 Replies

8. UNIX for Dummies Questions & Answers

get cygpath to leave relative paths as relative?

If I execute mypath=`cygpath -w ../` echo $mypath I get d:\unix\nextVersion\script OK, d:\unix\nextVersion\script is the correct windows version of the path, but it is in absolute form. I would prefer it if cygpath left it in relative form, i.e. echo $mypath should output ..\ ... (0 Replies)
Discussion started by: fabulous2
0 Replies

9. UNIX for Dummies Questions & Answers

Finding absolute pathnames longer than 100 characters

Please help. This simple problem is really stumping me. Is there are way to find absolute pathnames for all files on your system that are longer than 100 characters? I'm using bash shell to attempt it, but have come up with nothing so far. I appreciate any help offered. Nauty (2 Replies)
Discussion started by: nauty
2 Replies
Login or Register to Ask a Question