Tech and travel

Useful Linux commands

2013-05-12

Thus is just a list of useful Linux commands. Putting them here means I can always find them.

See the info of an uninstalled rpm :

`rpm -qip --provides an.rpm`

Check Linux is 64 bit:

`egrep -c ' lm ' /proc/cpuinfo`

Bigger than zero means 64 bit. Lm stands for Long Mode.

Check that a package is installed in Ubuntu :

`dpkg --get-selections | grep python`

Copyright (c) 2024 Michel Hollands