Mar 13, 2014 at 11:06pm UTC
i am in a sub directory called "Run" and above it is "Pro" and above pro is "mid" i have some files in a folder called "D4" and above that is a next folder called "D2" which is a sub to "mid" how could i use relative to copy a file from "D4" if am in "run"
i tried to use cp run/pro/mid/D2/D4/filename and nothing happens?? help please
Mar 14, 2014 at 1:22am UTC
. = current directory
.. = parent directory
so what you would want to run (assuming you are in run):
cp ../../D2/D4/the_file ./the_file
Mar 14, 2014 at 3:29am UTC
no that didnt work this is the absolute way i did cp from that folder cp ~/mid/d2/d4/file .
so its like this, the file is inside "D4" and am in "run" and want to use relative to copy from D4 to my current directory
..........................................................mid............................................................
............................................D2.........................pro.............................................
..........................D4.........................................................Run..............................
Last edited on Mar 14, 2014 at 3:30am UTC
Mar 14, 2014 at 5:42am UTC
thanks that work without
how can i list all files in the bin that consist of 2 characters where the first is range from a to d
Last edited on Mar 14, 2014 at 5:46am UTC