Answers for "check file path linux"

0

check file path linux

pwd
readlink -f howtouselinux
find / -type f -name “howtouseilnux”
import os;os.path.abspath(“howtouseilnux”)
Posted by: Guest on May-03-2022
0

how to check a path is file or director in shell script

#!/bin/bash
path="./file.sh"
if [[ -d $path ]]; then
	echo "$1 is a director"
fi
Posted by: Guest on April-18-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language