How to place a file/folder in some folder of "File System"?

Asked by Navin Talati

Sir,

Some times to add some programe of Add-on etc. we need to incorporate or add some folder or file of that additional piece of programe into that specific basic programe's folder in the "File System". Simple operation of "cut-paste"or "copy-paste" is not workable for this. But I think there might be some specific commands for that. Please let me know which commands are these?

Let me quote an example:-
I installed "celestia" trough USC. Location of its all files and folders (of this installed "celestia") in File System could became known through the command " $ dpkg -L celestia-genome".T add spaecraft in the programe, I downloaded its .zip file (Shuttle_X-2010_NASDA.zip) from the concerned site and exacted it resulting a Folder (RS Shuttle X-2010 NASDA). In this folder, there is a ReadMe file giving istruction for installation and other relavent details. The installation instruction says:
-------------------------------------------------------------------
"....Installation:
Unzip the files and place the RS Shuttle X-2010 NASDA folder in your celestia extra folder.
The spacecraft is placed in orbit around the earth and venus......"
--------------------------------------------------------------------

I tried place this folder (RS Shuttle X-2010 NASDA folder) through "cut-paste"o and "copy-paste". But it could not be.

Would you please show me step-wise how this can be done?(along with necessary command lines)

A positive response is eagerly awaited.
Thanks in anticipation.
Navin Talati /22-11-2012

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Warren Hill (warren-hill) said :
#1

The most likely reason you can not make these changes is permissions. You almost certainly have the permissions but need to use these elevated privileges to use them via "sudo" or "gksudo"

There are two options open to you

1. Do it from a command line terminal using the "sudo" command for the commands that need it.

---

2. Open a terminal (CTRL+ALT+T) or run menu (ALT-F2) and enter the following command

gksudo nautilus

The file manager will open. If you have used the terminal do not close the terminal window.

Within the file manager you are now a super user and can make any changes you want. Be careful however, as the system is now trusting that you know what you are doing. If you make the wrong changes you can break your system. Once done close the file manager and, if its open, the terminal window. You are back to being a normal user and again prevented from changing certain parts of the system.

Revision history for this message
Navin Talati (n-m-talati) said :
#2

sir,
From your above reply, I understand that as per your suggestion's option # 01 is preferable and safe.
Would you please give me command linse for Unzip the files and place the RS Shuttle X-2010 NASDA folder in celestia extra folder?
thanks in anticipation.
Navin Talati / 25-11-2012

Revision history for this message
Warren Hill (warren-hill) said :
#3

Both methods work and its perfectly acceptable to use the graphical interface but since you have asked for command line instructions. Open a terminal CTRL+ALT +T and enter these one at a time. Copy and paste to avoid typing errors

---------------------------------------------------------
mkdir ~/qazxsw; cd ~/qazxsw
wget www.celestiamotherlode.net/creators/rsanders/Shuttle_X-2010_NASDA.zip
unzip Shuttle_X-2010_NASDA.zip
sudo mv "RS Shuttle X-2010 NASDA" /usr/share/celestia/extras
-------------------------------------------------------

This command will ask for your password there is no feedback but it is being accepted just type and press enter

------------------------------------------------------
cd ..; rm -r qazxsw
-----------------------------------------------------

Revision history for this message
Navin Talati (n-m-talati) said :
#4

Sir,
Output of above TWO commands sandwiched between two deshed linse are as under.
------------------------------------------------------------------------------------------------------------------------------------------------------
navin@navin:~$ mkdir ~/qazxsw; cd ~/qazxsw
navin@navin:~/qazxsw$ wget www.celestiamotherlode.net/creators/rsanders/Shuttle_X-2010_NASDA.zip
--2013-07-25 14:14:36-- http://www.celestiamotherlode.net/creators/rsanders/Shuttle_X-2010_NASDA.zip
Resolving www.celestiamotherlode.net (www.celestiamotherlode.net)... 152.19.134.41
Connecting to www.celestiamotherlode.net (www.celestiamotherlode.net)|152.19.134.41|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 272203 (266K) [application/zip]
Saving to: ‘Shuttle_X-2010_NASDA.zip’

100%[======================================>] 2,72,203 83.5KB/s in 3.2s

2013-07-25 14:14:42 (83.5 KB/s) - ‘Shuttle_X-2010_NASDA.zip’ saved [272203/272203]

navin@navin:~/qazxsw$ unzip Shuttle_X-2010_NASDA.zip
Archive: Shuttle_X-2010_NASDA.zip
   creating: RS Shuttle X-2010 NASDA/models/
  inflating: RS Shuttle X-2010 NASDA/models/nasdashuttle.3ds
  inflating: RS Shuttle X-2010 NASDA/ReadMe.txt
  inflating: RS Shuttle X-2010 NASDA/Shuttle.X-2010.NASDA.jpg
  inflating: RS Shuttle X-2010 NASDA/ShuttleX2010NASDA.ssc
   creating: RS Shuttle X-2010 NASDA/textures/
   creating: RS Shuttle X-2010 NASDA/textures/medres/
  inflating: RS Shuttle X-2010 NASDA/textures/medres/Panels5.jpg
  inflating: RS Shuttle X-2010 NASDA/textures/medres/ShutFin.jpg
  inflating: RS Shuttle X-2010 NASDA/textures/medres/ShutHull.jpg
  inflating: RS Shuttle X-2010 NASDA/textures/medres/ShutTail.jpg
  inflating: RS Shuttle X-2010 NASDA/textures/medres/ShutWing.jpg
navin@navin:~/qazxsw$ sudo mv "RS Shuttle X-2010 NASDA" /usr/share/celestia/extras
[sudo] password for navin:
navin@navin:~/qazxsw$
navin@navin:~/qazxsw$
--------------------------------------------------------------------------------------------------------------
navin@navin:~/qazxsw$ cd ..; rm -r qazxsw
navin@navin:~$ cd ..; rm -r qazxsw
rm: cannot remove ‘qazxsw’: No such file or directory
navin@navin:/home$
-------------------------------------------------------------------------------------------------------------------------------------------------------

Please guide further.
Navin Talati /25-7-2013

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

There seems nothing missing, you should already be able to see "RS Shuttle X-2010 NASDA" inside celestia.

Apparently you have tried executing the last command ("cd ..; rm -r qazxsw") twice, and of course it failed because at the first execution it deleted the qazxsw directory, and repeading the deletion command will fail, because the file/directory is already deleted.

You have to be aware that Linux in most cases just executes a given command, and does not provide any positive confirmation if the command completed successfully. Only if something fails, you will get a response.

Can you help with this problem?

Provide an answer of your own, or ask Navin Talati for more information if necessary.

To post a message you must log in.