194
Command's
Purpose
Finds a string of text
in a file
Formats a diskette
Displays command
help
Creates a directory
View a file
Renames a file
Displays your
location in the file
system
Changes directories
with a specified path
(absolute path)
Changes directories
with a relative path
Displays the time
Shows amount of
RAM and use
2 This formats a disk for the DOS filesystem.
3 You can also use info for some commands.
4 The more pager can also be used to page through a file a screen at a time.
5 The mv command can both move a file and, if you want to rename a file in the same directory, you "move" that
file to the same directory with a new name, as in this example.
Appendix B:A Comparison of Common DOS and Linux Commands
MS-DOS
Linux
grep
find
format
mke2fs
a: (if
(or
diskette is
mfor-
in A:)
mat
command
man
/?
mkdir
mkdir
more
less
ren
mv
pwd
chdir
cd
cd
pathname
path-
name
cd ..
cd ..
date
time
mem
free
Basic Linux Example
grep this word or phrase thisfile.txt
/sbin/mke2fs /dev/fd0 (/dev/fd0
is the Linux equivalent of A:)
2
)
3
man command
mkdir directory
4
less thisfile.txt
mv thisfile.txt thatfile.txt
pwd
cd /directory/directory
cd ..
date
free
5
Need help?
Do you have a question about the LINUX 7.2 and is the answer not in the manual?
Questions and answers