The output of your command "
basename lincmd.cgi
" is:
lincmd.cgi