Solved

Bash Scripts for FreeBSD

Posted on 2002-03-26
2
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
IainHere earned 50 total points
ID: 6897001
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
ID: 6897135
Thanks; that example will work well as a starting point for my .profile.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Shell script awk command 2 122
install command in linux 1 61
Subsystem for UNIX-based Applications (SUA) 2 94
BASH script to modify crontab? 3 115
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

739 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