Solved

Bash Scripts for FreeBSD

Posted on 2002-03-26
2
206 Views
Last Modified: 2010-04-21
Anyone know of a good resource for shell scripts?  

I'd like to get a script to use as my .profile which already has some of the stuff I'd like (paths, prompts, etc.), and then further tweak it with stuff specific to my system.
0
Comment
Question by:Zoplax
2 Comments
 
LVL 4

Accepted Solution

by:
IainHere earned 50 total points
Comment Utility
I don't think I understand the question.  Are you only looking for a sample .profile?  Well, there is one here

http://www.utstat.toronto.edu/utstat/sample.profile

it is not specific to FreeBSD, but bsh is bsh is bsh.  The reason I think I might be missing a trick is that there should be a default .profile, copied from /etc/profile (I think), every time you add a new user.  Anything on top of that would be specific to your machine and user, which is why it is not included in the default one.

A shell script is not the same thing as a login script.  Login scripts set preferences, shell scripts are treated like programs.  You can put scripting into your profile, but it is not usually done.  

Examples of shell scripts: http://www.mcsr.olemiss.edu/unixhelp/scrpt/scrpt2.x.html
0
 
LVL 6

Author Comment

by:Zoplax
Comment Utility
Thanks; that example will work well as a starting point for my .profile.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now