Here is my script to change the directory  [user@linux ~]$ cat script.sh echo Before: $(pwd) cd "$1" echo After : $(pwd) [user@linux ~]$   When I tested it, it did not really change the directory as shown in the last pwd command.  Manual pwd command  [user@linux ~]$ pwd /home/user [user@linux ~]$   Test 1  [user@linux ~]$ script.sh dir01/ Before: /home/user After : /home/user/dir01 [user@linux ~]$   Test 2  [user@linux ~]$ script.sh /home/user/dir01 Before: /home/user After : /home/user/dir01 [user@linux ~]$   Manual pwd command again after that  [user@linux ~]$ pwd /home/user [user@linux ~]$   What's wrong with my code?
I want to run a script to simply change the current working directory:  #!/bin/bash cd web/www/project   But, after I run it, the current pwd remains unchanged! How can I do that?
How should I take care of my new DSLR? I am getting a new Nikon D5100 (with 18-55mm VR Lens Kit). This is going to be my first DSLR. I wanted to get some tips from you guys on how to maintain it in the long term. I am getting a 52mm UV Protector Filter, as I read that it would do well to keep the lens clean.  Are there any precautions I need to take?  I would also appreciate if someone can suggest some reading material (paperback or online). Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ Shut down computer from keyboard Is there a keyboard shortcut available to shutdown the computer?  I know I can use the Power button, but I would like to be able to it from the keyboard.  If such a shortcut does not exist already, how do I set one? What is the correct way of installing BOINC software? 18.04: color emoji not showing up at all in Chrome, only partially in Firefox What does the red background on an item mean? With the latest update, you can now use gyms like stops and get items. So far, every time I have done so there has always been one item that has a red background and number.    Is this a bonus item since I am part of red team? Is there any special meaning to it at all? Adjust sound notification per chat room At the top right of a chat room, just above the room title, there is a speaker icon. Clicking on this icon brings up the settings for "Sound notifications":    Currently, a change to this setting affects all chat rooms. Selecting "visible room" means that an audio notification is given for any activity in any room that is currently open in a browser tab (regardless of whether that is the active tab).  It would be useful to be able to adjust audio notification settings for individual rooms. For example, The Nineteenth Byte is quite a busy room, so I'd like to be notified only when mentioned. The Cornell Box is a much quieter room, and I'd like to be notified any time there is activity regardless of whether I am mentioned. Currently I can set all rooms to notify me of any activity, or I can set all rooms to notify me only when mentioned, but I can't choose a different setting for each room.  This would also be particularly useful when setting up a room for a very specific purpose, such as discussion of a particular question. If $p,q,r$ are all primes,and $p|qr-1$,$q|pr-1$ and $r|pq-1$,find all possible values of $pqr$. Connection pools being reset with Error: 18056, Severity: 20, State: 46. & Perfmon Counters not showing is there a way to request a new tag be created? Possible Duplicate:          I do not have sufficient reputation on any site to create new tags, but I do on occasion find myself in need of a tag that does not exists.  Is there a feature that allows for a person with sub-1500 reputation to request a new tag? Pointwise Convergence and Convergence in the mean of Riemann-integrable functions Let $(f_n)_{n\in\mathbb{N}}$ be a sequence of Riemann-integrable functions on $[a, b]$.   Assume that $(f_n)_{n\in\mathbb{N}}$ converges pointwise to $f$ on $[a, b]$ and converges in the mean to $g$ on $[a, b]$, where $f$ and $g$ are both continuous. Show that $f = g$.   ($(f_n)_{n\in\mathbb{N}}$ converges in the mean to g on $[a , b]$ means that $\lim_{n\to\infty} d(f_n, g) = 0$, where $d$ is the $L_2$ metric.)  I am studying real analysis now and want to prove this statement. But I don't know how to use condition "$(f_n)_{n\in\mathbb{N}}$ converges in the mean to g on $[a , b]$." How can I prove this? How to isolate the text from a bitmap logo? "Answerer" and "asker" Health effect of electromagnetic and acoustic waves on brain function Why is the potential energy equal to the negative integral of a force? Why is the potential energy equals to the negative integral of a force? I am really confused with this negative sign. For example, why there is a negative sign in the gravitational potential energy and what does it mean?   I read that the negative sign means you do the same force but in the opposite direction.  Doesn't that mean the object shouldn't move? Why did Obi-Wan allow Leia to get adopted by such a high profile figure? Jordan Canonical Form determined by characteristic and minimal polynomials in dimension $3$, but not beyond Why and how is the  of a matrix in $M_3(\mathbb C)$ fully determined by its characteristic and minimal polynomials? And why does it fail for $n &gt;3$?   Thanks. How can I install apt packages non-interactively? If I run:  sudo apt-get --yes install postfix    or  sudo bash -c 'yes | apt-get --yes install postfix'   an interactive prompt appears to configure postfix. I need to automate the installation of postfix (I can modify the configuration files after the install).  Is there some magic that lets me install postfix (and other package) without human intervention? Why can't the "Launcher" Icons be made smaller? At the smallest setting, they are still 4 times bigger than they need to be on a 10" Netbook. The Icons in the "Top Panel" are much smaller and we users don't have a problem selecting them. A stranger told me that he will give me an allowance of $ weekly. I know the saying "If it sounds too good to be true, then it is".   He told me that he would  email me his check and I would be able to deposit it via mobile banking. The only information he needs is my email, name on bank account, and bank name.   Is this too much information? Do you think this is a scam? I would definitely know if it was a scam if he asked for my log in but that is not what he wants.  Thank you for your time and answers!