Linux Terminal Icon

Linux Command to List all Linux Commands

by Dan

Linux is cool in many ways and sometimes funnier,One such good thing about Linux is you can find everything you want within a Linux.For example You can use a single Linux Command to list the set of Linux commands you can use.It is a built in function so you dot need to install any packages.

To list all the commands

compgen -c

Now the output might be something similar to below

bash
bzexe
dbus-daemon
sleep
chgrp
zcmp
chmod
ypdomainname
fusermount
dd
gzexe
grep
cp
mt-gnu
echo
dbus-uuidgen
mkdir
netcat
zmore
ntfs-3g.usermap
false
chvt
true

The no of commands you can use differ by various factors like user privilege level,External softwares installed etc.So in order to count number of commands you can use,type the following command

$ compgen -c | wc -l

the output will be similar to

2550

The above number gives the count of how many Linux commands I can use.Now grab your laptop and Try this cool command yourself

Do you know something similar to this command…why dont you share with us ?

Related Posts