check_latest_version && sudo apt update && sudo apt upgrade -y
Verify what type of file you are working with:
file /path/to/item
ls -la /path/to/item
stat /path/to/item
Use appropriate commands for file type:
cat filename
ls -la directory/
cd directory/
Correct the path to point to directory:
dirname /path/to/file
basename /path/to/file
ENOTDIR occurs when a directory operation is attempted on a file that is not a directory.
ls -ld /path/to/item
readlink -f /path/to/item
find /path -type d -name "dirname"
namei -l /full/path