I have a file called go in ~/  All I want to do is to be able to run go and have it cd to this other dir.  This is what the go file looks like:  $ cat go #!/bin/bash cd ~/Desktop/rs3   I ran the line $ chmod +x go  And then the line ./go to attempt to run the file.  If i put echo whatever in the file it will print whatever to the console, but the cd command never works.  Thanks.
I'm trying to write a small script to change the current directory to my project directory:  #!/bin/bash cd /home/tree/projects/java   I saved this file as proj, added execute permission with chmod, and copied it to /usr/bin. When I call it by: proj, it does nothing. What am I doing wrong?
What is the difference between Affection and Friendship, if any? I've risen Pokemon Amie Affection to 5 hearts on my Riolo in the hopes that it will evolve as soon as it levels up, but I'm not certain that this is the same thing as friendship, and I'd like to not waste a level.  My question is this: What is the difference between Pokemon Amie Affection and the Friendship stat? Abnormal PREEMPTIVE_OS_AUTHENTICATIONOPS Waits My system freezes completely at random, frequent intervals. I started to have the same problem in Ubuntu 14.04 but after recent upgrade to 16.04 there is no improvement, in fact it seems worse.  When it happens, it's impossible to do anything. I've tried everything in this thread:  but nothing works, I have to hard reset. I have read all the system logs and journalctl but there is never any information that could help diagnose the problem.  This is a dual-boot system with Windows 10 and there's no problem there, so it's not defective hardware.  My laptop has an Intel Bay Trail processor (Pentium N3540) HDMI to VGA convert I just bought a new HP Pavilion dv7t Quad Edition laptop that has HDMI out. I already have a couple of monitors that are VGA and I'd like to hook up one of these to dual monitors.  I've read some sketchy reviews of products that try to convert directly from HDMI (digital) to  VGA (analog), so I was wondering if someone has a good recommendation on how to hook these two together. How to understand what's taking up disk space? I'm looking for a linux alternative to . I would like to know what is taking up space on my hard drives.  A program that works on console and doesn't require a UI is preferred . Checking integrity of my server data How do I install ndiswrapper support for an unsupported RTL8723DE wireless module? I have not much experience with ndiswrapper but some vague memory of using it with some broadcom module long back. Now, here is the problem. Realtek RTL8723DE wireless module is used in my new HP 15-BS576TX laptop. I haven't installed Linux yet. But, would like to check if Ndiswrapper can help use the Windows driver to work in Linux. Here is the Windows 10/8/7 driver for this RTL8723DE wlan module:   I extracted the exe and can see a folder /RTWLANE_Driver/Wind7X86/ which has rtwlane.sys and few other files which I presume is related to the wireless driver. Is there any chances of luck with ndiswrapper considering the driver executable actually contains win8/win7 drivers.  Thank you. Why is gradient the direction of steepest ascent? Using divisibility theorems, prove that if $\gcd(a,b)=1$ and $a|c$ and $b|c$, then $ab|c$.   This is pretty clear by UPF, but I'm having some trouble proving it using divisibility theorems. I was looking at , and if this could be proven, then the solution would follow immediately. What has Ramsay done to Theon torture-wise? My friend told me that Ramsay flayed Theon; this question is in two parts:   Is this correct? and What else has Ramsay possibly done?   I have not read the books, but don't mind spoilers from them. An acquaintance recently posted an image to FB from his recent trip to the JFK Historic Site asking for an explanation of a visible artifact he states was not visible to the naked eye but was visible through the EVF of his camera and in the final image.    The artifact is a series of bright, nearly-vertical bars and a longer, almost horizontal bar superimposed over the lower part of the door frame and the radiator.  I found a very similar artifact in another image of the same room from a blogger which isn't as compressed:    In both cases the artifact seems to be a vertically inverted image of the post and rail outside the saturated window.  From looking at other images of the room available online I know there is spherical glass ornament topping the table lamp whose shape is visible at the left of the photo.  One response to the OP's question is as follows:     RK: It is lens flare. So, even on an iPhone, the camera lens is made   up of multiple lenses. Each designed to focus the image and make sure   it isn't distorted. Remember a lens bends light.  Sometimes, based on   angle and intensity of the incoming light, some stray light bounces   back and forth while traveling through the various elements that make   up what we think of as a camera lens (some of mine have 16 elements   inside a single lens.) Even the best glass is capable of reflecting   some light instead of passing it through the lens elements to the   sensor.  This is what you are seeing. The railing is overexposed, and   some stray light is bouncing around a bit inside the lens.   My response:     DJ: I don't think it's lens flare or ghosting. Those usually form an   image of starbursts, rings, or circles in a row across the image or in   the shape of the aperture; or a veiling glare or haze. This is forming   an image of the light outside minus objects in its path. It is more   likely a direct reflection/projection off a mirror or the glass in a   picture frame elsewhere in the room onto the opposite wall and the   radiator. There are two other clues which seem to confirm this. First,   the image has a gradiated appearance, it is less distinct in the   relatively bright area on the door frame and brighter in the   relatively darker areas behind and on the radiator. You would expect   lens flare to be more evenly specular. Second, the image representing   the light from below the horizontal rail changes angle on the   different faces of the door frame. Unlike a projection, lens flare is   an image created within the lens, the physical shape of the objects it   superimposes do not change its shape.      OP: If that were the case, would I have been able to see said   reflection in the room without the camera? There was no image I could   see with the naked eye. I notice the image in my phone before I took   the pic and did a double, triple and quadruple take before I took it   so I'm sure.      DJ: It would have been visible at the moment the image was taken, but   it may not have appeared nearly as bright and distinct because your   eyes were accommodating for the bright light coming in the window. The   projection could have easily been obscured by you or anyone around you   changing position or moving through the path of the projected   reflection. Also, it's been caught by other people... (see Image 2)   Notice that, in the linked example, the projection is again distorted   by the surface it falls on.   Anyone else want to chime in with an explanation? How to make an ImageView with rounded corners? Determine which app is drawing on top of other apps? Is there a way to determine which application is drawing on top of other applications?  For example, Facebook Messenger app can draw the chat bubbles on top of everything, but how do I know which app is doing this?  My problem:  I have an app which is drawing ads on top of everything and I wanna know which app is doing this. Not just to uninstall it, but to warn everyone that uses this app. (I didn't install any application recently and I already verified the recent updates.)  I tried to use the Dump View Hierarchy for UI Automator from the Android Studio, but it seems that the applications that draw on top can't be selected this way.  (Click image to enlarge) It is a common assumption (and, as far as historical stock market data goes, also proven) that the stock market is always growing if you enlarge the time window long enough . In other words: The stock market always goes up in the long term. Is, therefore, the conclusion valid that you can totally invest as much as you want at any point in time you want and you can never go wrong, if  You diversify strong enough (invest &quot;in the world&quot;) You do not need to urgently sell your assets at any point in time  If yes, all that strategies that rely also on diversified, long-term investments (Dollar-Cost-Averaging &amp; Rebalancing, .. what others do you know?) are just to optimize the yiels, but you'd make profit even without those strategies. Is that correct? How can I rename many files at once? I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time.  What tools should I use? I prefer GUI but a command line tool recommendation would also be fine. how to calculate earliest leap year in formula field salesforce I am writing a formula where I need a logic for calculating the earliest leap year.     Formula   (Sum(Mort1, Mort2, Mort3)*1.08^(current year-earliest LP year))+water+ECB+Taxes   What logic we can apply for earliest LP year? [[ 0*10%300 ]] works on AIX 6.1 but not on AIX 7.1 (ksh) I am trying to remove all files and subdirectories in a directory. I used rm -r to remove all files, but I want to remove all files and subdirectories, excluding the top directory itself.  For example, I have a top directory like images. It contains the files header.png, footer.png and a subdirectory.  Now I want to delete header.png, footer.png and the subdirectory, but not images.  How can I do this in linux? Correct way of mounting a Windows share I mounted a Windows share to my Ubuntu 11.10 system via adding the following line to the /etc/fstab:  //serveraddr/sharedfolder /mnt/foldername/ smbfs credentials=/home/myname/.smbpasswd 0 0  using the .  But there's a problem with the permissions. The owner of the mount folder is root. I can not create any folders or files in the mounted point is I don't become the root. Even I can not change the ownership to my default user via   sudo chown -R myname .  I googled and saw that it might stem from the fact that Windows file formats (fat32/ntfs) can not save ownership. But when I connect to the same location via samba as   smb://serveraddr/sharedfolder  by providing my credentials, I have the privileges to write without being the root.  How can I make it to let me write to the mounted folder? How do I access the terminal without logging in to the desktop?