Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I would like to copy a file from some random folder and send to a "Test" folder in root directory. But I havn't found how to specify the root ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2

    Smile Short specification of root director for copy command

    Hi,

    I would like to copy a file from some random folder and send to a "Test" folder in root directory. But I havn't found how to specify the root directory without using ../ until i reach the root directory.

    i.e. suppose I'm in my random folder where I want to copy my file

    sudo cp somefile.txt (root???)/Test

    what do i put for root?


    Just as additional explanation, if I have a Test folder in my home directory that i wanted to transfer to, then i could simply do
    cp somefile.txt $HOME/Test


    Thanks,
    Alexander

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    The root directory is /

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2
    thank you sir

    i actually tried it before... but i accidentally named my Test folder the lower case "test" folder which is why it didn't work the first time :S

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...