move dirs

This commit is contained in:
2023-09-26 22:05:13 +03:00
parent 5414fa8538
commit 55d774e7d5
190 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/sh
# Check file exists
FILE=/etc/resolv.conf
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
fi
# OR
[ -f /etc/resolv.conf ] && echo "/etc/resolv.conf exists."
# Check directory exists
DIR=/etc/docker
if [ -d "$DIR" ]; then
echo "$DIR is a directory."
fi
# OR
[ -d /etc/docker ] && echo "/etc/docker is a directory."