Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNU Stow #6

Closed
dmarcoux opened this issue Oct 26, 2015 · 2 comments
Closed

GNU Stow #6

dmarcoux opened this issue Oct 26, 2015 · 2 comments

Comments

@dmarcoux
Copy link

Hello,

I have one question about GNU Stow. I learned, thanks to you, how to use GNU Stow with the -t option like this stow -t / my_folder. I am wondering how can I unstow it? I tried stow -D my_folder and stow -D / my_folder, but it doesn't work. Do you have any idea how to do this?

Thanks!

@xero
Copy link
Owner

xero commented Oct 26, 2015

hey,
all you need to do is combine the arguments.

say you have this setup:

[/tmp/stowtest]── - tree ../
../
└── stowtest/
    └── bin/
        └── file

2 directories, 1 file

if you stow the bin folder:

[/tmp/stowtest]── - stow bin
[/tmp/stowtest]── - tree ../
../
├── stowtest/
│   └── bin/
│       └── file
└── file -> stowtest/bin/file

2 directories, 2 files

to remove use the D flag:

[/tmp/stowtest]── - stow -D bin
[/tmp/stowtest]── - tree ../
../
└── stowtest/
    └── bin/
        └── file

2 directories, 1 file

to stow to another location use the t flag with a target location:

[/tmp/stowtest]── - mkdir somewhere
[/tmp/stowtest]── - stow bin -t ./somewhere
[/tmp/stowtest]── - tree ../
../
└── stowtest/
    ├── bin/
    │   └── file
    └── somewhere/
        └── file -> ../bin/file

3 directories, 2 files

you can remove it by using both the D and t flags:

[/tmp/stowtest]── - stow -D bin -t ./somewhere
[/tmp/stowtest]── - tree ../
../
└── stowtest/
    ├── bin/
    │   └── file
    └── somewhere/

3 directories, 1 file
[/tmp/stowtest]── -

hope that helps

@xero xero closed this as completed Oct 26, 2015
@dmarcoux
Copy link
Author

It works well, thank you! Have a great day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants