Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash if is symlink

if [[ -L "$file" && -d "$file" ]]
then
    echo "$file is a symlink to a directory"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: tempfile.temporarydirectory() 
Shell :: wsl settings 
Shell :: git alias - multiple commands 
Shell :: git merge with message 
Shell :: bash split a word into characters 
Shell :: genymotion install ubuntu 
Shell :: vlc doesnt open after install ubuntu 
Shell :: tmux kill all sessions 
Shell :: linux command to clean up log files 
Shell :: linux samba service 
Shell :: webpack install webpack config 
Shell :: hostname change inux 
Shell :: view available pips 
Shell :: shell script variable 
Shell :: print in shell script 
Shell :: bash read file content 
Shell :: uninstall nvidia x server ubuntu 
Shell :: boostrap install angular 
Shell :: fetch fork github 
Shell :: switch user in windows 10 
Shell :: delete a file in linux 
Shell :: anbox install google play store 
Shell :: list files of type txt from cmd 
Shell :: How can I remove the first line of a text file using bash/sed script? 
Shell :: git switch 
Shell :: solana create keypair 
Shell :: install express 
Shell :: rename remote branch in git 
Shell :: kubeadm get discovery-token-ca-cert-hash command openssl 
Shell :: git apply exclude file 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =