Command Prompt

Problems? Post here...
Post Reply
User avatar
moudy
Technology Enthusiast
Technology Enthusiast
Posts: 688
Joined: 10 Feb 2009, 17:00
15
Location: Beirut, Lebanon

Command Prompt

Post by moudy »

Hello every one :)
i was going over the posts, and one that was mentioned alot was the command prompt, and such stuff...
i would like to know if there is a tut for this thing, coz it seems its really important to know more about it...
BTW i tried the help command, but i want more info, for example:
1- what does CMD really help me to do
2- what is root directory, i read some thing about that some where, but guys i need info, if any one can provide me with some ill be gr8ful :D
thanks for the help in advance
mahmoud_shihab@hotmail.com

User avatar
nightkid
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 306
Joined: 27 May 2007, 16:00
16
Location: interwebz

Post by nightkid »

the command line, or the terminal is the term used in linux and unix/mac/bsd , what have you is basically the line between the GUI and the ROOT , you can write scripts with it, download files from it with ports, telnet, check your email, ping, it's a major tool all in one, in a sense.
hope this helps, know it and you wil forget about your mouse quickly ;)
[img]http://img.photobucket.com/albums/v328/trenchcoatskrilla/biohazard.gif[/img]

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

@1: doing work in textmode is much faster than in a GUI if you are used to it, for example: you want to copy a file from folder A to folder B, doing this on the desktop means to browse to folder A, rightclick the file, copy it, browse to folder B, rightclick, paste it.
in textmode it's just 1 command:

Code: Select all

cp /path/to/file /path/to/destination
ok, in Windows OSs working in textmode (or a shell or terminal) is much less fun, simply because of the limited possibilities.
this is much different on Linux/Unix, because there you can do everything you can do in a GUI in textmode too (the GUIs are usually just interfaces to the textmode application anyway) and even more.

here is a quick command overview of *nix systems:
http://www.ss64.com/bash/
and here for Windows:
http://www.ss64.com/nt/

@2: there are 2 definitions of what the root directory is:
- it's either the home directory of the root user (admin): /root
- or (and this is what is usually meant) it's the system root directory: /
the system root is simply the "root" of all other directories, imagine it like a tree. on Windows systems there is no root directory.


:wink:

User avatar
moudy
Technology Enthusiast
Technology Enthusiast
Posts: 688
Joined: 10 Feb 2009, 17:00
15
Location: Beirut, Lebanon

Post by moudy »

I'v checked the site bad brain
I dont know how to thank you :D
It has gr8 info 8)
mahmoud_shihab@hotmail.com

User avatar
f4Gg0t_43
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 245
Joined: 13 Sep 2008, 16:00
15
Contact:

Post by f4Gg0t_43 »

Stupid question but you can make a list of commands and save it as .bat and open it with cmd, is there a linux version of .bat?

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
17
Location: 127.0.0.1

Post by pseudo_opcode »

its called linux shell scripting,
to be a little more specific, suppose you use bash, you would like to learn about bash scripting,

linux doesnt require file extensions, but to represent shell scripts, we use extension .sh, so that we know foo.sh is a shell script.

google more for linux shell scripting

Post Reply