How to modify my .bashrc file?

Hi, I may have asked something similar before, but now I'm ready to explain my problem "more in detail" (hope it makes sense)
I'm trying to install a compiler named HLA and make it work;
after decompressing some files and following some simple instructions these follows:
•          Next, (logged in as a plain user rather than root or the super-user), I edited the ".bashrc" file in my home directory ("/home/rhyde" in my particular case, this will probably be different for you). I found the line that defined the "path" variable, it originally looked like this on my system:
PATH=$DBROOT/bin:$DBROOT/pgm:$PATH
I edited this line to add the path to the HLA directory, producing the following:
PATH=$DBROOT/bin:$DBROOT/pgm:/usr/hla:$PATH
Without this modification, *NIX will probably not find HLA when you attempt to execute it unless you type a full path (e.g., "/usr/hla/hla") when running the program. Since this is a pain, you’ll definitely want to add "/usr/hla" to your path. Of course, if you’ve chosen to copy hla and hlaparse to the "/usr/bin" or "/usr/local/bin" directory, chances are good you won’t have to change the path as it already contains these directories.
•          Next, I added the following four lines to ".bashrc" (note that *NIX filenames beginning with a period don’t normally show up in directory listings unless you supply the "-a" option to ls):
hlalib=/usr/hla/hlalib export hlalib hlainc=/usr/hla/include export hlainc
These four lines define (and export) environment variables that HLA needs during compilation. Without these environment variables, HLA will probably complain about not being able to find include files, or the linker (ld) will complain about strange undefined symbols when you attempt to compile your programs. Note that this step is optional if you leave the library and include files installed in the /usr/hla directory subtree.
•          Optionally, you can add the following two lines to the .bashrc file (but make sure you’ve created the /tmp directory if you do this):
hlatemp=/tmpHLA Reference Manual          5/24/10          Chapter 3
export hlatemp
After saving the ".bashrc" shell, you can tell *NIX to make the changes to the system by using the command:
source .bashrc
The problem is that I don't have any .bashrc in my Users/me/ directory so I guess its the plain bashrc file in /etc ?
except that file looks like:
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
   return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
and has nothing like
PATH=$DBROOT/bin:$DBROOT/pgm:$PATH
plus, its a readonly file, should I change permissions with chmod and modify it?
Hope somebody can give me some advice...
THANK YOU!

As Linc says, you create it yourself.  However, .bashrc is NOT invoked by default when you login, which is why most people make changes to .bash_profile (which you also need to create unless you already did that sometime in the past).
If you are not confortable using a Unix text editor you could try
nano .bash_profile
Or you could use something like TextWrangler (free download) that has the ability to edit hidden files.

Similar Messages

  • How to modify the Manifest file in the JAR file

    Hi guys,
    i am having a JAR which contains one Manifest file and 10 class files.
    actually i want to do some changes on the manifest file, but by using the ,
    " jar -cmf new_manifest_file jar_fileName all_class_files " option i am able to modify the manifest file by repacking the .class also.
    i want to modify the manifest file without disturbing the existing class files in the JAR file.
    Thanx in advance.............! ! ! !
    bye,
    subbu

    yeah, that is correct.
    my doubt is,
    Is it possible to modify the Manifest file which is inside the jar file, by without disturbing the Class files.
    --Subbu                                                                                                                                                                                                                                                                                                                           

  • How to modified the current file?

    Hi, excuse for my english, I'm developing a plug-in with SDK 9,
    How can I do for modified the file opened with Acrobat Reader ?
    thanks

    Hi Leonard,
    thanks for yuor help, I find in the documentation of Adobe SDK how to create an annotation:
    PDPage page = NULL;
    PDAnnot annot,textannot;
    char* ptr = "This is initial text";
    //Create an ASFixed object and define its borders
    ASFixedRect fr;
    fr.left = ASInt32ToFixed(36);
    fr.top = ASInt32ToFixed(792-36);
    fr.right = ASInt32ToFixed(136);
    fr.bottom = ASInt32ToFixed(792-136);
    //Create a PDPage object
    page = PDDocAcquirePage(myPDDoc, 0);
    //Create a PDAnnot object
    annot = PDPageCreateAnnot (page, ASAtomFromString("Text"),&fr);
    //Cast the PDAnnot object to a PDTextAnnot object
    textannot = CastToPDTextAnnot(annot);
    //Open the annotation, set the text, and add it to a page
    PDTextAnnotSetOpen (textannot, true);
    PDTextAnnotSetContents (textannot, ptr, strlen (ptr));
    PDPageAddAnnot(page,-2, textannot);
    but when i built my project I'm stucky for this error:
    error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDPageAddAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
    error C2065: 'PDTextAnnotSetContentsSELPROTO' : undeclared identifier
    error C2065: 'PDTextAnnotSetOpenSELPROTO' : undeclared identifier
    What is I wronging ?
    Excuse me for my english
    Thanks in advance.

  • How to modify the jar files information for Script Assets??

    Hi,
    I am using Open Script 9.2. We can add the external JAR files using Script->Script Properties--> Script Assets. I need to change the jar files when ever i am going to execute no of scripts. How can I modify them using JAVA Coding without manual handling. Is there any specific methods existed in OpenScript to serve the above scenario.
    Thanks in Advance.
    Thanks & Regards,
    Siva Thota

    Hi,
    When you say alter the jar file, do you mean alter the contents of the java code within the jar. If this is yes then the simple answer is no. As you are probably aware, a jar file contains pre-compiled java code, which you will not be able to alter. What is it you are trying to achieve?
    A simple answer maybe to use a child script which you can include into your main script. You can then change the code in the child script, and when you play back, this 'new' code will be compiled, and included within the replay.
    Regards
    Wayne.

  • How to modify a xml file?

    I use JAXP 1.1 to read a xml file as a DOM tree. I can make change to the DOM tree in the memory, such as add an element or change the node value, but how can I apply these changes to the source xml file, i.e., write the changes back to the disk?

    you can write an xml file using DOMWriter.
    copy and compile this class
    and then use it:
    PrintWriter printWriter = //create a printWriter form your xml file
    DOMWriter writer = new DOMWriter(printWriter);
    writer.print(myXml.toString());
    package Zeus.core.XML;
    import java.io.*;
    import org.w3c.dom.*;
    * @author Rodrigo Gonzalez Asensio
    * @email [email protected]
    public class DOMWriter {
       protected PrintWriter out;
       protected boolean canonical;
       protected String encoding;
    public DOMWriter(OutputStreamWriter out) throws UnsupportedEncodingException {
         this(out, false);
    public DOMWriter(OutputStreamWriter out, boolean canonical)
         throws UnsupportedEncodingException {
         encoding = out.getEncoding();
         if (encoding == null) {
              throw new UnsupportedEncodingException(out.getEncoding());
         this.out = new PrintWriter(out);
         this.canonical = canonical;
    /** Normalizes the given string. */
    protected String normalize(String s) {
         StringBuffer str = new StringBuffer();
         int len = (s != null) ? s.length() : 0;
         for (int i = 0; i < len; i++) {
              char ch = s.charAt(i);
              switch (ch) {
                   case '<' :
                             str.append("<");
                             break;
                   case '>' :
                             str.append(">");
                             break;
                   case '&' :
                             str.append("&");
                             break;
                   case '"' :
                             str.append(""");
                             break;
                   case '\r' :
                   case '\n' :
                             if (canonical) {
                                  str.append("&#");
                                  str.append(Integer.toString(ch));
                                  str.append(';');
                                  break;
                             // else, default append char
                   default :
                             str.append(ch);
         return (str.toString());
    public void print(Node node) {
         // is there anything to do?
         if (node == null) {
              return;
         int type = node.getNodeType();
         switch (type) {
              // print document
              case Node.DOCUMENT_NODE :
                        if (!canonical) {
                             out.println("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>");
                        print(((Document) node).getDocumentElement());
                        out.flush();
                        break;
                   // print element with attributes
              case Node.ELEMENT_NODE :
                        out.print('<');
                        out.print(node.getNodeName());
                        Attr attrs[] = sortAttributes(node.getAttributes());
                        for (int i = 0; i < attrs.length; i++) {
                             Attr attr = attrs;
                             out.print(' ');
                             out.print(attr.getNodeName());
                             out.print("=\"");
                             out.print(normalize(attr.getNodeValue()));
                             out.print('"');
                        out.print('>');
                        NodeList children = node.getChildNodes();
                        if (children != null) {
                             int len = children.getLength();
                             for (int i = 0; i < len; i++) {
                                  print(children.item(i));
                        break;
                   // handle entity reference nodes
              case Node.ENTITY_REFERENCE_NODE :
                        if (canonical) {
                             NodeList children = node.getChildNodes();
                             if (children != null) {
                                  int len = children.getLength();
                                  for (int i = 0; i < len; i++) {
                                       print(children.item(i));
                        } else {
                             out.print('&');
                             out.print(node.getNodeName());
                             out.print(';');
                        break;
                   // print cdata sections
              case Node.CDATA_SECTION_NODE :
                        if (canonical) {
                             out.print(normalize(node.getNodeValue()));
                        } else {
                             out.print("<![CDATA[");
                             out.print(node.getNodeValue());
                             out.print("]]>");
                        break;
                   // print text
              case Node.TEXT_NODE :
                        out.print(normalize(node.getNodeValue()));
                        break;
                   // print processing instruction
              case Node.PROCESSING_INSTRUCTION_NODE :
                        out.print("<?");
                        out.print(node.getNodeName());
                        String data = node.getNodeValue();
                        if (data != null && data.length() > 0) {
                             out.print(' ');
                             out.print(data);
                        out.print("?>");
                        break;
         if (type == Node.ELEMENT_NODE) {
              out.print("</");
              out.print(node.getNodeName());
              out.print('>');
         out.print("\n");
         out.flush();
    } // print(Node)
    * Returns a sorted list of attributes
    protected Attr[] sortAttributes(NamedNodeMap attrs) {
         int len = (attrs != null) ? attrs.getLength() : 0;
         Attr array[] = new Attr[len];
         for (int i = 0; i < len; i++) {
              array[i] = (Attr) attrs.item(i);
         for (int i = 0; i < len - 1; i++) {
              String name = array[i].getNodeName();
              int index = i;
              for (int j = i + 1; j < len; j++) {
                   String curName = array[j].getNodeName();
                   if (curName.compareTo(name) < 0) {
                        name = curName;
                        index = j;
              if (index != i) {
                   Attr temp = array[i];
                   array[i] = array[index];
                   array[index] = temp;
         return (array);
    regards.

  • How to modify ide.properties file

    Hiiiii..
    With JDeveloper V9.0.5.2
    Whenever I make some changes on jdev/system/ide such as ide.font size.properties and restart the JD, and then open that file(ide.properties), it looks like I didn't make any changes on it and the original data was returned back.
    Please can any one help with this..
    Regard's

    Ensure that you're not modifying this file while JDev is running. It will write the file back out when it shuts down.
    The only other case in which this file gets replaced is if you're migrating from an old release or running a particular release for the first time. The source of this file is jdev/multi/system, so you may be able to modify it there.
    Thanks,
    Brian

  • How to modify the xml file

    Hi
    i am able to parse and modify the xml using DOM parser
    after ever modification I am using the below code to write in the file
    org.apache.xml.serialize.OutputFormat format = new org.apache.xml.serialize.OutputFormat(doc);
              format.setIndenting(true);
              org.apache.xml.serialize.XMLSerializer output = new org.apache.xml.serialize.XMLSerializer(new FileOutputStream(xmlFile), format);
              output.serialize(doc);
    using the above code I am overwriting the entire xmlFile
    is there an function that change only the required node the xml that change should me reflected in to the xml file
    thanks in advance

    YoungWinston wrote:
    chi8088 wrote:
    is there an function that change only the required node the xml that change should me reflected in to the xml fileI'm pretty sure there is, but I'm afraid I'm not a DOM expert.No, there is not. An XML file is really at its heart just a text file, and just like you can't simply write a change in the middle of a text file* but rather have to re-write out the entire contents, the same is true for an XML file.
    * unless you use a RandomAccessFile, and know the exact position to seek, and the change doesn't cause the rest of the contents to shift, such as by adding more content or removing some. All of which are very restrictive conditions.

  • How to Edit a flash file

    Hi all,
    I have a flash file, which I took from my website and want to
    modify some of the contents and links in the flash file. I
    installed "Macromedia Flash 8" and open the flash file; after
    opening all I can see in the menu bar of my flash is "File, View,
    Debug and Control" and could not find any control or tool to edit
    the file and surprisingly rest of the other macromedia toolbar
    icons are disabled. I need to know from where to start - How to
    modify my flash file.
    Your help is highly appreciated.
    Thanks in advance
    AP

    quote:
    Originally posted by:
    Purplehaze
    Also the file I am having trouble with is from a Template
    that I got from my Host it is suppose to be made to be edited I
    have both the files. I would still need the decompiler?
    I do not know what files you have, 'fraid I cannot answer
    this
    My Friend
    I think you need to check out some of the books, online
    tutorials, course etc pertaining to Flash. Build up your knowledge
    a little at a time and you will surprise yourself at what you can
    achieve, you would also probaby build your own web apps and not
    rely on templates.
    There are many good folk on here that would help you with
    your projects - go out and explore it - it's exciting - good luck

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • How to modify the field lengh of file upload

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • How to modify 'Specified File Name' of a scheduled report

    I run a daily scheduled report every morning and send it out as an emailed attachment. My problem is, I want the file name of the pdf attachment to include the previous day's date. How can I modify the 'Specified File Name' setting in the destination tab to reflect the previous day's date. I do not want to use %SI_STARTTIME% because that only shows the date&time that the report was actually run....I need the previous date. So far I am unsuccessful.
    Thanks

    Hi,
    i think this is only possible via the SDK. I would recommend creating a Support Message with SAP to solve this issue.
    Maybe there is already Samplecode available from the Support.
    Regards
    -Seb.

  • How do I modify a PDF file that I created

    I'm using Adobe Acrobat Pro X with Windows 7 Professional 64 bit.
    From Adobe I selected 'Create' and choose 'PDF from File' and I selected a Word document. 
    Adobe converted the Word document to a PDF and it look great!!!!!
    I want to modify the PDF file and change the 'text', but it will not let me.
    Will I have to convert the Word document to a PDF everytime I want to change 'text'?
    Thanks!

    If you are saying you created a form from the DOC file, that may be a bit of an issue. First, you would generally edit the label in just the way that was mentioned with the text edit tool. However, it may depend on how you created the form. The creation process is important and that may be the problem. If it was created with the Designer tool, then you can not edit anything in Acrobat. Designer creates a XML form that is not compatible with the Acrobat tools. You may be able to edit it in Designer, but not Acrobat. You should still be able to go back to WORD and recreate the PDF.
    If you created the form manually and don't want to deal with recreating the fields, the print the WORD doc to a new PDF using the Adobe PDF printer. Then open your form and use Replace pages to put the revised document behind the fields. The fields will remain intact.
    Again, if the form was created in Designer, you may have to do such changes in Designer.

  • How to edit or modify a .swf file?

    I am trying to edit a .swf file and make some changes in the css styles.How to edit or modify a .swf file?

    You need the fla file that created the swf.  You edit the fla and publish the swf.  Swf's don't usually involve css styles.

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • How to modify a datafile using file read and file write

    I have a datalog file containing port and DMM setup information.  I want to read this file into an aray, update or modify it, and write it to a file.  I can read the file in, but I am at a loss on how to modify it since it is stored in an indicator.  Any suggestions?

    The simplest thing is to replace your indicator by a control, and to use a local variable to write your data into the control.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

Maybe you are looking for

  • How can I create a new folder in de tool bar?

    I have several bookmarks of news papers and magazines located in the tool bar. Since they take space I need for other bookmarks, I need to place them in a folder which will also be located in the tool bar. How can do to achieve that?...I did it once

  • IDVD 2.1 will not burn...quits unexpectedly...

    Hello, I have a simple slide show with common jpegs...that is the entire project...no big deal...project is done.., when I want to burn to DVD, good medium, Taiyo Yuden, It will start the burn...insert the blank DVD...then it quits after a bit, quits

  • Connect my ipad to my HDTV

    Hi all I have just ordered an iPad 2. I want to be able to connect it to my tv and a projector at work using either RCA or VGA connectors. Will this display everything thing that is on my screen? eg the springboard/home screen as well as different ap

  • Audigy 2ZS S/PDIF pinou

    I am trying to get information on connecting S/PDIF digital IN's and OUT's to an Audigy 2ZS card. I have been reading quite a bit about this, but I see either incomplete information or none at all. What I've read has left me quite confused. For insta

  • Tried toadd new subaccount, instead I lost all my existing subaccounts and saved emails. Help!

    I tried to add an additional sub-account under local folders; instead all my existing local folders disappeared with all my saved emails including valuable information. I cannot find any information on where to find these missing sub folders. As far