dear ilug members heres some basic stuff might be useful for beginners
About the Cheatsheet maintained by Mac-arena the Bored Zo, [EMAIL PROTECTED] available from http://www.purposenet.com/~boredzo/cheatsheets/linux.txt mirrored at http://genehack.org/Linux/cheatsheet.txt some commands submitted by Steve Leopardi, [EMAIL PROTECTED] and rajnchaos Linux Cheatsheet IS NOT PUBLISHED BY IDG BOOKS and anyone who says they are is an idjit. :) IDG publishes the "Cheat Sheet" line of books - note the space. Cheatsheet and the Cheat Sheets are unrelated. Shell prompt clear = clear screen and put prompt at top command command args = run command w/ args as its parameters, ignoring aliases date = put system date to stdout (\d in $PS1 is recommended instead) rdate server = synchronize with server via NTP (I recommend tock.usno.navy.mil) uptime = put how long the system has been up to stdout free = how much memory is available Shell prompt - Shells bash = Bourne Again SHell pdksh (RedHat only) = Public Domain Korn SHell tcsh = The C SHell sh = bourne SHell zsh = (no meaning) mc = Midnight Commander - not CLI, rather like DOS Shell actually Shell prompt - IP nslookup host = resolve host (could be either a hostname or IP) ping host = send an ICMP ping to host whois hostname = whois this hostname (rs.internic.net) Shell prompt - Power on/off shutdown -h now = shutdown immediately shutdown -r now = shutdown and restart immediately shutdown -h/-r minutes = shutdown and restart in minutes Shell prompt - Users and Logins who = see who is on the system write person = send a message to person (ctrl-C to end) mesg boolean = set whether you can be write'd to (y or n) login = login again logout = logout and disconnect your session exit = quit the shell (same as kill -9'ing its PID) Shell prompt - File manipulation cd folder = switch to folder folder = /folder = folder "folder" at the top level folder = folder = folder "folder" in . folder = . = current folder folder = .. = folder that is one level higher folder = ~ = home directory (as defined in $HOME) pwd = put working directory (having \w in your $PS1 is recommended instead) ls -Adl folder = show infomation on folder (which of course could also be a file) ls -ABCF = multicolumn list of all files, folders, and links except . and .. ls -ABFl = long (1-col) list of all files, folders, and links except . and .. ls -l|wc -l = count files/folders ls -l folder|wc -l = count files/folders in folder touch -r file time = set modification date of file to time chmod user[+-=]permissions file = set permissions for user of file to permissions (see Symbolic Permissions below) chmod octal file = set permissions of file to octal (see below) chown user file = give file to user - to get it back they must give it back! chown user:group file = give it to group as well mv file file = rename file1 to file2 mv file folder = move file to folder mv file folder/file = move file1 to folder and rename it to file2 when it's there cp source dest = copy source to dest (e.g. cp /home/boredzo/risebox/cheatsheet.txt ~) cp -a source dest = exact copy ln -s source target = create a symbolic link (alias, shortcut) to source at target the cheatsheet is not over ill sent the rest bye sameer _________________________________________________________________ Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag Only on www.shaadi.com. Register now!
