Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm following a Flask tutorial, in which I created a virtual environment to run the application.
To run the file, it asks me to run this command:
./run.py
as opposed to:
python run.py
What does the ./ do exactly and why is it necessary?
It is used because the current directory is not in $PATH. And the reason why it is not in the current directory on that list is security.
So in simple terms you can say that the ./ says 'search in the current directory for my script rather than searching at all the directories specified in $PATH'.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
I am new to Python and I wanted to try coldtype to play with variable fonts (https://coldtype.goodhertz.com/install.html), but when I type ~ $ pwd in terminal i get zsh: permission denied: /Users/myName. I already enabled auto_cd in ~/.zshrc but I still get the same error.
(i have Big Sur macOS)
I'm guessing you copied that from an example. The ~ $ part is just showing you what the prompt might look like. The part you're supposed to type is just pwd.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to create an folder on vm instance however I am keep getting the error saying the no space .The space storage as follow:
And the error message is :
Can any one help me plz
Your /home directory is full and needs to be cleared. To identify which directory this is, go to /home and identify which files/directories are taking up space.
$ cd /home
$ du -sh *
From here, you should be able to drill down and empty files as required.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I installed python 3.7 and would like to add it to the system paths, so that a am able to use the python comand everywere on my system.
I added the path of the folder to the system path but I still canntot use python comands ouside the directory.
I added this to the system variables path: C:\Python37
A few things.
First, modern Python typically wants to install into C:\Program Files\Python37--are you certain about C:\Python37 being the path?
Second, did you add it to the system path using the dialog? If you did, did you restart your command line session? The command line won't pick up the new path until you restart it.
Finally, you'll also want to add the Scripts directory to the path too (C:\Python37\Scripts).
– John Szakmeister
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I tried removing virtual directory named virtualenvs that i created for a Django project using rmdir ~/.virtualenvs but its not working properly , i want to delete whole virtual directory so that i can setup new one and can remove old project that are saved in virtualenvs folder. I am attaching the screenshot:
You can use rm -rf to remove a directory and all its contents:
$ rm -rf ~/.virtualenvs
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Hi there I have a router with OpenWrt and to enable a Startupscript, I first have to create the script.
I needt to create it in /etc/init.d/
The script is called swapon. So when I enter /etc/init.d/swapon I enter VI mode and type the script
Then I exit editing mode and type :w to save
Then it says 'error no such file or directory'
So how to create this script and let it save?
Please help.
You need to be root to edit things in /etc/. Try the following:
Make sure sudo is installed
Edit the file using sudo vi /etc/init.d/swapon
If it still complains, create the file first using sudo touch /etc/init.d/swapon
Finally, make sure the directory exists - if not, use sudo mkdir /etc/init.d