04-20-2013
As you say, Unix is an operating system (OS), and emacs is a program. So they are totally different.
Here's one way they are related. emacs (or vi) CANNOT run all by it's self. emacs depends on the OS. When you boot the computer, the OS always starts running first. Once the OS is running, emacs can run "on top of it".
You cannot boot up the computer to start running emacs first. The OS has to run first. The OS must be running first, in order that emacs can work.
Here's another way they are related. The OS is MUCH more complex than emacs. The OS takes care of all the background details, more than we can imagine.
Finally, when you boot the computer, there is normally one OS (linux, windows, etc.). And it just stays one OS. You can run countless programs, such as emacs or whatever. But the one OS keeps running the whole time.
"Commands" for emacs are like "delete this line", "copy this line", etc. "Commands" for the OS are like "cp file1 file2", "mkdir xxx", etc. They are totally different environments.
I hope this helps. The distinction between the OS and a program such as emacs is very important.
This User Gave Thanks to hanson44 For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
"nkthread" kernel parameter limits the number of threads running at any point of time from all processes.
Does the thread setting in "weblogic server" is in anyway related to this.
Please suggest.
Thanks
Bishweshwar (2 Replies)
Discussion started by: bishweshwar
2 Replies
2. UNIX for Advanced & Expert Users
tempfind.txt file has:
t2589vg 888898 336008 09:15:55 -ksh
mqsiadm 1421774 888898 09:16:48 -ksh
I am searching using 1421774 in the above file tempfind.txt and and trying to get the no. i.e. 888898 . Based on this no. i have to get the first line, where the same no. is there . The nos. in Blue... (0 Replies)
Discussion started by: varungupta
0 Replies
3. Red Hat
I have 2 RHEL5.4 systems connected by a network.
I start nfs server on one (fill /etc/exports , exportfs -ra, service nfs start, portmpa is up) and the client is on the other . I can mount the exported
directory on the client and work there .
Now the RH54 kernel is 2.6.18 . I now installed... (2 Replies)
Discussion started by: dubi
2 Replies
4. Programming
Hello everybody,
I'm having troubles creating a relation between two tables in a MySQL database.
Having two tables, being one which contains users information (username, password, user ID, etc) and the other the one which contains transactions information (operation type, user ID of the user who... (2 Replies)
Discussion started by: semash!
2 Replies
5. UNIX for Dummies Questions & Answers
I need some advice from people who use command line frequently and know how to use both VIM and EMACS pretty well for their daily tasks. Please no opinion on which one better etc..., I got enough at that from the Internet.
A little about my professional background: I have been a firmware... (2 Replies)
Discussion started by: gspec
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way..
How to use emacs editor? Also how to open existing emacs files with .cgi format?
I have the following link :-
http link i.e. url and path : /abc/xyz.dev/xyz/documents
What... (7 Replies)
Discussion started by: swathi123
7 Replies
7. UNIX for Dummies Questions & Answers
How is sas related to web development - once we have the sas code executed what is the necessity to create a html output??
Any sas and html users welcome .. (2 Replies)
Discussion started by: swathi123
2 Replies
8. Shell Programming and Scripting
Hi,
I have a file with more than 50,000 rows. The file is
**hsa-miR-10a** ** ABBA-1 **
**hsa-miR-10a** ** ABCA1 **
**hsa-miR-10a** ** ABCC3 **
**hsa-miR-10a** ** ABCC3 **
**hsa-miR-10a** ** ABI3 **
**hsa-miR-10a** ** ACAD11 **
**hsa-miR-10a** ** ACAD11 **
**hsa-miR-10a** ** ACRC **... (3 Replies)
Discussion started by: Diya123
3 Replies
9. Shell Programming and Scripting
Hi,
Please have a look at the look at the below top and sar commands.
top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}'
CPU Load: 0.52
sar -u 1 1
Linux 3.10.0-514.16.1.el7.x86_64 (mymac) 06/01/2017 _x86_64_ (2 CPU)
03:27:40 PM CPU %user %nice ... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT OPENSOLARIS
mailcap.order
MAILCAP.ORDER(5) Order Mailcap Entries MAILCAP.ORDER(5)
NAME
/etc/mailcap.order - the mailcap ordering specifications
DESCRIPTION
The order of entries in the /etc/mailcap file can be altered by editing the /etc/mailcap.order file. Each line of that file specifies a
package and an optional mime type. Mailcap entries that match will be placed in the order of this file. Entries that don't match will be
placed later.
Example
mime-support:*/*
gv:application/postscript
netscape:text/html
less:text/*
emacs:text/*
The above would make any entries provided by the mime-support package (as found in the /usr/lib/mime/packages directory) take priority over
everything else. The gv package will be used over anything else when it comes to postscript documents. Netscape will be used for any html
documents and less will be used for any remaining text documents. However, since neither netscape or less provide for editing documents,
any edit or compose actions will fall through to the emacs rules.
After modifying this file, be sure to run /usr/sbin/update-mime (as root) to propagate the changes into the /etc/mailcap file.
Remember that this files takes package names and not executable names. If you want to define rules that reference specific programs, the
best way is to include them in ~/.mailcap or the user section of the /etc/mailcap file.
LIMITATIONS
There is currently no way to break out a certain type from a wildcard rule. If, for example, both xv and gimp were to specify "image/*"
rules, it isn't possible to use xv for gif images but use gimp for jpeg images.
Also, I would like to add the ability to specify certain actions in the rules. For example, if netscape were to have an edit rule but I
wanted to use emacs for editing/creating html documents, I could place a line like
emacs:text/* action=edit|compose
before the netscape entry. The update-mime program would then spit out entries such that netscape view rule comes before the emacs view
rule but have the netscape edit rule comes after the emacs edit rule.
SEE ALSO
mailcap(5) run-mailcap(1) update-mime(8)
AUTHOR
The mailcap.order specification was written by Brian White <bcwhite@pobox.com>
Debian Project 16th Aug 1998 MAILCAP.ORDER(5)