Bunch of questions...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Bunch of questions...
# 1  
Old 09-28-2007
Bunch of questions...

1. If Shell is something that handles the commands, what is the Operating System them? What does that do actually? Bridge the Shell and the Hardware or Instruction Set together?

2. One of the commands that I'm curious about is the "which" command. I want to know what is exactly written inside it. How will I know that?

3. I've just read that Windows Explorer is the Shell for most Windows OSes. Does Vista have the same shell too?

4. If both Linux and Windows were built on Unix, what is it that differentiates them the most? Why are only a few unix commands retained in Windows?

5. If Windows Explorer is a shell, then what is a Kernel?
# 2  
Old 09-28-2007
Quote:
Originally Posted by Legend986
1. If Shell is something that handles the commands, what is the Operating System them? What does that do actually? Bridge the Shell and the Hardware or Instruction Set together?
The shell is a command interpretor and can also be used as a human interface.

Quote:
Originally Posted by Legend986
2. One of the commands that I'm curious about is the "which" command. I want to know what is exactly written inside it. How will I know that?
Depends on who wrote the version used on your operating system. which is just another UNIX user program.

Quote:
Originally Posted by Legend986
3. I've just read that Windows Explorer is the Shell for most Windows OSes. Does Vista have the same shell too?
Not for Windows 1 through 3.11 or NT 3.1 to 3.51.

Vista will have a similar shell, however we are led to believe Vista was a rewrite from the bottom up as the code became too complicated.

Quote:
Originally Posted by Legend986
4. If both Linux and Windows were built on Unix, what is it that differentiates them the most? Why are only a few unix commands retained in Windows?
Neither were built on UNIX. Linux is just the kernel at the heart of GNU/Linux distributions, Microsoft did sell Xenix for a while but Windows was originally a graphical DOS extender.

Quote:
Originally Posted by Legend986
5. If Windows Explorer is a shell, then what is a Kernel?
As in if a Granny Smith was an apple, then what is an orange?
# 3  
Old 09-28-2007
First of all thanks for your patience. I'm the same one who asked you for some Unix books Smilie

[QUOTE=porter;302138113]The shell is a command interpretor and can also be used as a human interface.
I didn't understand that. I read what a shell is. What is there inside the OS? As I wrote above, is it some bridge or something?


Quote:
Originally Posted by porter
Depends on who wrote the version used on your operating system. which is just another UNIX user program.
Assuming its Linux or something. Assume its the most frequently used version or shell.


Quote:
Originally Posted by porter
Not for Windows 1 through 3.11 or NT 3.1 to 3.51.
Yeah, thats why I said "most" :P

Quote:
Originally Posted by porter
Vista will have a similar shell, however we are led to believe Vista was a rewrite from the bottom up as the code became too complicated.
Oh.. Great... Thanks for that...


Quote:
Originally Posted by porter
Neither were built on UNIX. Linux is just the kernel at the heart of GNU/Linux distributions, Microsoft did sell Xenix for a while but Windows was originally a graphical DOS extender.
Another thanks... So was DOS built from scratch?

Quote:
Originally Posted by porter
As in if a Granny Smith was an apple, then what is an orange?
You'd hate for this, but I didn't understand that... No not your example, but the answer to my question :P
# 4  
Old 09-28-2007
1. I wouldn't call a shell "a bridge", it's more a translator/interpretor/UI.

2. The most used shell would have to be "/bin/sh" as that is what *most* shell scripts have as the first line and is the most portable form for scripting.

3. Windows ME was the last Windows to sit on DOS. DOS was originally "QDOS" bought by Microsoft and became "PCDOS" and "MSDOS". NT starting at NT 3.1 was a totally new line built with DEC expertise and with hindsight of 16 bit OS/2.

Quote:
If Windows Explorer is a shell, then what is a Kernel?
Like in a nut a kernel is the heart of an operating system and has a number of features such as scheduling, synchronisation and interprocess communication, depending on the OS this may also include memory management and driver support. There are kernels, microkernels and even nano-kernels, and has nothing to do with shells or Windows explorer, hence apples and oranges.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to rename bunch of files on sftp?

Hi All, I am trying to move all processed .csv files on sftp to archive dir . I tried to use wildcard *.csv but its not working . Is there any way to do this. I appreciate your help. Regards, raj (1 Reply)
Discussion started by: rajeevm
1 Replies

2. Shell Programming and Scripting

Remove the first two records from a bunch of files

Hi, i have lots of single-column text files in a directory and i want to remove from each of them the first two lines and print the result in multiple new single-column files. i know that for one file the below tail command would just do the job : tail -n +3 filename > new_filename is there... (4 Replies)
Discussion started by: amarn
4 Replies

3. Shell Programming and Scripting

Removing a bunch of lines

I have a file that contains the following multiple times: 0<< bla bla bla bla bla bla exit; Can somebody give me a sed or AWK command I can use to remove all occurances from this file. I would like it to find 0<< (note the zero may be proceeded by spaces) and remove that line and... (3 Replies)
Discussion started by: BeefStu
3 Replies

4. Shell Programming and Scripting

bunch of ^@^@^@^@^@^@^@^@'s in bash log file

I have a bash script that has been running fine for months that scans a bunch of files and gives me a log file output, it has suddenly started putting 1.5M of a repeating sequence of ^@^@^@^@^@^@^@^@^@^@ on the first line of the logfile, is this a unicode problem I should be setting something in my... (5 Replies)
Discussion started by: unclecameron
5 Replies

5. Shell Programming and Scripting

Renaming a bunch of files

This is possibly a FAQ, but I was unable to find an answer: let's say you have two files named "hello.txt" and "goodbye.txt" and you want them to be "hi.txt" and "seeyou.txt". The typical regular expressions renamer apps do not apply, as you want different new names for each one of the files. The... (2 Replies)
Discussion started by: tokland
2 Replies

6. Shell Programming and Scripting

bunch of questions

hi guys :> after reading several beginner tutorials and howtos i got still some questions concerning a script, i'm working on atm. :confused: Is it possible to check if a mounted cd (cdrw) is readable and/or writable (clean disk)? Is it possible to open a new window which displays the... (6 Replies)
Discussion started by: gentox
6 Replies

7. UNIX for Dummies Questions & Answers

How do I rename a bunch of files at once?

I have about 3000+ files name P08DDD that I want to rename U08DDD. How can I do this using a single command? (8 Replies)
Discussion started by: bbbngowc
8 Replies

8. Windows & DOS: Issues & Discussions

batch file--bunch of commands

I have a batch file that takes 2 parameters--source file location and target file location. I want to create another batch file that contains all the commands with the file locations so that I dont have to enter the ifnromation every time individually. For eg: to execute command com1.bat... (3 Replies)
Discussion started by: alfredo123
3 Replies

9. Shell Programming and Scripting

Renaming a bunch of files

Hi Can any body help me reg. this problem? The problem is the format of the shell script should be >renam old new rename: it renames all files in current directory from old extension to new extension old: it is the old extension of file name (including the '.' ) new: its the new extension ... (2 Replies)
Discussion started by: Prashanth.m
2 Replies

10. News, Links, Events and Announcements

what a bunch of idiots...

http://slashdot.org/article.pl?sid=04/01/15/2349201&mode=thread&tid=126&tid=155&tid=95&tid=99 (1 Reply)
Discussion started by: norsk hedensk
1 Replies
Login or Register to Ask a Question