Linux, MySQL, Apache, and How to Add Bookmarks

Linux:

Quick guru

ItemCommand
Get helpman cmd_name
Change passwordpasswd
List filesls -lh
notes-l = long -h = human readable sizes
Change directorycd dir_name
Copy filecp file new_file
Move filemv file target
Remove filerm -f file
notes-f = force delete without prompt
Print file to screencat file
Set permissionschown -R apache:apache /var/www/*
Set executablechmod -R 755 /var/www/cgi-bin/*
notes-R = Recursive

Documentation

Man pages and more

Bash scripting

Mendel Cooper:

VI editor

Bill Joy, VI creator:

University of Hawaii at Manoa:

MySQL:

Quick guru

ItemCommand
Loginmysql -p db_name
Run sql scriptmysql -p db_name <script_file
notes-p = prompt for password
List tablesshow tables;
List records in tableselect * from table_name;
Count records in tableselect count(*) from table_name;
Insert recordinsert into table_name (field1, field2) values (‘value1_value’, ‘value2_value’);
Update recordupdate table_name set field1 = ‘value1_value’, field2 = ‘value2_value’;
Delete recorddelete from table_name where field1 = ‘value1_value’;
Delete all recordstruncate table_name;

Documentation

Official website:

Apache:

Quick guru

ItemCommand
Restartapachectl restart
Configurevi /etc/httpd/conf/httpd.conf
Set permissionschown -R apache:apache /var/www/*
Set executablechmod -R 755 /var/www/cgi-bin/*
notes-R = Recursive

Documentation

Official release: