By: Zed A. Shaw Emailed: 1729 times Printed: 2331 times
- Go to http://projects.gnome.org/gedit/
with your browser, get the gedit text editor, and
- Put gedit (your editor) in your Dock so you can reach it easily.
(a) Run gedit so we can fix some stupid defaults it has.
(b) Open Preferences from the gedit menu and select the Editor tab.
(c) Change Tab width: to 4.
(d) Select (make sure a check mark is in) Insert spaces instead of tabs.
(e) Turn on “Automatic indentation” as well.
(f) Open the View tab and turn on “Display line numbers”.
- Find your “Terminal” program. Search for it. You will find it.
- Put your Terminal in your Dock as well.
- Run your Terminal program. It won’t look like much.
- In your Terminal program, run python. You run things in Terminal by just typing their name and hitting
- Hit CTRL-D (^D) and get out of python.
- You should be back at a prompt similar to what you had before you typed python. If not find out why.
- Learn how to make a directory in the Terminal. Search online for help.
- Learn how to change into a directory in the Terminal. Again search online.
- Use your editor to create a file in this directory. You will make the file, “Save” or “Save As...”, and pick this
- Go back to Terminal using just the keyboard to switch windows. Look it up if you can’t figure it out.
- Back in Terminal, see if you can list the directory to see your newly created file. Search online for how to list a
Last login: Sat Apr 24 00:56:54 on ttys001
~ $ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
~ $ mkdir mystuff
~ $ cd mystuff
mystuff $ ls
# ... Use Gedit here to edit test.txt....
mystuff $ ls
Be the first one to add a comment
More Latest News
More Tutorials by Zed A. Shaw
More Tutorials in macos
Most Viewed Articles (in macos )
Most Emailed Articles (in macos)