Posts

Showing posts with the label terminal

Zipalign - Command not found - MAC terminal

Zipalign - Command not found - MAC terminal When I try to run Zipalign on an apk I get the error "Command not found" "Command not found" I am not that familiar with using terminal commands on the MAC but I have navigated to the SDK/Tools folder and run the following command: zipalign -v 4 Project1.apk Project1-aligned.apk I get Command not found I have tried placing the apks in the Tools folder and same result. Can someone help me to understand where the apks should be located and where I should run zipalign from? Thanks, I am very frustrated about this as it seems so simple. 17 Answers 17 Perhaps the current directory is not in your path? Try adding "./" before your command so ./zipalign -v 4 Project1.apk Project1-aligned.apk I will try, thanks. I will also include the full path to the apk. – Bill Mar ...

Change location that VS Code terminal is using

Change location that VS Code terminal is using for some reason my VS Code terminal is based in some random folder, and I have to use an extension to refer to my folder every time I use it. Any settings I can change to make the terminal refer to a different folder? 1 Answer 1 If you open a folder, the terminal should open at the root of that folder. So there might be a misconfiguration somewhere. But if you want to specify a folder: // An explicit start path where the terminal will be launched, this is used as the // current working directory (cwd) for the shell process. This may be particularly // useful in workspace settings if the root directory is not a convenient cwd. "terminal.integrated.cwd": "", Thanks for the reply, I tried this, but once I change it I cannot use the terminal, is this the correct usage? - "terminal.integrated.cwd": ...

Terminal -bash: command not found errors

Terminal -bash: command not found errors I messed up something in my programming a few days ago that screwed up my terminal. My terminal now gives me the a bash error message with basic functions like ls, cd, or ssh. The error looks like this: -bash: ls: command not found , where the "ls" can be replaced with any shell command. The only way I have found to make my terminal function, is by inputting: export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin" into ever terminal window I open, which can get very tedious. It also refuses to run Python or Jupyter unless I type the aforementioned command in the terminal window first. Go files also fail to run in terminal, and gives me a similar error message: -bash: go: command not found. This can be overcome by inputting: export PATH=$PATH:/usr/local/go/bin into the terminal window first. I'm really worried about what is going on in my computer, and need my terminal to keep functioning in order for me to finish and pass th...

How to run ~/.bash_profile in mac terminal

How to run ~/.bash_profile in mac terminal So I'm installing some things for coding and personal usage, and I need to run this in the terminal (I'm on Mac if you didn't read the title). ~/.bash_profile ~/.bash_profile It just says permission denied, Im running OSX 10.8.4 Mountain Lion. How do I bypass this? You have python tagged, which is inappropriate. I'd like to make sure you aren't putting python in the file before removing the tag without comment? – Tom Kerr Sep 16 '13 at 1:15 looks like he's trying to set up python environment variables. – Мати Тернер Sep 16 '13 at 2:01 6 Answers ...