Uh - not quite
I'm going to assume you did the right thing and either used 'su' or 'sudo'.
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt <== that assumes that the file 'xampp-linux-1.8.1.tar.gz' is in the PWD/CWD (current working directory)
The CWD when you open Terminal defaults to the 'home' folder for the current Linux/Unix user. You have to navigate form there.
if the files is actually on your Desktop, find its absolute path using your file manager
the path is likely to be: /home/yourlinuxusername/Desktop
- Code: Select all
tar xvfz /home/yourlinuxusername/Desktop/xampp-linux-1.8.1.tar.gz -C /opt
OR your could use the 'cd' command if your prompt is [linuxusername@localhost ~]#
- Code: Select all
cd ./Desktop
[linuxusername@localhost Desktop]# sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
That will work because you are in the Desktop folder so the path is presumably not needed. You can always add ' ./ ' to the start of a filename to mean, starting from 'this' folder.
If you want to use Linux for 'server' stuff you will need to learn how to use the Linux command line interface, and the basic bash/shell commands. This one is not fancy, and not new - but the basics don't change:
http://faculty.cs.byu.edu/~rodham/cs240 ... uxdoc.htmlGood Luck