Monday, May 24, 2010

What skills will I need before I start to learn Unix?

I know some C and C++ programming already.


What other background will I need to have?





Also, whats so special about Unix? Why are so many people using it?

What skills will I need before I start to learn Unix?
learn unix shell scripting. It will come in handy. For that matter, general programming knowledge can be useful, but you don't need it to learn how to use Unix. Unix, after all, is simply an operating system. As for your second question, the most common usage for Unix and Linux is as a server because it is ostensibly more stable than Windows boxes.
Reply:Jeff G. is right about shell scripting, but I would start by learning all of the command line commands. When I work in Unix (or Linux for that matter), I keep O'Reilly's Linux Pocket Guide (ISBN 0-596-00628-4 it lists for $9.95, but I think I got it for 7.95 at B%26amp;N) right next to me. There are a lot of commands you need to learn to do anything basic -- like log on and run a program.





Unix/Linux is not hard, it is just different. It is an older OS that originated in the 1970s. It was originally for big machines (there were no PCs), but Linux allows a Unix-like OS for the PC. Linux is inexpensive (most distributions are free), and it works very well on servers.





If you are going to write code on a Linux box, you will need to learn Eclipse (I assume you will be able to use a real IDE and not have to use vi for everything), gcc/g++ (compiler), and gdb (debugger).
Reply:Learn the shell commands to get going, get comfortable with command apps such as grep.


Learn the architecture and structure of UNIX (everything from folders to networking)


Learn how to write apps for UNIX in C/C++





Many people use it because it offers great flexibility and you own and can modify everything. Ownership and knowledge of everything in UNIX is what makes it appealing to programmers. Also, it is free, faster and has been known to be more stable and secure than Windows, although MS is doing a much better job with Windows nowadays.





Once you get comfortable with the keyboard in UNIX, you will realize how much time mouse navigations and clicks often waste.


How do you put a file in a file in UNIX. Ex. In directory Water project is file menu, and in file menu...?

How do you put a file in a file in UNIX. Ex. In directory Water Project is file Menu, and in file Menu is files Add, Remove, and modify? I only know how to put files in directories.





Also is there a command to make a file specifically a date file and not just a text file, i.e $%26gt; vi filename.

How do you put a file in a file in UNIX. Ex. In directory Water project is file menu, and in file menu...?
Not sure exactly what you mean. If you simply want to concatenate three text files named Add, Remove and modify and put the result in a file called Menu, you can use "cat Add Remove modify %26gt;Menu".





If you want to archive and compress them like with zip files on windows, you can use the tar command:





tar -zcvf Menu.tar.gz Add Remove modify





Then to extract them again:





tar -zxvf Menu.tar.gz





Regarding the command to make a file a 'date' file rather than just a text file, I can't really help since I don't know what you mean by a 'date' file.





But ls -l will list files in a way that shows their last modification time/date if you mean that.
Reply:If I understand your question right, you want to create a subdirectory. Generally in the "Save As" dialog, there will be an option for creating a new subdirectory (folder) and then you can put the file in there.





I am not sure what you mean by a date file. You can use the touch command to create an empty file which will have a datestamp of when you ran the command. You can then see the date using "ls -l"





I hope this helps

mothers day cards

How to set permanent environment variables from shell script in UNIX?

I have a UNIX shell script that needs to set environment variables, and those variables need to be available permanently after finishing the script execution. I searched a lot for a resolution with no luck!.





How can I do that?

How to set permanent environment variables from shell script in UNIX?
1) You CAN use .profile file under your home directory.





2) You can set the environment variables in:





If you are using ksh ( Korn Shell ) , then in .kshrc


csh ( C Shell ) , then in .cshrc





3) Use appropriate commands for different shells:


set or setenv ( within the .profile or .kshrc or .cshrc )





4) If its different shell ( for eg. bash , tcsh , etc ; then check the


man pages =%26gt; $man tcsh )





5) You may also check these files: .login


.logout








hth





VETRI





Software Engineering Consultant - ( IBM Rational Tools %26amp; Open Source Tools)





Global Software Engineering ( GSE )


Singapore





Vetri AT Global-Software-Engineering DOT com
Reply:chekc the .profile file in u home directory.


or for temporary purpose u can use export command


How can I create and manipulate an application object using Java in UNIX?

Yes, big question, but I really am looking for the UNIX equivalent of a Windows JScript that does the following (for example only, I realized I can't call a Microsoft application on UNIX)....





var objwd=new ActiveXObject("word.application");


objwd.visible=false;


objwd.Documents.open("blah");





...





Again, obviously the example above is a Windows-application specific example only. What I'm looking to do is merely emulate a similar concept except using Java (or Perl would be fine too, but I have so little knowledge of either). I want to create an object reference to a particular UNIX-installed application and then manipulate the object with the permissible methods associated with that object. I'm fairly familiar with the way to do this in Windows Scripting, but am quite new to UNIX and am trying to learn the various analygous scripting methods there. Any help (especially code samples) would be much appreciated.

How can I create and manipulate an application object using Java in UNIX?
Well first off, you don't really have COM (you can get emulators) on UNIX systems so you need to work directly with the applications and their APIs to interact with them. If you are looking to do this from Java, you would create your application using the jar file containing APIs from the application you are trying to launch. You could also see if a command line version exist for simple things like trying to open an executable, like "/opt/myapp/app.exe somefile.txt".





For many of the scripting tasks, you can generally find good examples in /etc/rc2.d for starting up applications (similar to what Microsoft services does but without the complexity of actually registering a service...you can just create a startup script and place it in there with a start number for sequence). Of course if you are running a UNIX system like Solaris 10, you do get Service Management Framework (SMF) that offers the features of dependencies and parallel start. I'm not sure if any of the Linux distros have a similar capability or not.





** Edit **


Are you looking to do this for a particular application then? I have plenty of Solaris experience going from Sun OpenWindows 4.x and Solaris 2.5 through Solaris 10. For better or worse (depends who you ask), you won't find VBA like references available on Solaris.


Should I start learning Unix or Linux??

I want to become a linux or unix administrator. Where should I start? How many hours per day? Should I pass a certification?


Buy books?

Should I start learning Unix or Linux??
if you're in it for the money go with UNIX. More money. Get Certs and books!
Reply:most companies have Microsoft or sometimes mac, i would go with one of thought (i proffer Microsoft)
Reply:I say both. Best bet is to go to school. Check your local Community College for IT, Computer Networking, Network Admin type programs. They general train you right to certification and in a broad spectrum of systems and hardware.





AAS Computer Networking, ISP Help Desk Tech(graduated in dec and job hunting)


Thanks people for the help with the unix in VM?

Ok now stupid question, I'm using this as a practice lab, so i need for the command line to be similar to sun microsystems unix (learning purposes) so does ubuntu have a command line that is similar or the same to unix?

Thanks people for the help with the unix in VM?
yes, since ubuntu is linux distribution and Linuix is unix clone.
Reply:Yes. Just open a terminal window. Applications %26gt; Accessories %26gt; Terminal You will get the $ prompt.
Reply:LoL


the graphical interface is just a coat over the unix command line,


you can acces the command line by using alt + F2

hide song

Printed Copy of Linux/Unix Man pages?

A couple of years ago I forget the URL of a site that sells the printed Linux?/Unix man pages in (i think spiral bounded)? Does anyone know if that site still exists?

Printed Copy of Linux/Unix Man pages?
Hrm ... Hate to answer a question with another but why would you wanted a printed copy of man pages? From my experience, so many man pages are out of date and incomplete. Just print the ones your want.


Getting file off remote unix/Linux machine?

How do I get a file I've created off of a remote unix/Linux machine? The machine has email capability setup but I am not familiar with the 'mail' commands. Any solution to pull the file from the machine would be appreciated.





Thanks!

Getting file off remote unix/Linux machine?
Chances are the remote machine already has ssh on it, or you wouldn't be able to access it.





Try using winSCP: http://winscp.net/





This will let you access the file hierarchy of the remote machine and copy files.
Reply:i no how to
Reply:yep win SCP is the best
Reply:make sure the SSH Daemon is running on the remote machine, then you can SSH into it and transfer it


Help Help Help w/ Unix?

Here is the question: Give a command line to display the types of all the files in your ~/unix directory that start with the word chapter, are followed by a digit 1,2,6,8,9 and end with .eps or .prn the solution that i came up with is this: ls chapter[12689]*.eps; ls chapter[12689]*.prn now my question to you is how can i combine that without having to use the semicolen, i know there is a command but i can't think of it. Please help!

Help Help Help w/ Unix?
Just do this





ls chapter[12689]*.eps chapter[12689]*.prn





Or if you want to be fancy





find ~/unix -name 'chapter[12689]*\.eps' -o -name 'chapter[12689]\*.prn' -print





More typing to do the same thing. However, "find" is a powerful command to know. Try "man find" or "info find".


Why dont they combine UNIX CUI with a right click GUI?

so you could theoretically right click on a filename and get a right click menu based on what is the context of the rightclick? for example when using secure shell telnet right clicking on a filename could produce an option to delete file... rename file... rather than having to use the rm command / mv command and the ability to include autocomplete of common commands, i..e, CUI mixed with basic GUI , context menus, tooltips, autocomplete, why not just mix the good points of both? CI=UI is easier on the eyes, faster to load and GUI is easier to understand or use. For example why dont they make vi editor work more like DOS EDIT with Menus (I dont mean Norton Editor NE for commands must be easily accessible via menu and shouldnt be a need to remember commands something like WordStar on Unix replacing vi ONSCREEN FORMAT MENU , PRINT CONTROL MENU etc. etc.)

Why dont they combine UNIX CUI with a right click GUI?
BECAUSE RIGHT CLICK MENUS AREN'T COOL. You don't want to be uncool do you? do you???








Theres truth to this

fresh flower

What is a good unix based OS for an old laptop?

I am looking for a decent unix based OS to run on an old laptop with only 64mb of RAM, I know they are out there. Just havent found the right one. Can you help?

What is a good unix based OS for an old laptop?
a few links to help out





puppy linux : http://distrowatch.com/table.php?distrib...


alinux : http://distrowatch.com/table.php?distrib...


damm small linux : http://www.damnsmalllinux.org/


feather linux : http://featherlinux.berlios.de/about.htm





Among these puppy linux seems to be the best..have fun
Reply:FreeBSD?
Reply:The BSD family does work well for older hardware. Also consider Slackware linux or DSL (damn small linux). Both would be fine for a Pentium II or slow machine with 64MB of RAM or less.


Help Help Help w/ Unix?

Here is the question: Give a command line to display the types of all the files in your ~/unix directory that start with the word chapter, are followed by a digit 1,2,6,8,9 and end with .eps or .prn the solution that i came up with is this: ls chapter[12689]*.eps; ls chapter[12689]*.prn now my question to you is how can i combine that without having to use the semicolen, i know there is a command but i can't think of it. Please help!

Help Help Help w/ Unix?
Just do this





ls chapter[12689]*.eps chapter[12689]*.prn





Or if you want to be fancy





find ~/unix -name 'chapter[12689]*\.eps' -o -name 'chapter[12689]\*.prn' -print





More typing to do the same thing. However, "find" is a powerful command to know. Try "man find" or "info find".


Red hat Linux and UNIX.. Is there much difference?

I worked on HP UNIX systems for long time, a company asked me to come and have an interview with them, they need a new emplyee to work with Redhat Linux systems.. I never worked with Linux.. is there much difference? Is there any good manuals or guides on the web to read about RedHat?

Red hat Linux and UNIX.. Is there much difference?
There are a few differences and a LOT of similarities. If you want a taste of what it's like there is a Fedora Core 8 LiveCD you can download from the official Fedora site (Fedora is the Testing version of Red Hat Enterprise Linux which is presumably what you'd be working on). Once you have it, assuming you are running X-Windows of course, opening a terminal and typing man %26lt;command%26gt; or info %26lt;command%26gt; or going to the Help item on the menu should get you to a pretty good idea of what is unique about it.
Reply:They are of the same "family", I don't think you will have too much trouble with the differences.


Here is a list of some of the common "red hat" commands


It is the same commands in all linux.


http://www.networkclue.com/os/Linux/comm...





Just visit http://redhat.com for real details and just do a quick search on the net for linux commands and operations etc.





The "Red Hat Linux Bible" is a very complete book on the system. Get it at your local book store or Amazon etc.
Reply:I prefer AIX.





More stable and more secure.


What is a good unix based OS for an old laptop?

I am looking for a decent unix based OS to run on an old laptop with only 64mb of RAM, I know they are out there. Just havent found the right one. Can you help?

What is a good unix based OS for an old laptop?
a few links to help out





puppy linux : http://distrowatch.com/table.php?distrib...


alinux : http://distrowatch.com/table.php?distrib...


damm small linux : http://www.damnsmalllinux.org/


feather linux : http://featherlinux.berlios.de/about.htm





Among these puppy linux seems to be the best..have fun
Reply:FreeBSD?
Reply:The BSD family does work well for older hardware. Also consider Slackware linux or DSL (damn small linux). Both would be fine for a Pentium II or slow machine with 64MB of RAM or less.

flower names

Anyone know anything about unix coding?

sample of unix coding, along with the interface


maybe u can tell me about the requirement in terms of hardware and all........

Anyone know anything about unix coding?
Do you know anything about Windows programming? If so it is pretty much the same on Unix. C/C++, and Java being the most popular languages.





As for hardware. You can get versions of Unix that can run on anything from you PC to super computers. For your PC the best Unix out the is Solaris 10, which you can get for free from www.sun.com. You can also go with Linux, which is extremely close to the pure Unixes. Most of what you learn on Linux would be true of Unix.


When we type password while logging onto Unix, it is not visible on screen. How is this achieved?

I want to make an application in Unix which accepts password, but it is not visible on screen, just the way it happens when we log onto a Unix terminal. Thanks :)

When we type password while logging onto Unix, it is not visible on screen. How is this achieved?
The stty -echo command is used to turn off the display while entering. after use use stty echo to turn it back on. In a gui, any standard password text box should do this automatically.


How to mirror a unix server?

Hello, I would like to setup a live mirror of my inhouse unix server to another offsite server. To clarify this I would like it so that anytime new files or records are created they would be created also on the offsite server at the same time via a internet connection.


Thank you

How to mirror a unix server?
Sounds like your looking for a continuous availability solution. It depends on the platform.


An "active active" clustered solution may do the trick. Fundamentally were talking about syncing disk across some geographic area. EMC offers a solution called SRDF/A that allows you to maintain


identical systems. It's a headache to set up but it works like a charm.





Good Luck.
Reply:You can also use 'rsync' for that. Report It

Reply:You can use rsync, read man page of rsync. OR visit offical site http://samba.anu.edu.au/rsync/


Which do you think is the best open source UNIX-type operating system?

One of the various Linux distributions - such as RedHat / Fedora, Suse, Debian, Slackware? Or would it be one of the others such as FreeBSD or another free UNIX type system?

Which do you think is the best open source UNIX-type operating system?
For me it is Fedora, that is the only distro I have had success in getting to run on my laptop, all others give kernel panics, to include Knoppix and Ubuntu, during the install.
Reply:It's all a matter of opinion. I've always liked slackware and slackware based, although reasently I been using xubuntu a lot.





http://www.distrowatch.com/

yugioh cards

How do i make a session file using a unix command window?

I need to make a session of my computer program's output for my programming class. I can't find how to do it in my notes or online. im sure it's simple, but im missing it. The only hint i got was





" Use Unix%26gt;script %26lt;sessionFile%26gt; to do this "





im assuming somewhere you input the "XXX.exe" and the destination file... but i cant seem to get anything to work.

How do i make a session file using a unix command window?
When you start your session at the xterm window, type "script %26lt;filemname%26gt;" at the prompt. That will open a file named %26lt;filename%26gt; that will record your session. If you just type in the command script, it will output to a file named "typescript".





Then you just run your program. When you are done, press CTRL-D.





For example I did the following on my Linux box..





mike@edsel:~%26gt; script sizes_script


Script started, file is sizes_script


mike@edsel:~%26gt; ./sizes





char= 1


unsigned char = 1


int = 4


unsigned int = 4


short = 2


unsigned short = 2


long = 4


unsigned long = 4


float = 4


double = 8


long double = 12


mike@edsel:~%26gt; Script done, file is sizes_script


mike@edsel:~%26gt;





I typed a CRTL-D at the second to last line.





For more info, type "man script" into your xterm. That will give you all the info you need.
Reply:check out this site


http://www.tech-faq.com/capture-unix-ter...


Will it affect my computer if i download the Unix version of O/S on my Windows Vista?

if i download the unix or linux version of O/S on my computer, will it slow down my computer's speed or anything similar like that? Any suggestions will be truely welcomed!!

Will it affect my computer if i download the Unix version of O/S on my Windows Vista?
If you download it, it will not affect anything at all... If you INSTALL it, you will have to decrease the size of your windows partition, or put a 2nd hard drive in, and it will install a "boot loader" that will allow you to select windows or linux to boot into when you boot.





It will not affect the speed or stability of your system at all, as long as you don't decrease your windows partition size to the point that windows doesn't have enough "breathing space" to run properly. (leave at *least* 5GB free to be safe.)
Reply:as long as you formally introduce them at each other


How do I stop netstat from listing the "Active UNIX domain sockets"?

When I run netstat it displays a huge table of Active Unix domain sockets but I only need to see the "Active Internet connections" part.

How do I stop netstat from listing the "Active UNIX domain sockets"?
netstat -t
Reply:try netstat -b


Network software:windows, linux, unix?

Please can anyone help me on Networking Software By discussing networking software with special emphasis on Windows, Linux, and Unix. Also if one can point me to sites that discuss extensively on the above. thanks

Network software:windows, linux, unix?
That would be about three books.





Good luck with your homework.

hibiscus flower

Best C book for unix?

I'm going to be starting a pretty big project in C and I'm unfamiliar with it besides the basic syntax. The last C books I bought were C for dummies, but that didn't seem to tell me much besides syntax.





Is there a good book out there that teaches the ins %26amp; outs of C specifically on unix?





Thanks!

Best C book for unix?
Try The C programming language by Kernighan and Ritchie, 2nd edition and Expert C programming (forgot author name) and may be memory as a programming concept (haven't read this, but I hear good remarks about this in programmer circles). For Unix in particular, I have read Advanced programming in the Unix environment and Advanced Linux programming. But my present job doesn't delve deep into Unix specific things at programming level, so I am yet to look beyond these books.





Besides these, as you develop the project, you'll find things that books don't have answer for can be answered by other people who were in similar situations. At that time, join comp.unix.programmer and comp.lang.c to ask other people your questions.


PHP Mail function with Unix OS?

Hi;


I have Unix server and i have tried the following code to send an email:


==%26gt;


%26lt;?PHP


ini_set('error_reporting', E_ALL);


ini_set ("SMTP","193.188.87.163");


ini_set ("sendmail_path", "/usr/sbin/sendmail -t -i");


$Msg= "%26lt;Table%26gt;%26lt;tr%26gt;%26lt;td%26gt;Name %26lt;/td%26gt;%26lt;td%26gt;" .


$_REQUEST['Yname'] .


"%26lt;/td%26gt;%26lt;/tr%26gt;%26lt;tr%26gt;%26lt;td%26gt;Email%26lt;/td%26gt;%26lt;td%26gt;" .


$_REQUEST['Email'] .


"%26lt;/td%26gt;%26lt;/tr%26gt;%26lt;tr%26gt;%26lt;td%26gt;The message is%26lt;/td%26gt;%26lt;td%26gt; " .


$_REQUEST['body'] . "%26lt;/td%26gt;%26lt;/tr%26gt;%26lt;/table%26gt;";


$FMail = $_$_REQUEST ['Email'] ;


$TMail = "alaa@cmc-amman.gov.jo" ;


$MSub = "CMC-Web Mail" ;


$fromname= $_REQUEST['Yname'];


$headers = 'MIME-Version: 1.0' . "\r\n";


$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


$headers .= "From: $fromname %26lt;$FMail%26gt;" ;


if (mail ($TMail ,$MSub, $Msg,$headers))


echo "Your mail have been sent";


else


echo "Sorry, your mail cant be sent";


?%26gt;


==%26gt;


the code is successful on localhost but failed when i uploaded it to the server ==%26gt; why?

PHP Mail function with Unix OS?
$FMail is null because you're setting it improperly.





$FMail = $_$_REQUEST ['Email'] ;





should be





$FMail = $_REQUEST ['Email'] ;





The code executes fine because there's no PHP error with it in the technical sense. However, you include a bad header with your FROM field, which is probably gumming up the works and filling up your badmail folder.
Reply:Have you checked your error log? It may already tell you exactly why.





Here are a few possibilities.





Is your local machine a Windows system? The mail function in Windows will use the SMTP setting. On Unix it doesn't. On Unix it looks for sendmail.





Try eliminating the ini_set command for the sendmail_path. Usually a successful Unix installation PHP already knows where to find sendmail.





You can also eliminate the ini_set for SMTP since the Unix version ignores it.





Your HTML string in $Msg should start with %26lt;html%26gt; and end with %26lt;/html%26gt;.





For HTML email you may need a To header, and it should not use the "name %26lt;email%26gt;" format. Try using just the email address in both the To and From headers. They are interpreted differently in Unix compared to Windows.





I hope this helps.
Reply:Verify the IP address of SMTP server. If not working, then please provide some more details like what error occured!


Learning how to use Unix?

If my current computer is using Windows OS and I want to learn how to use Unix, which program would I need?

Learning how to use Unix?
You need to install Linux (or FreeBSD). UNIX is not free, and it's not designed for pc's! There are many Linux distributions on the internet, so you'll have to choose one.


At the link below you'll find a list with all available distributions for the moment, and a classification! Ubuntu,Suse and Fedora are currently "most wanted" and are very good to start with!


Linux is free, and open source so there is lots of documentation for it out there! A place to satrt is at the second link:
Reply:in that situation you Can't.


DOn't panic.





U can learn UNIX by manuals, online help on ur current computer but u can't do hands on commands if you want to.


U'll need unix OS on ur machine. There's been a product in market which lets you install 2 OS on same machines but i don't know if its easy or not.





O/wise get a book or something and start from there.
Reply:Better You should Install Fedura Core Linux


It's Free and Can easily be installed.


Use Fedura Core 2 I had Worked with and Found Very usefull





Although The latest FC5 is quite impressive





RedHat Enterprises Linux EL 4 is just a copy of FC 2





If want to learn Linux Better Learn There Manual


There is No Book is Impressive as Manual


Linux is Quite Simple then UNIX and You can Easily Learn That.


Don't Worry the Time invested in Learning Linux would be used to shift to Any UNIX OS.Commands are quite similar in Linux and Unix


Sun Solaris is A very Good OS in UNIX DOMAIN


HP UNIX is quite impressive one





But the World is Migrating to Linux.Think Again.




















Regards


Alok Tiwari


India


I want to learn UNIX and also want to download it on my pc?

where can I get a free UNIX OS.....or any ideas about LINUX too?


I have no idea about these two OS .. I just need to learn them for ASIC and Embedded programming jobs...any help....

I want to learn UNIX and also want to download it on my pc?
you can download freeBSD for UNIX.


As fore LINUX, there are several different types and each has their strong points. I personally like Fedora from Redhat.





Both are free.
Reply:http://pclinuxos.com is my choice. Includes assemblers, compilers, editors for all major languages, even, Fortran77, Cobol, Pascal, and Perl, Ruby,QT, C++, and more..





LiveCDrom, boots in CD, loads a RAM disc. Also can run entirely in RAM if you have 1Gb.





Installs on a 6.4 Gb drive or partition, contains QT Partitions Editor, "QTPartEd".





310 LiveCDroms at http://livecdlist.com include BSD and GNU/Linux.





http://distrowatch.com has reviews of them, and DLs.

flower shops

How is a linux/unix system used nowadays.?

what is advantages and disadvantages of unix compared to windows os.

How is a linux/unix system used nowadays.?
1) Advantage


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


- It is more to industry user.


- It process faster than window OS.


- Can write a script to control or automate certain process


- Fast data sharing in the network.





2) Disadvantage


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


- It is not attractive if compare to windows OS which is more graphical.


- It is not user friendly since all the we need to type in our command.


- It is not suitable for running GUI program that need high graphical and sound requirement.
Reply:Please not Windows vs. Linux.





Search the web because I feel sorry for the person who's gonna sit here and list all the pro's and con's of both and make try to make a comparison.
Reply:Yes, if you just google (sorry I mean Yahoo! search) for linux vs windows you can find a lot. If you have specific questions about Linux you can use a resource like Linux Boards http://www.linuxboards.org


Backing up files using Unix?

what is the command/instructions to backup a file onto an external hard drive on a unix machine? thanks in advance.

Backing up files using Unix?
if the username of the computer is Maicia, and your external hard drive mounts at media/usbdrive then you would enter into terminal:





rsync -av /home/Maicia /media/usbdrive
Reply:if you want to compress the file and backup to an external disk





use tar or jar to do this








man tar





man jar


I want to install unix / telnet in my windows XP system.?

i want to install unix / telnet in my windows XP system. I like to know how i can do that and what and all the tools i require for that. I request to send me some details about that...

I want to install unix / telnet in my windows XP system.?
Ok... the first tool you need is the internet manual. Dont get me wrong, but your question is completely random.


Unix system is i guess, a linux that you want to install?


Telnet already comes in windows. jsut go to start, run, type TELNET and hit enter.


there, telnet.


Now, if you want to know about Unix systems, well, xp is in a way one,... heh. diss me distro users :p


Anyways, back on topic. id say use yahoo but yea, use google. Type "Linux basics" and start reading.


You cannot set up linux inside XP unless you use virtual machines, and unless you know what THAT is, i doubt you even need to learn it atm.


Go google, and if you jsut wanted telnet, you got your answer.
Reply:Unix is an OS more powerful than windows. You can not run windows applications on it. It has it's own applications and market.





For telnet use hyper terminal.
Reply:Research cygwin.
Reply:unix is one of the worst operating systems on the planted..i wont suggest doing that
Reply:If you are refering to the telnet deamon (being able to telnet to your XP PC like you can on a unix system) then go to


Control Panel -%26gt; Administrative Tools -%26gt; Services


Find Telnet and start it.





You can now telnet to your PC.


Default writable place in unix?

Does a place exist, which is writable by default for arbitrary program in UNIX operating systems (more precisely CentOS4)?





I want to create file to remember number of program runs.





Maybe some tmp folder or etc?





Thnx.

Default writable place in unix?
There's /tmp, though that may or may not get erased when you reboot. /var might be useful too.

flower power

How do I repeat last command in Unix ksh?

Been away from Unix for a long time. How do I make Unix repeat the last command entered. I'm using ksh

How do I repeat last command in Unix ksh?
I think the answer you're probably looking for is


simply to turn on "command line editing". This


essentially gives you a one-line "vi" or "emacs"


editor on the command line history.





To use "vi" mode, enter the command:





    set -o vi





You then need to hit the "escape" key whenever


you want to edit your history. To recall the


last command, just type "k" (which is "up" in


"vi"), which will display the last command. You


can move around with normal editing commands


like "$" (go to end of line), "fx" to find the


letter "x", or just hit the "return" key to


enter the command. By the way, instead of


using "k" to go back a single command, you can


use "/pattern" to search for the last command


which contained "pattern" (since "/" is the


search command).





In summary, to re-do the last command:





    1) hit the escape key to enter edit mode


    2) press the "k" key to go back one line


    3) press the "enter" key to execute the command








To use the "emacs" mode instead, enter the command





    set -o emacs





In this case, you can go up and down in the history


by using ^p ("control p" for previous line),


^n (next line), ^f (forward one character),


^b (backward one character).





So, to re-do the last command:





    1) "^p" (hold down "control" key and strike "p")


    2) press the "return" key to execute the command





All that being said, there is *another* history


mechanism in ksh that you might be asking about.


It is the "fc" command (see "man fc"). There's


usually an alias called "r" for a specific "fc"


command, which can be used to re-execute the


previous command:





    $ alias r


    r='fc -e -'





By typing "r" followed by the "return" key, you


will re-do the last command. Similarly, if you


type "r pattern" followed by the "return" key,


you will re-do the last command which contained


"pattern".





.


How can I set environment values to shell in unix from the program I run?

How can I set environment values to shell in Unix from the program itself. So that the customers need not set any values by them and prevent any confusion at customer end.The value must be set each time I execute it. How can I do it...can some one help me regarding it...?

How can I set environment values to shell in unix from the program I run?
Im not sure that you mean setting them for the entire system, or for one program.





If you look in the /etc/ directory there are setup files for each shell. Such as csh.cshrc or bash.bashrc (they might not be named that). Those files set the system wide variables for anyone entering that shell. You can also see that they use the "set" command to do that so if you are talking about setting a variable for a particular program then thats how you would do that also.
Reply:You can store the values in a file and read the file each time the program runs.


Network software:windows, linux, unix?

Please can anyone help me on Networking Software By discussing networking software with special emphasis on Windows, Linux, and Unix. Also if one can point me to sites that discuss extensively on the above. thanks

Network software:windows, linux, unix?
This site may help.





http://en.wikipedia.org/wiki/Operating_s...


"shared memory construct of unix system V"?

if i need to implement shared memory construct of unix system V using c or c++, then where can i find the guidelines?


a couple of links would be appreciated.

"shared memory construct of unix system V"?
Man pages:


http://man.he.net/man2/shmget


http://man.he.net/man2/shmat


http://man.he.net/man2/shmctl


Here are also examples:


http://notabug.com/2002/coherent/man/shm...


http://www-03.ibm.com/servers/enable/sit...

clinton cards

How to access the Progress Database in Unix server, from a Windows Client using C# or VB.NET Program(Source)?

We are using Progress Database in Unix server and Our clients accessing this database from Windows client machine. Now I have a requirement to import the Progres database(from Unix Server) to SQL server(Windows Machine).


And I want code a program(with C# or VB) to do the entire thing. How should I start?

How to access the Progress Database in Unix server, from a Windows Client using C# or VB.NET Program(Source)?
C# and/or VB.net is not the way to essentially replicate a database to SQL Server. SQL Server itself has SSIS ("SQL Server Integration Services"). That's what you should investigate.


Difference betweem Windows and Unix/Linux website hosting?

Many web hosting companies advertise different prices for Windows and (L)Unix web hosting. What is the difference between the two?





Thanks

Difference betweem Windows and Unix/Linux website hosting?
LAMP will give you the most bang for your buck... (Linux Apache MySQL PHP)





It's far more reliable, doesn't crash nearly as much, does not have all the security issues as Windows/IIS. Uses far less resources and you can virtual server far more sites on the same hardware as opposed to running Windows/IIS.





As for server side languages... I am biased to PHP. There's tons of premade scripts out there to get you started... things like WordPress for blogs to phpBB for message board.
Reply:Basically Windows servers will run IIS, probably support Asp or Asp.net and SQL Server whereas *nix servers will be running Apache, PHP and MySql. All of the *nix software is free, so it only costs them time and labor to set them up. The Windows stuff is not free, SQL Server and the Windows OS cost $. The more demand their is for Windows servers, the more money the hosting company has to spend on maintaining its services, and so this is probably where the disparity in cost comes from.
Reply:Linux is still in open source that is the reason you will find linux hosting are quite cheaper than window, this could be one of the reason you find the differences between two in prices.
Reply:Depending on the type of your website, as an experienced webmaster I suggest windows web hosting and one of the two following services: BlueHost %26amp; BlueFish. Both of mentioned services are Multi-awarded, offering a Full-featured service only $6.95 a month. Their service is really perfect, reliable and uptime.








You can go to BlueHost website, a Multi-awarded affordable Web Hosting, through the address below:


http://bluehost2008.atspace.com





Here I have copied and pasted its features from their website to see:





- Multi-awarded


- Free Domain Forever


- 600 Gigabyte Hosting Space


- 6,000 GIGS of Transfer


- Host UNLIMITED Domains


- 2,500 POP/Imap Email Accounts


- SSH (Secure Shell), SSL, FTP, Stats


- CGI, Ruby (RoR), Perl, PHP, MySQL


- 2000/2002/2003 Front Page Extensions


- Free Site Builder


- 24/7 Superb/Responsive Sales/Support





OR





Go to BlueFish hosting, a Multi-awarded Business Web Hosting, through the address below:


http://bluefish2008.atspace.com





Here I have also copied and pasted the features of mentioned service from their website to view:





- Multi-awarded


- 6 GB Storage Space


- 100 Gigs Data Transfer


- Unlimited Email Accounts


- Detailed Website Statistics


- Unlimited FTP Accounts


- Easy Web Builder Utility


- Shared or Dedicated SSL


- Business Site Templates


- OS Commerce or Agora


- Simple PayPal eCommerce (beside other credit cards)


- MS FrontPage Extensions


- Unique IP's Available


- PHP %26amp; 5 MySQL Databases


- phpBB, Blog %26amp; Chat


- CGI-bin Access %26amp; Scripts


- Register A Free Domain (like www.Yourname.com) or Use An Existing Domain.


- $6.95 a month





No-Risk Hosting


You have 30 days to test their service and if you choose to cancel you will receive a full 100% refund. No cancellation fees or other hidden charges.





Real Customer Support


Expect a helpful Phone Call from them when you sign up! They want to make it easy for all levels of customers to keep their websites running smoothly. So they provide a toll free phone line and plenty of one-on-one help at the start when you need it most. Their customer support representatives will call you shortly after sign-up to help you get started and answer any questions you may have.





Good Luck!
Reply:The difference is what server side language and database will you be able to use.


Before you look for hosting you need to know what databases(Acces, SQL Server or MySQL) will you use.


You also need to know what server side languages to use: ASP, PHP or JSP.
Reply:Linux is free... Windows is not.
Reply:Windows and UNIX are in fact two different systems and of course we are referring to computer systems. A web host uses computers, (we shall refer to them as servers, just computers, but sometimes larger) to host websites, and all computers need a operating system, so Windows and UNIX are the operating system. The Windows used is normally Windows NT or 2000 and of course as you know Microsoft charges for it's software, while UNIX is an open source operating system, this means that the original creators of the system have given up the rights and anyone can use it, change, improve or do anything they want with, free of charge.





But Windows servers have also it's positive sides, they are compatible with Microsoft applications, and fully support Microsoft FrontPage, Microsoft Access and MS SQL, they also offer advance-programming environments and features such as Active Server Pages (ASP), the ASP.NET framework, Visual Basic Scripts, MS Index Server, Macromedia's and Cold Fusion.


How to check what unix users r doing?

I wd like to check what unix users r doing in their session which command they executed.. I wd like to enable a log for all this based on their input and output..





pls provide me command for the same.


vivek

How to check what unix users r doing?
Best thing would be to install/enable some system wide auditing functionality that often is available in your OS already (eg Solaris Unix). The daemons will create logfiles for you and you can create reports for almost every activity.





Under Linux it's the psacct or acct package you're looking for. Under Solaris something similar, it depends what NIX you are dealing with but you can search for audit in packaging systems.





Commands 'lastcomm' and 'sa' will give you all you need for reporting.
Reply:As the previous answer suggests, you can get a snapshot


of current activity with "ps".





The historical way to see a "log" is via the "lastcomm"


command. This only works, however, if you've turned


on extended accounting, typically with the "acctadm"


command.





There are often also more sophisticated


resource management/accounting packages available,


but this is pretty universally available and may satisfy


your needs.
Reply:You can get information about users logged in currently using the command line utilities 'who and finger'. If you want to know what command is being used by which user, you can use options of the utility ps like 'ps aux'.
Reply:Also use w command, it can show the command too :)


What is Linux and Unix and what's the point of them?

I know Linux is a 2nd operation system. What would the difference between Linux and my Vista be? Why do I need two operating systems on my computer?





And what is Unix?

What is Linux and Unix and what's the point of them?
To answer your first question, Linux is a Unix-type operating system. This will almost definitely lead to the question, "what is Unix?" Unix is basically, an operating system that was started eons ago by a lot of clever people, that has grown and grown, and is as powerful as any other operating system that you can have, but is also FREE!





To answer your 2nd question, I have just made the first point, Linux is widely and freely available, Vista is widely, but not so freely (I know you can get free downloads through some channels e.g. Academic Use). Also getting a bit more technical, Vista is very demanding on a computer's resources (RAM, Processor). A computer with 1 GB of RAM will just about be able to handle Vista, but won't allow you to harness its power properly. To do that, you'd need to pay more. With a Linux-based system, (Here I need to do some name-dropping so here goes - Ubuntu -my fave, Suse, Debian) 1GB of RAM is more than enough, and you don't even need that much hard drive space to get the whole operating system. The main point though, the whole idea of Linux-based systems, is that they are Open Source software, which means that a lot of smart, kind, computer boffins help to make it. And if something breaks or isn't working (in terms of software), they'll all help to fix it. Still at no charge! I'm sure you know this wouldn't be quite the case with Microsoft. The arguement is that with MS, when there's a problem, they can cover it up for as long as they can get away with because they have an image to protect, haven't quite figured out how to fix it as there are limited human resources, etc.


I hope I don't sound anti-Microsoft though, because I'm not really, (I'm typing this from an XP computer). But I don't like the idea of asking (and eventually forcing) people to get Vista when XP is still fine and dandy and beautiful and so popular and suits me just fine.





To answer your 3rd question, you don't need two operating systems on your machine. Except you really want to do some deep computing work, and experts/random know-it-alls recommend its best for you to use another OS.





And your final question, well, I think I already answered that. I have an installation of Ubuntu on a Virtual Machine, which is based on Linux, which is based on Unix. Which is quite a decent base to base things on. Whether or not is better than anything else, depends on a lot of factors, most important of which is personal experience.
Reply:Unix isn't a second operating system. It's an operating system. It was designed by Bell Laboratories, from the beginning, to be secure when multiple people have access to your computer.





Linux is a kernel - the heart of an operating system. When used with gnu utilities, you have an operating system that is functionally very similar to Unix, but is free (as in "free beer"). If someone has written an application for Unix or for Linux, it normally works on either, although you may have to recompile it, usually an automated process that may take a few seconds.





Windows is an *proprietary* operating system. It evolved from DOS, which thought there would be only one operator for the computer, and you'd keep the computer secure by locking the door when you left. Obviously *that* doesn't work if you have a wire running to the internet and 3 billion rapscallions trying to interfere with your peaceful enjoyment of the computer.





You don't need two operating systems. You can use Linux, which is usually pretty pricey (although Solaris is a Unix that is free), or you can use Windows, which is pricey and unsafe, although it allows you to run most software, or you can run Linux, which is free for the download and secure.





The disadvantage of Linux is that there's a limited amount of software available for the desktop, even worse than a Mac. And there aren't drivers for all the printers, scanners, etc., that you might want to add to your computer, although the situation there is a lot better than a Mac.





(Mac's operating system, OS-X, won't run on your computer. It's a version of BSD, which like Linux is a Unix workalike, but it's not free. In fact, it costs $129/year to run OS X.)
Reply:Linux is a better operating system then windows. It lets you pretty much do whatever you want. (unlike windows) Its sorta like dos.





Think of it like this...You buy an apple pie from the store but someone else made it so you dont know whats in it. (Windows) or You make your own apple pie and obviously you know what goes into it. You can alter it in many ways everytime. You can add more eggs and subtract more milk. (like Linux)





Linux is much more secure then windows. And, you dont need to use Linux and Windows. You can use one or the other.
Reply:Linux and Unix are stand alone operating systems. No one says you have to have Linux or Unix or for that matter Windows. There are many who only run Linux, and Sun Micros's Solaris 10 (Unix) is also free now.


Those who run Linux or Unix as a second OS do so more times than not put of curiosity.


Actually Unix is older than Windows having been written in 1969.
Reply:You don't "need" to have Linux on your computer, but many people like it because it is open source, which means you can access all of the source code for the operating system, something you cannot do with any Windows product. The main difference is that to successfully run Linux, a person needs to be somewhat tech savvy, as there is much more stuff that needs to be done manually when setting up the OS, particularly with drivers, etc. Some of the newer distros of Linix have more drivers built in, but there may still be some manual tweaking that needs to be done. UNIX is an operating system designed for servers upon which Linux is based. UNIX was developed around 35 years ago, and used primarily for servers/mainframes.
Reply:You don't ever need two operating systems... unless you need two operating systems ;-)





If you don't know the difference, you will either get a PC with Microsoft Vista or an Apple with Mac OSX.





The differences between Linux (with the hundreds of different distributions) and UNIX (which also comes from a variety of software vendors) is simply too numerous to answer here.


.

trading cards

I want to learn unix shell programming.looking for a teacher ...ready to pay for it?

I know little bit unix..I know all commands...need help to learn scripting in korn or bourne shell .I might need 2 or 3 hours of help .I will pay for help.I might need help in future also.let me know how much hourly

I want to learn unix shell programming.looking for a teacher ...ready to pay for it?
I can get you started.


I will take $50 (accepting paypal) for 3 hours


Contact me if interested.


You can find cheaper freelancers


at


http://expert.myitcareer.org/
Reply:Better buy the books or use INTERNET best teacher


Anyone know anything about UNIX computers?

i know it compares to Macintosh...theres alot i cant do with my computer cause its a Unix...can i change that, for ex: get another hard drive?

Anyone know anything about UNIX computers?
Not only does Unix "compare" to "Macintosh", but


the current version of the Apples run *on top*


of a particular variant of Unix (BSD Unix). The


displays and commands that you're using are a


convenience layer with Unix doing the work under


the covers.





The thing is, if you're not comfortable with Unix,


you might consider replacing it with Windows.


There's a cost to that, but if it makes your


computer useful to you, maybe it would be worth


it.





As for getting another hard drive -- sure, why


not? I don't understand, though, how that will


help you with the problem of not being able to


do a lot of things because of Unix.
Reply:u can get another hard drive for ur unix computer its ok you just have to mount the volumes. there is alot more you can do with unix than u used to be able to do. there are versions of windows for it. like x398 t


I like the whole open source aspect of Linux / unix, but I'm worried about compatibility?

Does anyone out there use Linux / unix and what problems do you have communicating with people using mac/PC, crossover applications like the unix equivalent of MS Word, Excel, etc.





Does it make sense to switch to Linux / Unix for a computer dunderhead like me?

I like the whole open source aspect of Linux / unix, but I'm worried about compatibility?
In broad terms, I find that Linux is compatible with everything, but not everything can be compatible to Linux.


By this I mean that you can run Linux as your main OS, and then on the Linux Box, using VM Ware or a VM platform, you can run anything you please. Very similar to the way Macs can work with PC os's using a VM ware style add on. Plus Linux is not resource hungry, and even if your Vm Ware using Windows System on the Linux box crashes, your Linux box will not.


Load testing I have seen on Linux servers has also been amazing... this System will provide big cost savings for some educational institutions
Reply:Try:


http://gizbuzz.co.uk/2006/linu...


But thats just the start. You will have to get a Book, basically.


Search on any aspect of Linux you find in the above site, and take it from there, go to any Linux forums, and whilst many will recommend one Linux or another, Report It

Reply:try and make an informed choice for YOUR system basically because Linux is so very configurable, and useful for many things, not just running a Box that rarely if ever Crashes Report It

Reply:im on a linux box right now....


basically the only issues is with games and programs that are specific to windows....all linux distributions have something similar to microsoft office. the only differance is the file types you can save ***. if you want to open a text file you made in linux, save it as a rich text format or something that you know windows can open. ther ARE ways to network linux and windows, (im doing it now) and mozilla works on lots of linux and windows computers.


How is C++ on Unix different from C++ on Windows?

The only difference I have encountered is fork/exec calls that is there in Unix. Is there any other difference?

How is C++ on Unix different from C++ on Windows?
The language itself is not different.





Writing applications for the OSes is different because of things like how the underlying OS manages resources such as processes, threads, semaphores, mutexes, pipes, etc. Unix (and Linux) generally use Posix, while Windows is its own animal.

online flower

Where is some free unix training?

i would like to learn unix does anyone know of good website that offers this type training?

Where is some free unix training?
Hope this helps,





http://www.linux.org/





Have fun and be safe.


Is Learning Linux or Unix lead me to a good job?

If yes , how long to become an entry level linux or unix adminstrator?





Thanks

Is Learning Linux or Unix lead me to a good job?
There is tremendous demand for unix professionals in the market in all major companies ,however to get a decent job with a good pay there are some things you should be well versed in the following





1) Unix commands


2) Unix file system


3) Unix acess permissions


4) Shell scripting (very important)


5) Use of a unix text editor such as vi or emacs





To become a system administrator would take atleast two years of dedicated work on unix and you will have to clear one system administration certifications such as solaris or RHCE





Sorry if the answer sounded harsh but unix is not easy but once you learn it well you can be sure money will flow in
Reply:The future is Bright for Linux and thus for Linux administrator


if u become expert in Linux then u can get a very good job





search for jobs in Monster.com u will get a decent job


How can I use a.htaccess in my Unix home directory which makes homepage.html the default loaded document?

I want to create a plain text file called .htaccess in my Unix home directory which makes "homepage.html" the default loaded document a browser goes to when searching my document root directory on your Web server.


would you please help me, what is the code I should put in the text file?


Thanks

How can I use a.htaccess in my Unix home directory which makes homepage.html the default loaded document?
.htaccess is used to password protect a directory, not to set the default file name for a directory. This is something you have to do from your web server (which one are you using? Apache?).





The Apache help files should tell you how to set up your default file names. "index.html" is usually the standard default.
Reply:If you have the proper rights delegated to you for your home directory, the Apache directive for your htaccess file is:





DirectoryIndex homepage.html





(you need AllowOverride Indexes (or all))





The alternative is to use mod_rewrite, which requires a different override.





RewriteBase /~youruser


RewriteRule ^$


RewriteRule homepage.html





(The rewrite is a little weird because in .htaccess, a request for just the current directory is actually an empty match)





note: depsite previous posters answer, htaccess is not tied to authentication.


I'm not able to connect sqlplus through UNIX?

When i try to access sqlplus using UNIX, it just says sqlplus not found.


Can anyone help e regarding this

I'm not able to connect sqlplus through UNIX?
PATH needs fixed. If sqlplus is in the current directory, you will need to add . to your path.





You'll need to find the program. Is this part of Oracle? There's a whole environment that needs setup for that to work right.





Once you have your path setup propertly, "which" should work.





You may want to see what packages you have installed first (pkginfo or the like).
Reply:if you're trying to run it as root make sure you prefix it with the whole path:





./sqlplus


/usr/local/bin/sqlplus





or something like that.





if you do not run it as root then there is no much details in the question. is sqlplus in the path?

hawaiian flowers

Yahoo Messanger in Unix O/S?

Can we use UNIX o/s as our regular windows operating system for browsing internet, chatting %26amp; downloading stuff like that

Yahoo Messanger in Unix O/S?
Why not ?


For example the Sun Solaris 10 OS (the most widely used unix OS) has a very very attractive GUI based on the Java Desktop.I can say that this desktop is a very friendly and most attractive desktop I've ever seen.





Well seeing the following screen shot will probably ansewer most part of ur questions!





http://www.sun.com/2003-1104/feature/ima...





If you want to have more information pls have a look at the following link:


http://en.wikipedia.org/wiki/Java_Deskto...





Cheers


Friday, May 21, 2010

What is a unix system administrator?

what is a unix system administrator? do they make lots of money? what do they do?

What is a unix system administrator?
As a linux sys admin, you have to maintain a linux systems. Typically, they're used as servers. You have to be knowledgeable about installing linux, maintaining permissions for users, how to setup services, and how to install new software. Depending on what the server is used for, you may need to do things like systems engineering where you have to architect a load balanced cluster of web servers or build a cluster of high performance servers.





Linux sys admins can vary greatly in pay range. Entry level postiions in Los Angeles can start from 35k. However, if you start doing cluster work, you can make upwards of 100k with 5-7 years of solid experience.


I am learing Unix, while saying example they are always using foo and bar? why they are using like this ?

I used to learn unix in books and in the internet everywhere if any example i am reading they are saying foo and bar..





What is the reason did you know any guess ?

I am learing Unix, while saying example they are always using foo and bar? why they are using like this ?
Think of "Foo" and "Bar" in programming, as the "X" and "Y" of math.





They are metasyntactic variables.





Here is a link which attempts to further define these terms, The Etymology of "Foo";
Reply:the above is superb Report It

Reply:"Foo" is a short form for "function", I suppose. They give names like "foo" or "foo_2" to examples of functional procedures in programming. For instance - in "Let's talk Lisp" by Siklossy if I remember correctly.





Unix is famous for omitting vowel letters in names (as in Arab writing). They use only consonants if you can guess the omitted vowels without ambiguity.
Reply:I don't know how it applies to learning Unix, but in the military FUBAR is an acronym for "F**ked Up Beyond All Recognition" - It was used to indicate the work one had completed was totally unacceptable.
Reply:Unix is the worst "operating system" ever to come out of hell. Don't wase your time. There is no reason for how anything is done in Unix, except for sheer stupidity. Want an example? Type in:





man tunefs





The last thing in the description of the command they mention "tunafish". When you come up with a good reason for this...


What are the main functions of Unix and Linux ?

whats the difference between Unix and Linux . Which one is user friendly . and what are the advantages of using Unix and LinuX.

What are the main functions of Unix and Linux ?
The main difference between Unix and Linux is that Unix is owned by a company (SCO, I believe) and costs a lot to buy, and Linux can be downloaded, installed, and even resolod for free.





The advantages to using both Linux and Unix are that they separate the functions that an ordinary user can perform, versus what a "system" user can perform (it's more complicated than that, but you get the picture). This means that an ordinary user cannot install a virus which affects another person, for example, or delete everything on the machine by accident.





Linux has an advantage over Unix, in that it is Open Source. What this means, is that hundreds of people around the world have written programs that you can use /for free/.


An example of the benefit of this is that from a freshly installed distribution of Linux, you will usually have a high quality graphics program (Gimp), an ISO-rated office suite (OpenOffice.org), and many other tools. In Windows, by comparison, after spending your hundreds of dollars (or whatever) on the operating system, you now have a computer which you can use to ...play freecell.





As for user-friendly - that is a matter of opinion. Admittedly, it has been very difficult to use in the past. I've been using Linux since RedHat 5, which was released some time in the last century.


Personally, I've been impressed by the usability of Mandrake, Suse, Kubuntu and Fedora. I currently use Fedora Core 6 on all my machines.
Reply:this is a big question. answer won't fit here. you might want to google for "UNIX vs Linux" and follow the results





cheers,
Reply:This is indeed a large topic of discussion. However we can boil it down to this. Linux is a child of Unix. There are a number of different variations on Unix as there are linux. Linux primarly was developed by one guy who wanted the same features with a much smaller footprint, and that could run on just about anything. With that said Unix is primarily used on high-end enterprise servers that require high availability and stability. Unix predates windows and as such has much respect and a strong user base.








If you are trying to choose between a Unix flavor and Linux flavor. Linux is your choice. You'll find the most support both hardware and user groups(tech) support. There are a number of different flavors (versions) of Linux, produced by different vendors. There are pros and cons to each distribution, but in essence they are all the same.





I would suggest starting with Ubuntu. It's one of the easiest distros to get running right out of the box. It will install with GNOME as your desktop manager.... Just check out the site and do some research. You'll like what you see.

garden furniture

Pc will not boot windows after unix install?

Installed kubuntu unix on hard drive removed everything before doing so and worked fine.Im now going to sell pc to friend and she would like windows installed back to hard drive (windows xp media center edition 2005 OEM) that i have on disk. When i try to boot xp from disk nothing happens so i thought to solve problem i will install new hard drive and boot from disk again, but it will not boot from cd the new hard drive is detected in bios and is all set up to boot from cd then hard drive.





Tried unix cd and that boots fine tried xp on diferent and pc and it works fine





Help please

Pc will not boot windows after unix install?
This is a bit of a guess but if you installed Ubuntu and used the entire drive for the install I suspect you may have deleted the hidden partition that has the OEM copy of windows on it, the windows CD you are using is possibly only a restore CD so there is nothing to restore, if this is the case you would need to install a full copy of Windows.


I need a UNIX c shell script to move files 30 days old to another directory.?

I need a UNIX c shell script to move files 30 days old to another directory.

I need a UNIX c shell script to move files 30 days old to another directory.?
Try using find and mv
Reply:read the manpages of find and mv.
Reply:ls -l , find files 30 days older, mv


Or else you may contact a script expert at websites like http://askexpert.info/ to code the shell script for you.


How to run UNIX script from ASP.NET?

Hello Guys,





I need to run UNIX scripts from ASP.NET page.


Please suggest me something for the same.





Awaiting your responses.





Cheers !

How to run UNIX script from ASP.NET?
ASP.NET to UNIX bridging is a very difficult task fellow. Are you up to the challenge?


One methodology is to just re-write/re-create said scripts in ASP.NET.


The other choice is cygwin.


http://www.cygwin.com/


Set that baby up and you will be running UNIX in native windows in no time. Then just link to a call to cygwin.exe with the correct parameters for the script.


Read the cygwin help to learn how to do it.


Pipe operator in Unix!?

what is the usage of pipe operator in unix? how does this damn thing work? Please explain with an example.

Pipe operator in Unix!?
Each command has standard output and standard input. The pipe operator just makes the output of the last command the input of the next command. Here's a simple example you can try:





echo hi | sed s/hi/bye/





Sed will transform the output of echo, which is "hi," into "bye," and you will see it on standard output.





Cheers,
Reply:The output of the last command will be the input of the next.


ls -al|grep myfile


ls -al would usually list everything, grep filters the output of it so that only the line with string 'myfile' is shown.

flowers delivery

Suppose that a UNIX kernel supports threads. would u expect the thread system call to take about the same amou

suppose that a UNIX kernel supports threads. would u expect the thread system call to take about the same amount of time to execute as fork()?Why and why not?

Suppose that a UNIX kernel supports threads. would u expect the thread system call to take about the same amou
Actually, a call to create a thread should (provided it were written properly) take less time to spawn a new thread. The fork() function, however, actually spawns a new process.





The difference between processes and threads is that a process is a thread which contains all of the resources that are used by the applications. Therefore, you have a "thread" and you have a "thread plus resources" (process).





Because there is extra setup time involved in setting up the resources for the process, the fork() call would take more time in setting up a process than it would a thread.


What are some UNIX distributions??

Besides Solaris and which is the most popular? Also why would someone use unix say over linux ubuntu why use linux?

What are some UNIX distributions??
Solaris would be the main one used in enterprise, the other well known one would be OS X Leopard on the Mac. Linux users prefer the various distros of Linux because they are FREE and VERY customizable. As for why someone would use a from of Unix like BSD over Unbuntu Linux - horses for courses, use what suits or what you prefer.
Reply:It has been a long time since I looked at Unix (I never possessed it, never installed it, never used it, except for very limited tasks) but as I recall, it was rather expensive. Probably also rather limited compared with the various Linux distros coming out these days.

mothers day cards

Need to learn Unix. Easiest way on win XP laptop?

I wanna learn as much as possible on Unix. What is the easiest way to do that if I have a laptop with windows xp on it? I prefer not to format my hard drive. If possible, can you help with links to do that?

Need to learn Unix. Easiest way on win XP laptop?
Use either virtual PC (free from microsoft) or VMware (also free just need to request a key from them). Once you set these up, you can run unix on a virtual version of your computer from within windows, without it effecting your current operating system.
Reply:Unix is a lot like Linux. You could get a virtual environment and run it there or get a live boot-cd and do it that way.





http://www.digg.com/linux_unix/Official_...





www.knoppix.org


Command line question unix/linux file commands?

If I have a file on linux/unix what would i type on the command line to display the midle line of of 3 lines of text.... in other words this is the question I am faced with here...





The file 'threelines' contains 3 lines of text. Display the middle line on


the screen. You are not allowed to use the more command.








any help will do??

Command line question unix/linux file commands?
head -2 threelines | tail -1 threelines








I'll break this statement down to explain it





head -2 threelines :this command displays the first two lines of the file


this output is sent as a input to the next command ( this is done by | (pipe))





tail -1 will display the last line of the output





so if your file is





abc


cde


fgh





head -2 gives





abc


cde





which is the input to tail -1





tail -1 taking this input will give only cde which the center line in your file





you can do it using awk also





cat newlines | awk 'NR==2 {print}'





in this you are printing out the lines in the file using cat,piping the output to the awk statement and saying select Number of record=2 and print it out (NR is number of record)
Reply:hey sorry made a mistake it should be head -2 threelines | tail -1





however the awk script should work fine.. Report It

Reply:That is a biggee of a question, my dear.
Reply:cat foo.txt | head -n 2 | tail -n 1





Something like that should do the trick.
Reply:Why don't you use grep for this, if more is not an option. You'll find evertything you need in the man pages.


The versions of yahoo messenger listed in the Unix category are not supported by Ubuntu Linux i tried them all

When i tried opening the archive downloaded from the Unix section this message appear "Could not open "rh9.ymessenger-1.0.4-1.i386.rpm"





Archive type not supported."





What can i do?

The versions of yahoo messenger listed in the Unix category are not supported by Ubuntu Linux i tried them all
In short, don't even try it anymore.





The Unix version is so outdated that it's laughable. The version you are trying to install is for Red Hat v9, which I know is at least 5 years old.





You would be better off using a native Linux client anyway, like Pidgin or Kopete. They would be more up to date and have better support too.





But if you must use something from Yahoo, there is the web-based version at http://webmessenger.yahoo.com. It will have the Yahoo brand and work from within your web browser.


Asp.net to connect to oracle database on UNIX server?

I need to connect to oracle database on a Unix server.


I need some guidance in what exactly needs to be done for that.


I have already connected to oracle database on a Windows 2003 server.

Asp.net to connect to oracle database on UNIX server?
Connecting to Oracle database is the same whether the database is on Windows or Unix, because all the connection is carried by the Oracle Client installed on the machine from where the connection is meant to be established.





In your case, you are trying to connect from ASP.Net web application, so you just need to have Oracle Client installed on the web server as the case when you are connecting to Oracle database installed on Windows.





It's not just correct in theory, but I did that before :) connecting from ASP.Net web application to Oracle 10g database installed on Unix using Microsoft ADO.Net Oracle components through Oracle 10g Client or Oracle Instant Client.

hide song

I am working on a C++ program for UNIX that will use files as semaphores, please help.?

OK, so I'm supposed to use the creat() function in C++ with UNIX to create 5 files and only 5 files. I then want to test to see if those files are in use by using creat() on them again. My professor states that when creat() makes a new file, it is open for writing, however, when it truncates an existing file, it fails if there is no write permission. This allows a file to be used as a semaphore.





Here is my code:





#include %26lt;sys/types.h%26gt;


#include %26lt;sys/stat.h%26gt;


#include %26lt;fcntl.h%26gt;


#include %26lt;iostream%26gt;


#include %26lt;unistd.h%26gt;





using namespace std;





int main() {


int fd, fd2;


mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;


char *filename = "Fork1.txt";


char *filename2 = "Fork1.txt";





fd = creat("Fork1.txt", mode);


fd2 = creat("Fork1.txt", mode);





cout %26lt;%26lt; "Test" %26lt;%26lt; endl %26lt;%26lt; fd %26lt;%26lt; endl %26lt;%26lt; fd2 %26lt;%26lt; endl;


return 0;


}





The second creat() should return -1 as an error because the file already exists, but it is returning a successful value...please help! Thx.

I am working on a C++ program for UNIX that will use files as semaphores, please help.?
read the man page for open(2). There's an O_EXCL mode flag that implies exclusive. That flag, in create, would cause create to fail if the file exists. Is that what you are needing?
Reply:Larry is right!





O_EXCL


If O_CREAT and O_EXCL are set, open() shall fail if the file exists. The check for the existence of the file and the creation of the file if it does not exist shall be atomic with respect to other threads executing open() naming the same filename in the same directory with O_EXCL and O_CREAT set. If O_EXCL and O_CREAT are set, and path names a symbolic link, open() shall fail and set errno to [EEXIST], regardless of the contents of the symbolic link. If O_EXCL is set and O_CREAT is not set, the result is undefined.


Where can I download traditional BSD 4.3 UNIX kernel system? I don't need FreeBSD or any other BSD Derivaties.

I need the traditional code from where today's UNIX systems are shaped up. I know there are lot's of BSD forks FreeBSD, OpenBSD, NetBSD, DragonFly BSD, PCBSD etc (to name a few). I am not asking these BSD derivatives. But the traditional BSD 4.3 codebase.

Where can I download traditional BSD 4.3 UNIX kernel system? I don't need FreeBSD or any other BSD Derivaties.
You do know that BSD4.3 is 21 years old right? You might have to try contacting the University of California, Berkeley and see if there are any copies still around. Why are you looking for such an outdated (and apparently abandoned) OS anyways? Do you really have a VAX to run it on or something? And note that even if you had it, you might legally need a license from AT%26amp;T to use it.
Reply:The Computer Systems Research Group at Berkeley was disbanded in 1995.


http://en.wikipedia.org/wiki/C... Report It



Linux Ubuntu is it open source?? I installed Unix and i am dissapointed in it?

Even the mouse pointer is a big square with unreadable suff!Bu the way! Letters are pne over another!





Do yo think linux ubuntu is the same?? I mean i want ot try linux now! Is ubuntu open source??- if not tell me a linux wich is open-source and its link please! Does linux have same commands like Solaris and is Linux an Unix -based environment system??

Linux Ubuntu is it open source?? I installed Unix and i am dissapointed in it?
hey i am prety good wit linux but if u want the best answers and any help please contact my father at robert.woestman@gmail.com
Reply:You could buy a copy of Micro Mart computer magazine, it's only £1.99 and you will find adverts in the classified at the back from a guy called Linuxman. I have used him and he is dead reliable. He supplies CD's oof most Linux distro's including Ubuntu. Many ar what is known as live CDs, you boot with the Cd in your drive and Linux runs from the CD. It is obviously slower but it does not install anything to your Hard Drive. This way you can try out various versions without affecting your Windows install.
Reply:ubuntu has a good UI. Don't know about all the commands though. Ubuntu is open source. Thats the whole point.
Reply:All Linux distributions are open source.
Reply:Yes ubuntu is open source and you can get a free install CD from the ubuntu web site:


http://www.ubuntu.com/


You will hopefully be pleasantly surprised.





Also a good distro for a newbie is open suse:


http://en.opensuse.org/Welcome_to_openSU...





also open source %26amp; free to download. If you are trying to be purist about open source as someone new to linux you'll find it very difficult some of the drivers etc are closed source, this is the fault of the hardware manufacturer rather than linux.
Reply:Yes, Ubuntu is open source, and yes, it's Unix-like.


Which Path in IT Support? Lotus Notes or Unix or Windows?

I am working in the field of IT support for almost 3 years and I m thinking of moving up to the Administration level. Of course I work on Lotus Notes, Windows Admin and tried Unix.


Now I m just thinking of focusing on one of them and going through in-dept but I m not sure about their future.


Please advice.


Thank you

Which Path in IT Support? Lotus Notes or Unix or Windows?
Most larger companies stick with Windows for desktop applications. So if you are looking to stick to desktop support, this is the way to go.





If you are more of a server/web IT person, then windows and linux/unix is the way to go. I work for a company as a web developer, and I use both platforms. We use Windows the IIS platform and asp, asp.NET development...and Unix Solaris or Linux for JSP, J2EE development.
Reply:MCSA and Cisco certification atm. In less then 4 years you will want to get some linux under your hat.

fresh flower

Connecting to a unix (*nix) from a remote linux machine in command line mode?

Is there a way to connect to another unix machine and be able to control it through command line (like running scripts, etc...).


Oh yeah it has a password and user name system set up.

Connecting to a unix (*nix) from a remote linux machine in command line mode?
SSH is the easiest way. But you'd have to set it up on the remote computer that you're connecting =)
Reply:Of course! Lots of ways, but most people use SSH.





type "man ssh" for more information.
Reply:use secure shell ( ssh ) or telnet