|
-
December 11th, 2001, 07:13 PM
#6
Great beginner's tutorial MsMittens!
Originally posted by Terr
Also, most (but not all) commands support the -h arguement, which means, basically 'Help'. If that doesn't work, you can try --help as an arguement. When in doubt, check the manual.
While this is generally true, I've found that anything that displays file sizes etc., treats -h as equal to --human-readable.
ls is an example of this.
Here's some sample output:
[chsh@comp test]$ ls -l
total 14544
-rw-rw-r-- 1 chriss chriss 3211264 Dec 11 12:01 file1
-rw-rw-r-- 1 chriss chriss 11661312 Dec 11 12:01 file2
[chsh@comp test]$ ls -lh
total 15M
-rw-rw-r-- 1 chriss chriss 3.1M Dec 11 12:01 file1
-rw-rw-r-- 1 chriss chriss 11M Dec 11 12:01 file2
It's a really handy thing to know if you do general maintenance.
Originally posted by ThePreacher
This was an excellent tutorial especially to one as new as I am to linux. I hope that you can list even more commands maybe in a format saying what the linux equivalent to a Dos command is.
Well, for starters, here's a quick list of the linux commands and their DOS counterparts (note that most of the DOS commands are rather limited, while the linux commands are not):
Code:
Linux = DOS
===============
cd = cd / chdir
mkdir = md / mkdir
echo = echo
grep = find
more = more
clear = cls
cp = copy
mv = move
chmod = attrib
netstat = netstat
There's a fair bit more of them, but this is just what I remember off the top of my head. I should probably mention the fact that I remember about a dozen DOS commands, but well over fifty or sixty linux commands. There are simply more of them. For instance, on linux you have the touch command, which is the equivalent of running echo "" > filename on DOS.
There's simply a tonne more functionality in linux, and I'm glad to see someone post a decent mini-tutorial on the various commands.
Chris Shepherd
The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
\"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
Is your whole family retarded, or did they just catch it from you?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|