Skip to content

Instantly share code, notes, and snippets.

@sneetsher
Last active November 12, 2020 11:45
Show Gist options
  • Save sneetsher/34830aaab16b647f1b605124349fdc43 to your computer and use it in GitHub Desktop.
Save sneetsher/34830aaab16b647f1b605124349fdc43 to your computer and use it in GitHub Desktop.
Hints about some important commands for troubleshooting, prepared for Ask Ubuntu

File

locate ..
find .. -iname ..

Debian/Ubuntu Package

dpkg -s ..
dpkg -L
apt-cache policy ..:*
apt-cache info ..:*

Binary

env
echo $PATH

ldd ..
readelf -s ..
strace -e=all -o trace.log ..
ltrace ..

Commands

type -a ..
which ..
ls -l ..

Python

env | grep -i -e python -e path

type -a python{,2,3}
which python{,2,3}
ls -l $(which python{,2,3})

python -c "import sys; print('\n'.join(sys.path))"
python3 -c "import sys; print('\n'.join(sys.path))"

snap

snap info --verbose 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment