DOS Command UNIX Or Bash Command Action DIR Ls -L (Or Use Ls -Lf)(-A All Files) (Df -K Space Remaining on Filesystem) List Dire

DOS Command UNIX Or Bash Command Action DIR Ls -L (Or Use Ls -Lf)(-A All Files) (Df -K Space Remaining on Filesystem) List Dire

UNIX or Bash DOS Command Action Command DIR ls -l (or use ls -lF)(-a all files) List directory contents (df -k Space remaining on filesystem) DIR *.* /o-d List directory contents by reverse DIR *.* /v /os ls -tr time of modification/creation. DIR /s ls -ls List files and size DIR /aa ls -R List directory/sub-directory ls -a contents recursively. List hidden files. TREE ls -R List directory recursively CD cd Change directory MKDIR mkdir Make a new directory MD ASSIGN ln Create a file or directory link RMDIR rmdir Remove a directory RD pwd CHDIR Display directory location DEL rm Remove a file ERASE RMDIR /S (NT) Remove all directories and files rm -R DELTREE (Win 95...) below given directory COPY cp Copy a file XCOPY cp –R Copy all file of directory recursivly RENAME or MOVE mv Rename/move a file Dump contents of a file to users TYPE cat screen Pipe output a single page at a MORE more time HELP or COMMAND man, info Online manuals /? clear CLS Clear screen ctrl-l EXIT exit Exit a shell EXIT0 exit 0 FIND Look for a word in files given in grep FINDSTR command line Compare two files and show COMP diff differences. Also see comm, cmp, mgdiff and tkdiff. Compare two files and show FC diff differences. Also see comm, cmp, mgdiff and tkdiff. SET set and env List all environment variables SET variable=value set Set environment variables echo %variable% Show environment variables export variable=value echo $variable ECHO text echo text Echo text to screen setenv (for C shell) or export VAR=val (for SET variable Set environment variables Korn shell. Also VAR=val) PATH Display search path for echo $PATH PATH executables. PATH=$PATH:/dir %PATH%;C:\DIR Set PATH environment variable. PROMPT $p$g export PS1='\h(\u)\W> ' Set user command prompt. Show date. (also set date - DOS DATE or TIME date only) DOSKEY /h history List command history DOSKEY alias NAME=command Set command alias NAME=command BREAK ON trap Trap ctrl-break / Trap signals. Sort data SORT sort alphabetically/numerically EDLIN ed Line mode editor EDIT filename.txt Edit a file. The Linux editor which looks most like DOS edit is pico, nano, emacs, vid probably Pico. (Not a recomendation!) BACKUP files A:\ tar -cvf /dev/fd0 files Save files to floppy. tar -xvf /dev/fd0 files RESTORE A:\ files Read files from floppy. Change file permissions. DOS: ATTRIB [+r|-r] [+a|-a] chmod +:set to -:remove r:Read only [+s|-s] [path\file] /s a:Archive s:System /s:recursively Change file to a hidden file - ATTRIB +h or -h mv file .file rename file with prefix "." PRINT lp, lpr, lpq, lpstat Print a file CALL Source script (cshrc) Execute script from within batch COMMAND /C . script (bash) shell. (DOS), CMD (NT) sh script MEM free, top Show free memory on system TASKLIST (WIN2K, ps -ef List executable name, process ID XP) ps -aux number and memory usage of top active processes Show system info (Command MSD lsdev borrowed from AIX) SCANDISK fsck Check and repair hard drive file DEFRAG C: debugfs system CHDISK du Disk usage. FDISK fdisk Tool to partition a hard drive. Mount a drive letter to a SUBST V: mount folder/directory on your hard C:\directory\path drive. FORMAT mkfs –t filesystemtype Format drive file system. VER uname -a Operating system/shell version pkzip Compress and uncompress files/directories. Use tar to create tar -z and gzip compilation of a directory before compressing. HOSTNAME hostname Print host name of computer PING / PATHPING ping Send packets to a network host Show routes and router hops to TRACERT traceroute given network destination. IPCONFIG (NT) Display/configure network WINIPCFG (Win Ifconfig interface 95...) NSLOOKUP/HOST NBTSTAT (Netbios info: -n, -c) nslookup host-name NBTSTAT -a host- Print DNS info for host. host host-name name NBTSTAT -A IP- address ROUTE PRINT route –n, netstat -rn Print routing table. NET HELP START chkconfig --list |grep on List services. NET STARTservice- service service-name name start/stop Start/stop service/daemon. NET STOPservice- name Show mounted NET SHARES df shares/filesystems. smbclient -M MS- Send pop-up to a MS/Windows NET SEND <node- Windows-host-name PC name> <message> Send message to another (NT) Unix/Linux user. WIN startx Start X-Windows. REBOOT shutdown -r now Reboot system. .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us