There are hundreds of Linux commmand line commands out there. Here I will attempt to give you the most important basic ones. These commands can be typed at any terminal prompt . Note, many of them require you first be logged in as root (su) before you can issue them. I have placed them in alphabetical order using a MySql database. Please let me know, if you feel I have left out your favorite most used command, by clicking here.
Note, if you are familiar already with Linux or UNIX commands and want a good source for comparing the same command on various platforms (Linux, Solaris, HP-UX, MAC OSX, etc.), please go to the rosetta stone.
|Python 2.6.6: /usr/bin/python|
Fri Mar 23 16:30:57 2018
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/convertt/public_html/sbc/commands.cgi in |
| 87 #Call Function to Print out Data Base initializing Querystring|
| 88 queryis = "SELECT Name_command, Text_command FROM Commands_tb ORDER BY Name_command ASC"|
| 89 PrintDataBase("localhost", "convertt_user1", "linux|01", "convertt_Commandsdb", queryis )|
| 90 print '<a href ="http://converttolinux.com/index.shtml"> Return to entry page. </a>'|
| 91 print|
|PrintDataBase = <function PrintDataBase>, queryis = 'SELECT Name_command, Text_command FROM Commands_tb ORDER BY Name_command ASC'|
|/home/convertt/public_html/sbc/commands.cgi in PrintDataBase(hostname='localhost', username='convertt_user1', passwd='linux|01', databasename='convertt_Commandsdb', querystring='SELECT Name_command, Text_command FROM Commands_tb ORDER BY Name_command ASC')|
| 25 # Assume Database has two columns of information.|
| 26 def PrintDataBase( hostname, username, passwd, databasename, querystring ):|
| 27 conn = MySQLdb.Connect( hostname, username, passwd, databasename)|
| 28 |
| 29 # Run a MySQL query from Python and get the result set|
|conn undefined, MySQLdb undefined, hostname = 'localhost', username = 'convertt_user1', passwd = 'linux|01', databasename = 'convertt_Commandsdb'|
<type 'exceptions.NameError'>: global name 'MySQLdb' is not defined
args = ("global name 'MySQLdb' is not defined",)
message = "global name 'MySQLdb' is not defined"