12. ADVANCED COMMANDS IN LINUX Command Description # arch show architecture of machine(1) [] # cal 2007 show the timetable of 2007 [] # cat /proc/cpuinfo show information CPU info [] # cat /proc/interrupts show interrupts [] # cat /proc/meminfo verify memory use [] # cat /proc/swaps show file(s) swap [] # cat /proc/version show version of the kernel [] # cat /proc/net/dev show network adpters and statistics [] # cat /proc/mounts show mounted file system(s) [] # clock -w save date changes on BIOS [] # date show system date [] # date 041217002007.00 set date and time - MonthDayhoursMinutesYear.Seconds [] # dmidecode -q show hardware system components - (SMBIOS / DMI) []
13. # hdparm -i /dev/hda displays the characteristics of a hard-disk [] # hdparm -tT /dev/sda perform test reading on a hard-disk [] # lspci -tv display PCI devices [] # lsusb -tv show USB devices [] # uname -m show architecture of machine(2) [] # uname -r show used kernel version [] # init 0 shutdown system(2) [] # logout leaving session [] # reboot reboot(2) [] # shutdown -h now shutdown system(1) [] # shutdown -h 16:30 & planned shutdown of the system at 16:30 [] # shutdown -c cancel a planned shutdown of the system [] # shutdown -r now reboot(1) [] # telinit 0 shutdown system(3) []
31. CONFIGURING MYSQL Initialise the standard MySQL databases. This also sets up the initial user privileges for your MySQL server. cd mysql scripts/mysql_install_db
32. MYSQL SETUP steps: 1. Login to WHM on the Linux dedicated server. 2. Select SQL Services and then click on Setup Remote SQL Server. 3.Enter the name of the remote server and it is to be entered in the 'host' section. Password is also required which is to be entered in the column provided for Remote MySQL Host Root Password. 4. Click on "Setup" and you are done.
33.
34.
35.
36.
37. UNINSTALLING MYSQL Here are the steps to perform a clean un-install of MySQL Execute the following commands at the Terminal Uninstalling MySQL Open /etc/hostconfig file in a text editor and remove the following line MYSQLCOM=-YES- That’s all.
41. Debugging Tools Webgrind Webgrind is an Xdebug profiling Web front end in PHP 5. It implements a subset of the features of kcachegrind , installs in seconds and works on all platforms. Xdebug Xdebug provides a ton of useful data to help you quickly find bugs in your source code. Gubed PHP Debugger Gubed PHP Debugger is a PHP debugging tool for hunting down logic errors. DBG DBG is a robust and popular PHP debugger for use in local and remote PHP debugging. PHP_Debug PHP_Debug is an open-source project that gives you useful information about your PHP code that can be used for debugging.
42. PHP_Dyn PHP_Dyn is another excellent PHP debugging tool that’s open-source. You can trace execution and get an output of the argument and return values of your functions. MacGDBp MacGDBp is a live PHP debugger application for the Mac OS. It has all the features you’d expect from a fully featured debugger, such as the ability to step through your code and set breakpoints. Testing and Optimization Tools PHPUnit PHPUnit is a tool that helps you test your Web application’s stability and scalability. SimpleTest SimpleTest is a straightforward unit-testing platform for PHP applications.
43. PHP_CodeSniffer PHP_CodeSniffer is a PHP 5 script for detecting conformance to a predefined PHP coding standard and for maintaining uniform coding styles for large projects and teams. dBug dBug tool is used for outputting data tables that contain information about arrays, classes and objects, database resources and XML resources, making it very useful for debugging purposes. PHP Profile Class PHP Profile Class is an excellent PHP profiling tool for your Web applications. Using this class will help you quickly and easily gain insight into which parts of your app could use some refactoring and optimization. Documentation Tools phpDocumentor phpDocumentor is a documentation tool for your PHP source code. PHP DOX An AJAX-powered PHP documentation search engine that enables you to search titles from all PHP documentation pages.
44. Security Tools Securimage Securimage is open-source PHP CAPTCHA script for generating complex images. Scavenger Scavenger helps system administrators respond to vulnerability findings, track vulnerability findings and review accepted and false-positive answered vulnerabilities, without “nagging” them with old vulnerabilities. PHP-IDS PHP-IDS is a simple-to-use, well-structured, fast and state-of-the-art security layer for your PHP-based Web application. Pixy: PHP Security Scanner Pixy is a Java program that performs automatic scans of PHP 4 source code, aimed to detect XSS and SQL injection vulnerabilities.