terminal

The terminal process command failed to launch exit code:0 and exit code:2

徘徊边缘 提交于 2020-03-01 01:39:31
问题 The visual studio code terminal is not working. The shortcut ctrl+" for the terminal is not working. Error: The terminal process terminated with exit code: {0} The terminal process command 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' failed to launch (exit code: {2}) 回答1: Try creating an exception rule for winpty-agent.exe in you antivirus program. File location: C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release\winpty-agent.exe

Emacs error when I call it in the terminal

ぃ、小莉子 提交于 2020-02-26 06:24:19
问题 I've just installed emacs on my MacBook Pro but when I cast "emacs" on my terminale I receive this type of error : Emacs-x86_64-10_10[5647:247335] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 " * -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=* -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive

Emacs error when I call it in the terminal

∥☆過路亽.° 提交于 2020-02-26 06:24:10
问题 I've just installed emacs on my MacBook Pro but when I cast "emacs" on my terminale I receive this type of error : Emacs-x86_64-10_10[5647:247335] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 " * -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=* -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive

Sed on Mac not recognizing regular expressions

我是研究僧i 提交于 2020-02-21 06:10:31
问题 In terminal, I am attempting to clean up some .txt files so they can be imported into another program. Only literal search/replaces seem to be working. I cannot get regular expression searches to work. If I attempt a search and replace with a literal string, it works: find . -type f -name '*.txt' -exec sed -i '' s/Title Page// {} +; (remove the words "Title Page" from every text file) But if I am attempting even the most basic of regular expressions, it does not work: find . -type f -name '*

Understanding output of xattr -p com.apple.quarantine

本秂侑毒 提交于 2020-02-20 10:55:51
问题 The other day I was messing with some files that had the extended attribute com.apple.quarantine on them. I am aware of its purpose, but I have always been curious what the properties below meant when you output its values. E.g. when I typed in xattr -p com.apple.quarantine xmlrpc.php for a file that has the said xattr, I get output like this: 0083;59b926ad;Safari.app;55847AA4-5562-42A2-89A7-8FAD394B455C What do the first 4 digits represent? i.e. 0083 Google hasn't brought up anything good

Understanding output of xattr -p com.apple.quarantine

给你一囗甜甜゛ 提交于 2020-02-20 10:54:39
问题 The other day I was messing with some files that had the extended attribute com.apple.quarantine on them. I am aware of its purpose, but I have always been curious what the properties below meant when you output its values. E.g. when I typed in xattr -p com.apple.quarantine xmlrpc.php for a file that has the said xattr, I get output like this: 0083;59b926ad;Safari.app;55847AA4-5562-42A2-89A7-8FAD394B455C What do the first 4 digits represent? i.e. 0083 Google hasn't brought up anything good

how do i loop from terminal without excessive password requests

最后都变了- 提交于 2020-02-06 03:03:47
问题 When running the following mysql code from a linux ( CentOS 7 ) terminal , the following command appears to be asking for the password for EVERY table in the loop. There are 500+ tables. It is not reasonable for me to type in a password 500+ times. How can I fix the code below so that it only asks for the password a couple times? mysql -u root -p -Nse 'show tables' DATABASE_NAME | while read table; do mysql -u root -p -e "SET FOREIGN_KEY_CHECKS = 0; truncate table $table" DATABASE_NAME; done;

how do i loop from terminal without excessive password requests

我只是一个虾纸丫 提交于 2020-02-06 03:03:31
问题 When running the following mysql code from a linux ( CentOS 7 ) terminal , the following command appears to be asking for the password for EVERY table in the loop. There are 500+ tables. It is not reasonable for me to type in a password 500+ times. How can I fix the code below so that it only asks for the password a couple times? mysql -u root -p -Nse 'show tables' DATABASE_NAME | while read table; do mysql -u root -p -e "SET FOREIGN_KEY_CHECKS = 0; truncate table $table" DATABASE_NAME; done;

Docker exec linux terminal create alias

≯℡__Kan透↙ 提交于 2020-02-05 08:31:10
问题 I have a running and detached container. I want to create a command alias there before attaching to that container. When I am attached to the container and I type: alias bar='foo' an alias is created, and might be checked by: alias command. but if I want to do the same by docker exec command ie this way docker exec -it <container-name> /bin/bash -c "alias bar='foo'" it does not work, probably because when I'm attached to the container and type into its terminal /bin/bash -c "alias bar='foo'"