Working With Files
To go through the file system pwd - Prints out on the screen the working directory (eg /etc/ssh) find <search_criteria> (used for filenames) more <filename> - will display a file page by page you must use a built-in editor from the command-line. Generally, this is vi and it's used with the syntax vi <filename>. To print a file lpr <filename> Note : You must have some daemons up and running to manage the printer. Usually this is cups (Common UNIX Printing System) that comes with all major distributions. To uncompress an archive You must use the tar command with the syntax tar -xvzf <file_name>. To mount/unmount (add in your file system as accessible media) They usually mount automatically, but you could end-up in the situation where you must do it manually. Use the ssh command. The syntax is ssh <hostname>. System management: This number is required to stop a service or application. Use kill <PID> to stop a task. top - works somehow like the Task manager in Windows. It shows up the system resources, the processes running, average load, etc. Useful is top -d <delay> - sets up the refresh period. You can put any value from .1 (10 ms) to 100 (100 seconds) or even greater. uptime - will display the system's uptime and the load average for that moment, 5 minutes and 15 minutes in the past. Usually, the load average is calculated as the percent of system resources (processor, RAM, harddisk I/O, network load) used at that moment. 0.37 means that 37% was used. A greater value like 2.35 means that the system had to que some data because it should be 235% faster to compute all without problems. Anyhow, this can be different from distribution to distribution. free - will display information on system's memory ifconfig <interface_name> - view detailed information about your network interfaces; generally your ethernet network interface will be named eth0. You can also set up the network settings like ip address or so by using this command (see man ifconfig). If something goes wrong, you can also stop/start the interface by using ifconfig <interface_name> up/down passwd - enables you to change your password (passwd own_user or others if you are logged in as root) useradd - enables to add a new user (see man useradd) Anywhere you are, you cand use the TAB key to autocomplete a filename or command. This will be usefull when getting used to the commands available. You can also hit up arrow and down arrow to scroll through the history of the commands you entered. |