terminal

How can I get batch files to run through the new Windows Terminal?

廉价感情. 提交于 2020-06-09 18:18:25
问题 I tend to have a lot of cmd prompts open at a time from running multiple batch files at once, so I figured the new Windows Terminal would be a neat way to tidy things up with tabs. Problem is, I can't quite figure out how to change the default behavior of running batch files through a cmd instance to the desired running batch files through a cmd instance that is inside of a Windows Terminal instance. I'm able to easily open Windows Terminal, start a cmd instance, cd to the correct dir, and

kill iOS Simulator from terminal

倖福魔咒の 提交于 2020-06-09 12:14:59
问题 I'm trying to terminate the iOS Simulator from the terminal console (needed for integrating automatic UI Testing in Jenkins),but every time I try the command: killall SimulatorBridge a prompt waiting for action gets displayed: The problem is that the simulator doesn't get dismissed until an action on the prompt is taken. How to get rid of it? 回答1: Use killall "iPhone Simulator" With XCode 6, use killall "iOS Simulator" (thanks @gempewsaw) With XCode 7, use killall "Simulator" (thanks

kill iOS Simulator from terminal

瘦欲@ 提交于 2020-06-09 12:14:30
问题 I'm trying to terminate the iOS Simulator from the terminal console (needed for integrating automatic UI Testing in Jenkins),but every time I try the command: killall SimulatorBridge a prompt waiting for action gets displayed: The problem is that the simulator doesn't get dismissed until an action on the prompt is taken. How to get rid of it? 回答1: Use killall "iPhone Simulator" With XCode 6, use killall "iOS Simulator" (thanks @gempewsaw) With XCode 7, use killall "Simulator" (thanks

Why doesn't my shell command using curly/smart quotes work?

陌路散爱 提交于 2020-06-09 06:15:09
问题 I have written the following shell script: #!/bin/bash total=0 echo “Please enter 10 numbers >” read VAR1 VAR2 VAR3 VAR4 VAR5 VAR6 VAR7 VAR8 VAR9 VAR10 total=$((VAR1+VAR2+VAR3+VAR4+VAR5+VAR6+VAR7+VAR8+VAR9+VAR10)) echo $total Running echo in the command line command e.g. (see below) echoes the phrase fine echo "Please enter 10 numbers >” But when I try to run the shell script the text isn't echoed. The script works, if I run it and type in 10 numbers the correct total is returned, but this is

-bash: export: `=': not a valid identifier

偶尔善良 提交于 2020-06-07 08:06:26
问题 Every time I open my terminal I get the error below: Last login: Sun Aug 4 17:23:05 on ttys000 -bash: export: `=': not a valid identifier -bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin': not a valid identifier -bash: export: `=': not a valid identifier -bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin': not a valid identifier And here is my export output: Calvin:~ sunkehappy$ export declare -x Apple_PubSub_Socket_Render="/tmp

ImportError: No module named site - mac

安稳与你 提交于 2020-06-01 12:42:31
问题 I have had this problem for months. every time that I want to get a new python package and use it I get this error in terminal: ImportError: No module named site I don't know why do I get this error. actually, I can't use any new package because every time that I wanna install one I get this error. I searched and I found out that the problem would be for PYTHONPATH and PYTHONHOME but I don't know what they are and how can I change them. My operating system is mac os and I don't know how to

Changing username, hostname, and path color in iterm2

有些话、适合烂在心里 提交于 2020-06-01 05:05:28
问题 How can I change the username, hostname, and path color in iTerm2? I'm using the built-in Solarized colorscheme. In Ubuntu, the same built-in colorscheme is highlighted like: In iTerm2: Current iTerm2 settings: and I've been playing around the settings but can't get it to work. I've also gone through numerous links, but those also settings don't work. I'm on macOS 10.15.4 回答1: I think you need to change the colors on your terminal prompt to achieve that, this may be of help http://www

Wiping entire usb drive on Mac OS X

冷暖自知 提交于 2020-05-29 07:37:32
问题 Is there a command for the apple terminal to brute force a wipe of everything including all partitions, master boot records, and data on a usb flash drive? Just a little information about the situation: I just got a stick from a friend which seems to be damaged but it isnt a physical defect. I guess he just removed the stick while formatting or so. I already tried to repartition, reformat and erase the stick with the Mac Disc Utility and I tried to format it on windows. Nothing of it worked,

How to acess Linux bash terminal with new Windows Terminal

本小妞迷上赌 提交于 2020-05-28 08:35:46
问题 A few months ago Microsoft announced a new open source terminal they are working on: As you can see in the Trailer of the video you can access an Ubuntu/Debian etc bash terminal from the Windows terminal. My question is how do you access this? Do you have to enable the Linux sub-system for Windows and then download the distro form the Windows store? If so something I'd also like to ask is what are the downsides of enabling such a thing? Does it close down your boot time? Does it risk borking

ModuleNotFoundError: No module named 'tensorflow.python.tools'; 'tensorflow.python' is not a package

核能气质少年 提交于 2020-05-26 05:37:06
问题 Tensorflow can exactly work at jupyter notebook, but when I try to import tensorflow at pycharm or just in ternminal, I get Traceback (most recent call last): File "C:/Users/g-odi/Downloads/ipy/Deep-Learning-with-TensorFlow-book/ch03/main.py", line 5, in <module> import tensorflow as tf File "C:\Users\g-odi\AppData\Local\conda\conda\envs\facat\lib\site-packages\tensorflow\__init__.py", line 98, in <module> from tensorflow_core import * File "C:\Users\g-odi\AppData\Local\conda\conda\envs\facat