Online Education >> Unix / Linux


Here I only try to make a handy notes, tips and tricks how to handle UNIX or LINUX.
For detail references you can click here to see the useful links.

I know there are lots of sites on net about it, but here my objective is to make it handy notes of basic daily task with comparison of windows.

Following are commands comparison including examples.
 
DOS/WINDOWS UNIX/LINUX Action and Examples
command /? command --help
man
Show syntax and help of any following command
this also shows the manual of any word
DIR ls -l (or use ls -lF)(-a all files)
(df -k Space remaining on filesystem)
List directory contents
DIR /S filename find -name filename.* search the filename in all subdirectories
TREE ls -R List directory recursivly
CD cd Change directory
MKDIR mkdir Make a new directory
RMDIR rmdir Remove a directory
CHDIR pwd Display directory location
DEL rm Remove a file
RMDIR /S (2000/XP)
DELTREE
(Win 9x...)
rm -R Remove all directories and files below given directory
COPY cp -p Copy a file
XCOPY cp -R Copy all file of directory recursivly
RENAME or MOVE mv Rename/move a file
TYPE cat Dump contents of a file to users screen
MORE more Pipe output a single page at a time
HELP or COMMAND/? man Online manuals
CLS clear Clear screen
EXIT exit Exit a shell
FIND grep Look for a word in files given in command line
FC diff Compare two files and show differences. Also see mgdiff and tkdiff.
SET set and env Show environment variables
ECHO text echo text Echo text to screen
SET variable setenv (for C shell) or export (for Korn shell) Set environment variables
PATH echo $PATH Display search path for executables
DATE or TIME date Show date. (also set date - DOS only)
SORT sort Sort data alphabetically/numerically
EDIT filename.txt pico, gnp, vi, xedit, xemacs,dtpad Edit a file. The Linux editor which looks most like DOS edit is probably Pico. (Not a recomendation!)
\ / Directory path delimiter
.\ ./ Current directory
..\ ../ Parent directory
BACKUP files A:\ tar -cvf /dev/fd0 files
mdir, mcopy
doswrite -a file (AIX only)
Save files to floppy/tapedrive.
example:  tar -cvf /dev/fd0 /myfoldername  for floppy
                 tar -cvf /dev/st0 /myfoldername  for tapes
RESTORE A:\ files tar -xvf /dev/fd0 files
mdir, mcopy
dosread -a file (AIX only)
Restore/extract files from floppy/tapedrive.
example:  tar -xvf /dev/st0 /myfoldername  for tapes
To see the content of your backup
use this:  tar -tvf /dev/st0
ATTRIB +h or -h mv file .file Change file to a hidden file - rename file with prefix "."
PRINT lpr Print a file
MEM free
top
Show free memory on system
MSD lsdev Show system info (Command borrowed from AIX)
SCANDISK
DEFRAG C:
fsck
debugfs
Check and repair hard drive file system
FDISK fdisk Tool to partition a hard drive.
FORMAT mke2fs
See: fdformat and mformat for floppies
Format drive file system.
For floppy drive use see YoLinux Tutorial Using DOS Floppies with Linux
VER uname -a Operating system version
pkzip tar and zip Compress and uncompress files/directories. Use tar to create compilation of a directory before compressing. Linux also has compress, gzip
HOSTNAME hostname Print host name of computer
PING ping Send packets to a network host
TRACERT traceroute Show routes and router hops to given network destination.
IPCONFIG (2000/xp)
WINIPCFG (Win9x)
 
ifconfig Display/configure network interface
NBTSTAT (Netbios info: -n, -c)
NBTSTAT -a host-name
NBTSTAT -A
IP-address
nslookup host-name
host
host-name
dig host-name
Print DNS info for host.
ROUTE PRINT route -n Print routing table.
NET SEND <node-name> <message> (NT) smbclient -M MS-Windows-host-name
talk
Send pop-up to a MS/Windows PC
Send message to another Unix/Linux user. See YoLinux tutorial
WIN startx Start X-Windows
[Home] [My Photo Gallery] [Fun Stuff] [Travel Tips] [Desert World] [Live Web Cams]
[Online Education] [News Papers] [Earn EA$Y $$] [Domains for Sale]

Please contact the Webmaster with questions or comments.
© Copyrights 2001 Baberkhan.com   All rights reserved.