Run bash script using name I'm new to bash scripting and made one for my VPN called myvpn.sh Instead of doing ./myvpn.sh I want to just write myvpn in terminal and it will run it from any directory. Tried searching Google for it but with no luck (probably googling the wrong thing).  Is this possible to do by an amateur or does it requite any advanced knowledge?
How to run scripts without typing the full path? I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh
I am new to data analysis and now working on a Mixed Effects Logistic Regression Model.  Currently, I have the following data frame (model_data):  Road Id Vehicle_id  entry_time           exit_time          1        1        2017-01-31 00:00:00  2017-01-31 00:00:00 last_veh_time  vehicle_type     status 300            4 wheel          0    Likewise, I have the information (nearly a million rows) of all the vehicles entering a place and exiting the same place.  Status can be either $1$ or $0$ for all of these.  last_veh_time is the last vehicle passed the same place before how much time.    I want to know the probability of a getting status $0$ for a vehicle based on the entry_time and last_veh_time. To do this, I created the model:   model = glmer(status ~last_veh_time + (1 |link ),               data=model_data, REML=FALSE)   Is this the right approach?  Any help is appreciated. I need font size = 14 in article document, but when I change  \documentclass[a4paper,11pt]{article}   to  \documentclass[a4paper,14pt]{article}   font becomes even smaller. How to change font size? iPhone 6s with iOS 12.4 not connecting to MacBook Pro mid2015 with macOS 10.14.6 To change URL to user friendly URL I'm refactoring my ASP.net application from ASP.net 3.5 to 4.0. Also I'm changing the URLs to user friendly URLs /product.aspx?id=100 to /product-name/100.  All my pages are indexed by search engines and the site has already been online for 6 years. I'm planning to do 301 redirect from the old pages to the new one.  I want to make sure I won't lose the rankings and traffic.  Any suggestion how to do it properly? I am going to Nepal and probably, same as everyone, through Delhi. I was considering going overland from Delhi to Kathmandu, however I have found many posts that advise against it in favor of a flight. The following concerns are the key to the proper decision, I think.  Does the overland route offer a good scenery and cultural experience or is it  better to spend that time in Nepal?  What is the rough cost of an overland journey and how does it compare with a flight?  In case of a flight, is the Indian visa necessary? list transparency across non consecutive slides let $x,y,z,w&gt;0$,show that $$(x+y)^3+(y+z)^3+(z+w)^3+(w+x)^3\ge 8(x^2y+y^2z+z^2w+w^2x)$$  it seem use AM-GM inequality to solve it,But I can't it,Thanks Regarding the recalc in question rep increase what happens due to the cap? When the recalc runs what happens regarding rep capping on particular days? Say I earned 200 solely from questions on one day, will I earn a further 200 when the recalc runs or will I earn zero?  On a similar note if I got no rep from a question upvote on a day will the recalc give me 10, 5 or 0 rep? How can I use Photoshop to imitate a photo taken with a low-quality camera? How can I create an image in Photoshop that imitates a photo taken with a low-quality phone camera? Examples of qualities I want to simulate:   blurring in some areas caused by a dirty lens low quality exposure handling in the darkroom noise   Some examples: I know there's some JAVA_OPTS to set to remotely debug a Java program.  What are they and what do they mean ? A familiar limit, but in general form . How can I access shared folders on an Ubuntu host and a Windows XP guest? This post pretty much summarizes my question :   I know for a fact that Mac and Linux are both Unix based  And the commands for Linux should work for Mac, but with limited knowledge for programming I couldn't get it to work.  EDIT: Just saw this -  currently working on it I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous version.   I have done a git log along with a git diff to find the revision I need, but just have no idea how to get the file back to its former state in the past. I want to determine whether a multi-line string ends with a line containing specified pattern.  These code failed, it doesn't match.  s=`echo hello &amp;&amp; echo world &amp;&amp; echo OK` [[ "$s" =~ 'OK$' ]] &amp;&amp; echo match Windows 10 language bar hot keys are reseted to (none) after locking I have 3 different keyboard layouts set up on my laptop and use Ctrl+Shift+[1-3] key combination to switch between them.  Like that:    However, after locking and unlocking Windows (with a password), these hotkeys don't work anymore and key sequence is rolled back to (None):    Signing out from Windows or rebooting the laptop sets everything back to normal, until lock/unlock again.  I think this behaviour is related to the usage of the same hotkeys in File Explorer - to switch view (Extra large icons/Large icons/Medium icons accordingly). After the lock/unlock switch view starts working again.  Seems like File Explorer overrides language bar hotkeys after the unlocking.  How can I disable this functionality? Completely disabling Ctrl+Shift+number functionality in File Explorer will do, however I can't find anywhere on the internet how to do it.  Any ideas or help appreciated! I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir.  That could be done with   cp -R -s ../foo .   But - that needs an absolute path. So rather  cp -R -s `readlink -e ../foo` `readlink -e .`   I would like the resulting links to be relative.  How would I do that? Deleted object would be re-saved by cascade (remove deleted object from associations) How do I lock a file in Perl? What is the best way to create a lock on a file in Perl?  Is it best to flock on the file or to create a lock file to place a lock on and check for a lock on the lock file? Can we escape Earth's gravity slowly? I had a recent conversation with my girlfriend, who is a physics grad student. She was kind enough to listen to me rant about an idea concerning escape velocity. Unfortunately, I am still thinking about this question, but don't want to bother her with it.  My thought is that we shouldn't actually need to reach 11km/sec to leave the earth's gravity. Instead of this, can we simply apply enough force to overcome earth's gravity without reaching that speed? How we would do this is not a part of my question.  Orbital altitude is $99$ miles. Travelling $60$ mph straight up should get you there in $1.65$ hours, granted you have enough force to push. I know some of the simpler math like $F=ma$, but that didn't help me understand.  I browsed some articles about space elevators and couldn't find my answer.  Then I thought about a regular elevator and the fact that it has enough force to move it away from the earth successfully. Even if the elevator moved at $1$ nanometer/sec, it would still move away from the Earth, overcoming the minute pull of gravity at that altitude.  If you missed it, my question was:  can we simply apply enough force to overcome Earth's gravity without reaching that speed?  Edit: In another example, let's say we could drive a car from here to low Earth orbit. As long as we had enough torque, we should be able to overcome gravity, much like a pickup truck pulling a bunch of lumber. Is that correct?