how to add a file to a zip, without including the entire path from root
location: linuxquestions.com - date: February 17, 2009
the following command works:
zip /var/www/html/ftp/zipdownloads/zipfile.zip /var/www/html/path/to/file1.png
But when I open the zip file on my desktop, the entire file's path-structure is saved inside the zip file so i have to go through 5 directories (var -> www -> html -> path -> to) to get to the file I zipped.
Is there a way to avoid this and have the file in the "root" of the zipfile?
thx + best regards,
Ubuntu 9.04: How to add to PATH?
location: ubuntuforums.com - date: June 8, 2009
I am trying to install application perl2exe on my system. When I run
on my system, I get this:
Please add the following directories to your PATH:
How to do this?
Thanks for the help.
How can i add directories to my path?
location: ubuntuforums.com - date: October 30, 2009
i don't have a .bash_profile
if i do:
where does it go?
although it gets effected i don't see the path in .bashrc either.
if i want to add a directory manully what should i do?
thank you very much.
11.10 how can add a dir to $PATH permanently
location: ubuntuforums.com - date: December 30, 2011
I can add a directory to $PATH temporarily. I would like to add a directory to $PATH permanently. I was reading trying to figure it out. I think I need to edit either ~/.bashrc or .profile but cant open with gedit. and there is no ~/.bash_profile like other sites suggest to edit.
to add it temperaly I..
[SOLVED] How to add /sbin to the system path
location: linuxquestions.com - date: July 5, 2012
I want to run any file from /sbin, /usr/sbin, /usr/local/sbin without specifying full path. Currently executables from these directories are not included. How can I do this?
no path show in ssh terminal after I add a new user
- date: July 2, 2009
I used useradd to add a new user and then after I ssh in using the new user, the terminal doesn't show the "[email protected]
/pwd" thing that feels very strange for me. How can I fix this?
P.S I m using ubuntu server 9.04
How to ADD XAMPP to my Command path
location: ubuntuforums.com - date: April 15, 2011
I have installed XAMPP to my Ubuntu.
Since I am using it quite frequently I have tried to add it into my command path by entering the following line into .bashrc
and it appeared in the console with the TAB key... however after i tryed
$sudo lampp start
i have received an error
$sudo: lampp: command not found
How to change (add to) library search path at runtime on Linux
location: linuxquestions.com - date: January 9, 2011
I'm writing an application with a plugin architecture and would like modify (specifically add to) the dynamic library search path while the main executable is running.
The plugin paths are not known until the application is running so I can't set LD_LIBRARY_PATH ahead of time.
My understanding (although I haven't tested it) is that the executable will only parse the LD_LIBRARY_PATH once, early on, so modifying this environment variable at runtime will have no effect.
(Note - on Windows the solution is to modify the PATH environment variable)
I know it's possible to specify the full path to load a dynamic library, and this would work if the plugin(s) only had a single library to load, but some of them will have a bunch of libraries with their own inter-dependencies, so I'd like the plugin folder(s) to get added to the search path to pick up the dependant libs.
Is there a proper technique to accomplish this on Linux?
Any guidance is appreciated.
[SOLVED] How to add include path to kernel module Makefile
location: linuxquestions.com - date: September 15, 2009
I have probably a stupid question. How do I add an include path for kernel module makefile? I want to include "test_kernel.h" in test_module.c
test_kernel.h resides in a different directory with relative path "../../common/" . I can include the file specifying the relative path, which works OK:
I would like include it without the relative path and specify path in Makefile similar to -I option available in application makefiles. I have tried EXTRA_CFLAGS += -I../../common/ in the makefile but no use. Any suggestions?
Java class path? bashrc? Ugh? Trying to install program. Help!
location: ubuntuforums.com - date: April 29, 2008
I'm trying to install this Java program called Jmusic ( http://jmusic.ci.qut.edu.au/index.html ) and I'm having trouble with the instructions:
"Place the jmusic.jar file and inst directories in your Java class path. This is usually done by editing your shell .*rc file (in OS X for example edit or create a ~/.cshrc file or in Linux a ~/.bashrc file) and add the location of the jMusic directories to the class path environment variable."
Say what? Ummm, I wish I was told what to enter in the terminal, but alas, no such luck. Does anyone know what exactly I have to do? The code for the Java class path? Code for the bashrc file?
Any help would be great!
Page: 1 2 3 4 5 6 7 8 9 10