- צבר – בלוג עם קוצים - https://tsabar.no-ip.org/blog -

לינוקס לדוסים

זה היה צריך להגיע מתישהו…

כמישהו ששנא חלונות עוד מגירסת 95, אני זוכר שנשארתי עם דוס הרבה אחרי שכולם שכחו מה זה. בעיקר היה חסר לי היכולת הבסיסית לכתוב סקריפטים (שעובדים) בחלונות. וגם יציבות הייתה חסרה שם.

אז לכל אלו שמקורם בדוס, כמוני, מצורף המילון (שהייתי רוצה שיהיה) המלא דוס-לינוקס.

יבורך האיש שיסדר את הכל לטבלה נורמלית, ויוסיף ויפרט קצת יותר. כאן זה מסודר לפי א"ב של פקודות דוס.

הפקודה בדוס / הפקודה בלינוקס / תיאור קצר

dos command / linux command / short description

attrib / chmod / change file properties

cd, chdir / cd / change working directory

chkdsk / df -h / print disk size, free

choise / read / choise from some options in batch scripts

cls / clear (or Ctrl+L) / clear screen

command (cmd) / bash, sh, csh, tcsh,… / load another shell

copy / cp / copy files

date (and time) / date / change system time

defrag /   / defragment disk. not exist in linux. for more information click here [1]

del (erase) / rm / delete files from disk

deltree / rm -R / delete directory(ies)

dir/w / ls / print a list of files and directories in this directory

dir / ls -l / print a list of files and directories in this directory, with properties

diskcopy / dd / copy one diskette to another

doskey / history (?) alias (?) / (please help me with this description)

dosshell / jobs, fg, bg (?) / (esoteric command)

echo / echo / print messages to screen (in batch scripts)

edit / vi, vim, jpico, nano,… / text editor

exit / exit / exit from shell

expand / gzip, zip, tar,… / expand compressed files

fasthelp, <command>/? / <commad> –help / usage

fc / diff / compare between two files

fdisk / fdisk, sfdisk / manage disk partitions

find / grep, egrep, fgrep / find text in file(s)

for / for / for loop in batch scripts. for in linux have much more than dos' for

format / mkfs / format and create new file system

goto / break(?) function-call(?) / please don't use it. just click here [2]

help / man / help to use commands

if / if / someone?

label, vol / e2label / set/get disk label

mem / free / show memory status

mkdir (md) / mkdir / make directory

more / more, less / print data page by page

move, ren / mv / move files and directories

msd / lshw, lspci, lsmod, lsusb, dmesg,… / print details about your system

path / path / path to executable files

pause / sleep(?) / pause in batch scripts

prompt /    / (?)

rem / # / remarks in batch scripts

rename, ren / mv / rename files

rmdir, rd / rmdir / delete empty directory

scandisk / fsck / file system check. not recommended for mounted drives

set / set, env, setenv / show or manage environment variables

shift / shift / rotate parameters

sort / sort / sort text

subst / ln -s, lndir, mount (umount) / link directory (?)

sys / mkboot, mkbootdisk, syslinux / make device bootable

tree / du / print directory tree

type, copy con: / cat / show file

undelete /    / (?)

unformat /    / (?)

ver / uname / show software version

verify / sync / save buffers to disk, verify write

xcopy / cp -R / copy directories

בונוס:

autoexec.bat / /etc/rc.local / there have a lot of versions to rc.local

device=driver.sys / mount in /etc/fstab / configure more logical drives

files / /proc/sys/fs/file-max / number of maximum open files

lastdrive /   / oops… bill gates and friends…

start (win 9x only) / xdg-open / open file, document or URL with your preferred application

קישורים

מדריך פקודות לינוקס [3], באתר ג'איה

לינוקס – פקודות וכלים [4], באתר ITBananas

המרה מדוס ליוניקס [5] (אנגלית)

מערכות הפעלה ופקודות [6] (אנגלית)