Newest 'terminal' Questions - Stack Overflow

Questions tagged [terminal]

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software. A user typically types commands into the terminal to perform specific tasks.

0
votes
0answers
4 views

mysql uninstalled, but showing up on the terminal (mac)

I'm using macbook pro (mojave). Ive uninstalled mysql (installed using the package from the mysql website) by following the method mentioned here. But when i login to the terminal i still get Last ...
0
votes
0answers
8 views

How to resolve '-bash: ssh -N: command not found' issue, when ssh to VM is actually working?

ssh forwarding from VM to localhost port throws 'command not found error' '-bash: ssh -N: command not found' I am trying to run my ipynb notebook files in VM by forwarding the port to localhost port....
0
votes
0answers
21 views

What are the advantages of using the terminal (e.g. when using python) [on hold]

I can write some basic scripts in Python (like computing some scientific calculation with the result as on output and a graphical representation of the answer in Atom). However a "next level" of ...
0
votes
0answers
17 views

Windows Batch File Errorlevel Not Working Correctly [duplicate]

I'm running the following script, but the errorlevel never seems to change from 0 Can anyone spot why it's not working as expected? @echo OFF set first=C:\dev\workspace\first set second=C:\dev\...
-1
votes
1answer
11 views

How to fix a Bash issue in macOS

I'm here to show you my problem and to find a solution to a bash problem.Every time I launch my terminal under macOS, the first message that appears is "-bash: /Users/kiri/.profile: No such file or ...
0
votes
0answers
18 views

Running an application which uses java.io.Console API from Gradle

Consider I have a Java (or Kotlin, doesn't really matter) application which uses java.io.Console API, or any other API which manipulates the terminal state (e.g.: net.rubygrapefruit:native-platform): ...
1
vote
0answers
34 views

Fix jumping of multiple progress bars (tqdm) in python multiprocessing

I want to parallelize a task (progresser()) for a range of input parameters (L). The progress of each task should be monitored by an individual progress bar in the terminal. I'm using the tqdm package ...
-1
votes
1answer
13 views

Subprocess commands that need each other, special trouble with “cd” [duplicate]

I want a program that, with given arguments, I'm using optpatse, changes the working directory and executes some file. I have tried with: subprocess.check_call(['ls'], cwd="/home") and this works. ...
0
votes
2answers
9 views

How to avoid terminal to catch error instead of Symfony profiler

[edited on 19th june] The question is not regarding the content of the logs, but why logs doesn't not appear in my symfony profiler My symfony profiler doesn't display any error log but my php built-...
0
votes
0answers
10 views

Truncate / Trim audio file using start and stop times [duplicate]

I am attempting to truncate a .wav file from any length to 1 minute by using the ffmpeg package. once truncated, I want to save the file in another directory. I am able to do so with he following ...
-1
votes
1answer
34 views

Problem with integrated terminal in PhpStorm

I'm learning Laravel, and also I started learning it with(for me) new editor - PhpStorm. I want to edit my terminal(not colors, fonts, etc.). I integrated the gitbash instead of factory terminal that ...
1
vote
2answers
29 views

shell vs terminal vs command line vs BASH? [on hold]

So I've read a lot but am still confused. is BASH specifically Unix while shell, terminal, commandline are all 'generic terms'? For example, if I say "shell", it is not yet determined that if I'm ...
0
votes
0answers
11 views

Mac OS terminal command “open” throws error -36 when specifying options

The "open" command works perfectly when I don't give it any options. Input: Dan$ open mongo.txt Output: Hello World If I use the "-e" option, it throws an error. Input: Dan$ open -e mongo.txt ...
1
vote
1answer
28 views

Command executed from terminal, failed from Java using ProcessBuilder

I'm trying to execute a command in my terminal. The problem is, when I execute the command in terminal, it succeed, but when I run the command from java, the command is executed but, I got an error ...
-2
votes
1answer
40 views

How do I add time in terminal?

I want to create a cron job that will run once in either 30 min or 60 min from now. I know I can grab the time of now by using: date +"%T" but I'm not sure how to add 30 or 60 min to that, and then ...
1
vote
2answers
30 views

Is there a way to extract specific character strings, multiple times, with grep / sed. Starts with an “(”

I am trying to extract all the station codes of a txt file. I converted this file from xml to .txt Here is an example of the text I am trying to extract from. <tr bgcolor="#F2F9FF"><td ...
0
votes
1answer
11 views

How to install hcitool in mac os terminal

Hello there guys i have been trying to use hcitool on mac os terminal but whenever i type hcitool scan the following error is appeared -bash: hcitool: command not found i have tried pip install hci ...
0
votes
0answers
18 views

How to copy content from one file and paste it into multiple files using Terminal/Bash? [duplicate]

I have example.txt file which contains some text. I want to copy that text and paste into example1.txt, example2.txt, example3.txt files at the same time.
2
votes
1answer
35 views

How to run async commands in queue AND in background?

I want to create a Shell script (.sh) using MacOS and LinuxOS (respectively). This is what I have made: #!/bin/bash redis-server & mongod & cd ~/some/path && npm start & cd ~/...
0
votes
1answer
35 views

Perl qx() command not working as expected

I have a perl script as below, where I want to access a network path on a remote windows machine from a linux machine using rsh. $cmd = "rsh -l $username $host \"pushd \\\\network\\path\\to\\the\\...
0
votes
2answers
49 views

Why do I get an error: Cannot find module after downloading node.js?

I am having an issue with node.js, I installed Node, Homebrew and Xcode but when I type in the terminal: node index.js I get this error: Error: Cannot find module '/Users/traviskerr/index.js' ...
0
votes
0answers
14 views

Set default location for VisualStudio Code to open when using `code` command

In the terminal I can run code . which will open VSC in the current directory. Or I can run code readme.md which will open the readme in the current directory. But if I just run code with no other ...
-1
votes
0answers
43 views

Change the current directory to desktop in Python

I'm trying to create a menu application for my Kali Linux. Here is my menu code: {1}--Home ~~ Home directory {2}--Desktop ~~ Desktop directory {3}--...
-1
votes
1answer
33 views

Why when I open terminal do I see the following:

Last login: Mon Jun 17 10:41:49 on ttys000 -bash: export: `2019.03': not a valid identifier XXX:~ YYY$ (Note the XXXs and YYYs are just replacement) Specifically, I am talking about the -bash: ...
-2
votes
0answers
38 views

Linux, open python scripts via python [on hold]

I'm making a menu for my Kali Linux system. My code looks like this: {1}--Home ~~ Home directory {2}--Desktop ~~ Desktop directory {3}--...
0
votes
1answer
22 views

Uploading data in elastic search from file

I want to insert data into elastic search.I have file containing 250 documents How do I insert data efficiently? https://drive.google.com/open?id=1JRZj8myVu1UHJ3jxZzzb8LSKKMicY0Qi this is one of the ...
-2
votes
0answers
30 views

Is there a way to get and parsing YAML inputs in Python without modules?

I want to parse some information in python that are YAML format and don't want to use modules. Is there a way for that? My inputs are like this where each tab is two spaces: 2 - name: gholi age: ...
0
votes
1answer
12 views

How to insert file data in blob column in sqlite using terminal

I have following table in Sqlite :- CREATE TABLE IF NOT EXISTS "Articles" ( "id" integer NOT NULL, "name" varchar NOT NULL, "post_date" date DEFAULT CURRENT_TIMESTAMP, "...
0
votes
0answers
48 views

Sending commands to another terminal on Raspbian: ttyecho not behaving as expected

In theory, the retro gaming application RetroPie cannot run alongside the Raspbian PIXELS desktop environment. I found the following guide online which in theory works around this: http://www.aoakley....
-1
votes
1answer
16 views

How to move a file out of /usr/local if I get Permission Denied?

I would like to move the file.txt FROM usr/local/file.txt TO /usr/local/folder/file.txt. However, every time I try I get a permission denied reply. I have tried: sudo mv ~/usr/local/file.txt /usr/...
0
votes
1answer
19 views

Can I pass SSH session from programming language to system terminal?

I work with 100+ servers, each of them having different SSH credentials, with passwords that change quite often. The list of the servers and credentials is stored in our company's internal wiki. Every ...
0
votes
1answer
22 views

Mass Insert Headers To CSV Files Using sed

I have about 210 csv files right now, all about 28kb in size, that need headers on them. I am trying to use sed on my iMac's terminal to accomplish this, but it isn't playing nice. The basic ...
0
votes
1answer
12 views

How to specify range using bases greater than 10 in MacOS Terminal

I am using curl -0 https://cdn.(website).com/[range].(extension) -o "#1.(extension)" to download files in a range of filename values. How can I specify the range in a base higher than base 10 (I'...
0
votes
0answers
22 views

I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'

I am getting this error while clicking on any path on terminal which is generated by the eslint. I need to open the error where it is occurred. $ npm run lint:fix > nodejscrudwithexpress@1.0.0 ...
0
votes
2answers
41 views

How do I prevent ^C from showing when displayed when pressing CTRL+C

I am trying to prevent ^C from showing when a user presses CTRL+C while my script is running. Why do I want to prevent that? Because things like this will happen and it does not look nice: $ ...
0
votes
0answers
28 views

C++ simple terminal user session example [on hold]

So I am finishing up my final project for algorithms and datastructure course which is due next week. For this project me and my project partner are building a terminal application that's simulating ...
0
votes
1answer
16 views

Google Cloud Vision - PHP from terminal - error loading credentials

I'm trying to work with the Google Cloud Vision API with PHP. I created my first test page and when run from a website, the PHP works correctly with no issues. I have a new twist on my project and I ...
0
votes
0answers
10 views

Delay in Mac Terminal [on hold]

My Mac Terminal is taking quite some time before I can use it. following things appear on the top window on the terminal one after the other. Terminal --login-- Terminal --python -bash-- Terminal --...
-2
votes
0answers
25 views

How to change the value that's in the prompt [closed]

Say I have a bash prompt like so: user@host:/pwd $ foo bar baz is there some env var that I can set to change the text in the prompt? For example I want to set the bash command in the prompt to xyz, ...
0
votes
3answers
43 views

Paste bash command, but make sure it doesn't run

Sometimes when you ctrl-v with bash it will run the command even though you didn't intend to run it yet - is there a way to paste a command into the bash shell / terminal making sure you don't ...
-3
votes
0answers
57 views

Check if in an interactive shell on Linux from C or C++ [on hold]

I've found various answers for how to check if a shell is interactive or not from one of the various shell scripting languages; however, I have not found one on how to do this in C or C++. I get that ...
-1
votes
0answers
25 views

Is there an API for enumerating files/folders in the directory and selecting by number instead of cd? [closed]

A lot of my folders have really complicated names and I would like to be able to just select the folder I want to enter by number instead of by name. Is there anything out there I can just apt-get ...
1
vote
1answer
22 views

Missing header file while installing a C++ written program using terminal

I am trying to install wnd-charm (written in C++) using terminal. I have installed all its dependencies and I also have latest version of gcc and command line tools. I am following the instructions ...
-2
votes
0answers
67 views

I have a problem with the “composer” command on my terminal

I'm currently following a tutorial on how "My first "Hello World page" on "Open Classroom" The problem is that at some point during said tutorial, it is asked to execute the command "composer require ...
0
votes
2answers
40 views

How to unsquash pushed commit to bitbucket

I have squashed 7 commits (using git rebase -i HEAD~7) into a single commit and pushed the changes to bitbucket server. Now, I realized I need to push the 7 commits in original state. I tried git ...
0
votes
1answer
13 views

Creating shorthands for commands in vscode terminal?

It is possible to create git shorthands by defining alias in .gitconfig. Is there a similar facility for all command line options. Say I am not interested in typing npm run build && node ...
0
votes
1answer
31 views

Unable to answer yes to prompt using python subprocess

I have been trying to get a subprocess running in python that requires me to answer a y/N prompt. My code is as follows: process = subprocess.Popen( [ "yes", ...
-1
votes
1answer
59 views

How can I see what functions I call from a c++ standard library?

Let's say im using a c++ stl list and I declare it and do some operations with it. How would I see what specific functions inside the stl list template my program is calling. For example if I have ...
0
votes
0answers
20 views

How to make R echo into real terminal in Ubuntu?

I know that using system('echo "Hello World"') in R console, it does show "Hello World" in the R console. But, is there a way to make a echo from R to the real linux terminal? I tried system('echo "...
0
votes
0answers
25 views

Delete the data instead of updating using sed? [duplicate]

I am facing a strange issue, I have a piece of code written in groovy and contains a shell script to update the values of variables in system.properties file. Most of the times the script works fine, ...