answersLogoWhite

0

📱

Unix

Unix is a family of operating systems primarily designed for servers, mainframes, and high-end workstations. First created in 1969, Unix systems are renowned for their security and stability.

1,127 Questions

What is the difference between the Bash and Korn shells?

The bash shell is open source. The Korn shell is proprietary and owned by David Korn of Bell labs (and the source is not available).

Also, there are some differences in syntax when using the environment, for example, in the history substitution feature.

Can you login as root using telnet?

Yes, you can, but this is a very dangerous thing to do. Firstly, telnet is an insecure protocol, and anyone with a packet sniffer can find out your root password. Secondly, one should really never log in as the root account; use su or sudo after logging in as an ordinary user using a more secure protocol such as ssh.

There are some settings in some versions of telnet that may prevent root logins, but the standard telnet will allow that.

Write a Shell script to find out the user is valid or not?

#!/bin/sh

echo "Please enter the username you want to check: "

read USER

grep $USER /etc/passwd > /tmp/lusertest

sleep 5

if [ -s /tmp/lusertest ]

then echo "User exists"

else echo "User does not exist"

fi

rm /tmp/lusertest

Why you are not able to open multiple session of a Unix server through Putty?

'putty' only allows one window to connect to a system at a time; I don't like that behavior either, but that is the way it was designed.

To get multiple sessions to a Unix server I have to execute multiple occurrences of 'putty'.

How do you create a symbolic link in Solaris?

To create a symbolic link, use the 'ln' command. If, for example, I wanted to link the file /usr/sbin/mycommand to a symbolic link file in my directory called 'my', the command would be:

ln -s /usr/sbin/mycommand my

Where the -s indicates a symbolic (as opposed to a hard link), and the next field is the target, followed by the link or alias.

The ls command to list only those files that Begin with the letter c?

That would be:

ls -la c*

Bash will do magic trick and find all files starting 'c' letter and the command will look like this:

ls -la cat.txt catalog.txt cars.jpg

And ls will print out each file details.

How do you check a file for spelling errors in unix?

Depending on the Unix vendor, there is usually a 'spell' or 'ispell' command available to spell check words in a file.

What is the function of 'set' in Unix?

Depends on the shell you are using. For most shells, the 'set' command will echo all of the local shell variables in your environment. It also sets certain behavioral characteristics, such as turning on inline editing, not allowing ^D, and other settings.

What is difference between text files in windows and UNIX?

Both platforms are ASCII platforms, but the difference is the line termination character. In Windows, there is a two character sequence to denote the end of the line (CR/LF sequence, 0D0A)

For Unix, the line termination character is the newline character (0A), to denote the end of the text line.

What is vi?

I can at least tell you the VI is the standard editor used on a lot of Unix platforms. However, it is so clunky that the joke is the name is an abbreviation for "Virtually Impossible".

Vi has a steep learning curve and is not obvious to the casual user. For example, Vi has two modes: Insert mode and Command mode. A user starts in command mode by default, and has to type either 'a', 'i' or the insert key to change to insert mode. In insert mode, a user is free to type the document. To go back to command mode, a user should type the [esc] key.

Command mode is very useful for performing operations that are imposible to do in more modern editors. For example, a user could delete x lines of text by typing xdd, where x is the number of lines to delete. Many more shortcuts like these are available in the editor.

To save a document, a vi user would go to Command mode, type :w (for write), :x (x will save the document and exit the application). To quit without saving, a user would type :q (for quit). However, if the document has been modified since it was last opened, Vi will complain. In order to bypass this security feature, type an exclamation point after the command, such as :q!.

Years ago being able to navigate successfully in VI was seen as a kind of badge of honor among programmers, sort of "REAL programmers know how to edit text in VI while wimps use [fill in the blank]". In practice, however, using a slow and difficult tool to perform a straightforward job is really more a mark of stubbornness than of any great ability. There are many other better editors out there. I'm partial to UNI-XEDIT, a clone of IBM's XEDIT editor that provides a full-featured interface and an intuitive scripting language.

However, after a steep learning curve, VI is a very powerful editor.

How do you install Solaris 10?

installing of solaris 10 is not so tough work. on an x86 based system , if you want the GUI then your RAM requirement are minimum of 256 mb and CD pack of solaris CD's or a solaris 10 DVD . then boot the CD-ROM and insert the solaris DVD then select " solaris " in boot menu and next step is select "1" for "interactive installation" then after few minutes a screen comes and select "next" then white window appears . " ENTER " in this window then choose " language option" after that u asked for "hostname" and "password" and after this you have get a screen and press next button . then u asked for " time settings"

and then press " install now" button ur instaaling starts

Why is Unix stable?

because its better than windows.

How do you assign value of one variable to another variable in unix?

If you are asking about shell usage, just assign the value as follows:

first=5

second=2

first=$second

What is the difference between .file and ..file in Unix?

Neither are actually files. They are references to directories, the current one and the parent directory, respectively. They can be used in file copy and move operations in place of explicitly printing the directory names. For instance:

mv ./* ..

would move all files from the child directory into it's parent.

What are advantages of cache?

When data is cached, it's stored locally for quicker access if what's stored at its origin has not been changed. The most common example of this is browser cache. If you visit a page that updates daily or multiple times a day such as at a news site, it will have to download fully every time it's accessed. If you visit a site that doesn't change anything between visits, then as long as the page's content is still saved in the cache it will load much quicker.

What is the Unix ABI?

First of all ABI stands for Application Binary Interface this describes:

* data type size and alignment; * how parameters to function should be passed; * how return value should be set; * how application should talk (make syscalls) to operating system; As you can see it describes very low level and how everything interacts. Each operating system does have it's own ABI, even virtual machines or programming languages run-time could have their own ABI. Sometimes it is referred as Function Calling Conventions.

For example all parameters in UNIX (assembly language) are passed by pushing them into stack in specific order. If we would talk about Linux and Windows parameters are put into CPU registers.

There is very little detailed information in one place that describes those conventions.

Why are tattoos so popular in today's society?

Alritey then, I don't think I can answer this one in 50 words or less tho....

The idea that the only people who get tattoos are military, criminals or merchant marine, is definitely a thing of the past....

So why do people get tattoos??? Rebellion. identity. and to be a non-conformist for sure. But how about as a rite of passage?? or to protect ourselves from evil forces, to show our Identity with certain groups, wealth or status, or medical therapy even beautification, and even to guarantee entry into a afterlife??? To these past reasons now we can add.....Conformity

Heck, to be a non-conformist these days you'd almost have to NOT get a tattoo....

So why so popular now....Because the media purty much controls what we think , do, see and hear. Now don't go thinking that , 'TatuBaron done gone and joined all them conspiracy theorists!!'... But it's true, we listen to what music the media is playing, we watch the tv and movies that the media talk up.....{Anybody remember the Blair Witch movie???? The media sucked me into seeing that and I STILL want my 7 bucks back!!}

So now we got tattoo reality shows on the tv......{Why do reality shows need scriptwriters?????} And every time one of our Nuevo Royals, celebrities, that is, gets new work done....CNN and FOX news are all over it.....

Ok, at this point I wanna make a statement....I ain't bitchin'!!, cause I love it, I'm busier than I ever have been, And while I do my art mostly for fun, if I ain't makin' no money, it ain't much fun....Hope this helps

-------------------------------------------------------------------------------------------------------------

People like to have something meaningful on them to remind them of something, it might be a portait, an object or just a word, its ssomething to remember your life that's meaningful to you.

What is the system file in Unix?

There is no the system file. There are many files necessary to create a working Unix system.

What is concurrency in Unix?

the unix is a form of group in operating system

Can you file a lawsuit if you find a worm in a bottle of olives?

Civil litigation can be filed for almost any reason. Therefore the question is not can a suit be filed, but are there sufficient grounds to win the case. The best way to obtain the answer is to discuss the matter with a qualified attorney. Most attorneys offer free or minimal fee consultations to determine if the person has grounds for a valid lawsuit. State bar associations and the American Bar Association offer a free attorney referral service. ABA, http://www.abanet.org

How will you know the time taken by each process or program on Unix?

Use "time".

For example instead of using "ls" to get a directory listing, using "time ls" will give the directory listing as well as the time to execute the ls command.

You can execute "ps -ef" and look in the TIME column to see how many minutes and seconds of CPU time each process has used.

What are BSD sockets?

A BSD socket is basically an early version of a POSIX socket. It is used to connect a Unix system to the internet.

What are vertical line symbol in unix?

The vertical bar symbol - |. It is a pipe or redirect. It takes the output of one operation and pipes it to another command or program before outputting. See related link.