linux list available commands code example
Example 1: linux get available commands
compgen -c will list all the commands you could run.
compgen -a will list all the aliases you could run.
compgen -b will list all the built-ins you could run.
compgen -k will list all the keywords you could run.
compgen -A function will list all the functions you could run.
Example 2: linux commands list
//The syntax to combine 2 files is
cat file1 file2 > newfilename