[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: help.png (7 KB, 187x201)
7 KB
7 KB PNG
how do i make a symbolic link for software thats group with files like dwarf fortress
>>
>>106977019
what?
>>
>>106977019
link the folder?
>>
>>106977019
saar you must not play df, you must scame google gift card saaaar
>>
>>106977019
no idea, hard/soft links and $PATH all run the file at the location you are at (otherwise ls would only work in /usr/bin)

if you're just trying to create a shortcut to run an executable in another place you could do a bash script
 #!/bin/bash
cd /whatever/path/to/your/
./thing
>>
>>106977019
read LFH
find out where user files go
copy dwarf fortress folder there
make symbolic link of launcher
copy symlink into /usr/bin/ folder
run df from terminal
>>
>>106977019
if you have a normal distro (which adds user bin to $PATH, make a /home/user/bin
then use ln to make a symbolic link:
ln -s ~/some/place/with/df/run_df ~/bin/df

log out and log in
>>
>>106977554
2:
look in ~/.profile to find something like this or add it if you dont have any lines which add ~/bin to path.
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
>>
>>106978368
>>106977019
obviously $
>>
needs to be defined
>>
>>106977019
sorry maybe confusing.

'echo $HOME' to see if it correctly gives you your homedir

if it does, then you can use >>106978368
without modification.
if not, just replace $HOME with the actual home dir.
make sure "bin" exists in home dir and then do "ln" with your dirs
>>106978336
then log out and in
you can probably just "source ~/.profile" insead of logging out
>>
>>106977330
this works thank you anon and thanks all of you guys two
>>
>>106978368
obviously, i was thinking on a larger scale, to make a folder with a lot of data accessible accross the whole system (for other users), not just a single user setup.

otherwise, yeah, your way works ez.
plus you can add a . in the file name to make it hidden.

but if you want a program with a lot of loose files like OP mentioned, putting the folder in the /usr/bin folder would be better (for a system wide install)



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.