Hot answers tagged

6

First component here means an element of the path. Example : /home/user/.ssh => <component1>/<component2>/<component3> 1- Suppose we have a directories structure like this : lols ├── lol ├── lol1 -> lol └── lol2 -> lol1 And also the non-existent directory here will be lols/lol3 So you can compare the output of each command : ...


3

This is meaningful for links following a route over more than one hops until their final target. For example: touch test_file ln -s test_file test_link ln -s non_existing_target dead_link ln -s test_link link1 ln -s dead_link link2 In the above, link1 is finally linking to a file, through test_link, so -f and -e would give the same result. link2 is ...


2

For obvious reasons, from the client, you can't have access to files outside of what the server is setup to share with you. But if you have control over the SMB server, then you could set the wide links = Yes option in its config file. Not advisable though.


1

I'll answer this for Zsh, since that's what I'm using. To get the effect you want with .. when using cd, simply add the following to your ~/.zshrc file: setopt NO_chase_dots NO_chase_links Documentation here: http://zsh.sourceforge.net/Doc/Release/Options.html#index-CHASEDOTS For all other cases, instead of .., you will need to use the :h ("head"...


1

The .so symlink with no version number, used by the linker, is generally created as part of the library install process. I.e., by the project's Makefile, or CMake, or some other build tool. Distributions typically split libraries into separate runtime and development packages. The un-versioned .so goes into the dev package because it's only used when ...


1

You need to use the directory path in the target destination #!/bin/bash # src='/source_dir' dst='/destination_dir' inotifywait -r -m "$src" --format '%w%f' -e CREATE,MOVED_TO | while IFS= read -r item do # echo "Got $item" if [[ ! -d "$item" ]] then echo mkdir -p "${item%/*}&...


1

/etc/X11/xorg.conf.d/* is supposed to be system-wide configuration, as it affects how the X server uses the hardware. If you are using a GUI-style login, then the X server needs to start before login in order to display the login box. If your home directory is encrypted (e.g. using pam_mount or similar), then the home directory won't be readable yet when the ...


Only top voted, non community-wiki answers of a minimum length are eligible