Where can I get tutorials or tips in doing stuff with fedoras terminal?
Im very sorry for double posting
the last time, I was having a hard time where to post it so I made a double post. If I am right, the terminal is somewhat the cmd of windows? Can anyone help me again about a batch file for windows into that for fedora? ========================== @echo off cd C:\Documents and Settings\.... set path=%path%;C:\j2sdk..... javac Sample.java java Sample pause ========================== The last thread I post was removed because I double posted. Sorry :0 |
Quote:
Quote:
Code:
chmod +x <filename> Code:
export PATH=$PATH:/any/others:/you/may/want java commands are the same. Remember that filenames ARE case-sensitive. There is no pause in Linux. You won't need it anyway in this context, as I don't believe it will continue in the script until Java finishes running Sample. It's possible, however, to write a quick C program that waits for the Enter key, then compile it, and store it in /usr/local/bin as "pause" with the X bit set (chmod +x /usr/bin/pause). Come to think of it, there is a way to wait for keyboard input on the command line... I think you have to set a variable but pipe input from CON... I'll let a more expert person handle this one.... Hope this helped! |
Oh, oops...
I skipped one part... In Windows, there is C:\Documents and Settings\username\all_your_stuff.here In Linux, there is /home/username/all_your_stuff.here. cd command is almost identical: cd "\documents and settings\username" becomes "cd /home/username". An even easier way is "cd ~", or, just plain "cd" by itself on the command line with no arguments will bring you to ~ (~ is a shortcut for "/home/whoeverIam"). Cheers, HIH |
Nice. Thank you sir!
One more thing though, in windows, I save it as "filename.bat", how do I do it in fedora? |
It's time for a book....
I recommend: "Linux in a Nutshell" from O'Reilly. (They may have it free online now.) "Bash Guide for Beginners" by Machtelt Garrels. (Free at http://tldp.org) To save a script file in Linux (Bash), you don't need an extension. Give it any name you want, and change the permissions to executable. |
Quote:
However, I do highly recommend the book, even if you have to go buy it. It helped me out quite a bit early on, although I have to admit I haven't touched it in a year or three except to move it from one shelf to the other. An alternative is The Linux Documentation Project. When I was starting out, that site was one of my most-often-hit in my bookmarks. Again, I haven't used it much at all lately, but it was a great help for me and it's a plethora of information. On TLDP, there is a Linux System Administrator's Guide. It may not be the LiaN recommended above, but it's still an excellent read if you're wanting to learn more about the system you have in front of you. HIH and Cheers! CJ |
Oh, and one more tool that seems to be little-known (at least, among the Windows world) is Google. But not just any Google... oh, no... go to the "Advanced Search" link and look to the very bottom of the page. You'll see that Google has topic-specific searches on Linux, Mac, Microsoft, BSD, and I think one other... You can use any of these searches to limit your results to just that platform. For example, type "firewall" in regular google and all sorts of hits will come up from Norton to McAffee to everything else... but, go to the Linux specific search, and you'll get hits like GuardDog, Firestarter, iptables...
http://www.google.com/linux Also, if you type something into regular google, and you realize you want Linux instead, just look at your URL... it will be "google.com/search?" followed by code. Change "search" to "linux" and you'll be set. Really hope it helps... |
Thanks a lot for everything!
I have another question, will it cause me any problem in the future if I install 2 OS's in my pc?? I really wanna try out using fedora on our pc but my pops wont allow me because he's already used to windows. Im planing to install fedora on another partition and everytime my pops uses the pc, he can use windows. |
Why the short lines? (Makes reading difficult)
You can install many different OSes on one computer. I have 8 at the moment---search here for Saikee: He has something like 100. With something like Fedora, the installer will detect Windows and automatically set up the GRUB menu. Before doing anything like this, be sure that any important files are backed up, and be sure that you have a way of re-installing Windows----"just in case". |
Another good tutorial: http://rute.2038bug.com/index.html.gz - very good
|
All times are GMT -5. The time now is 08:08 AM. |