Most voted "terminal" questions
Terminal or console is a line emulator or command prompt, where all commands are issued in plain text.
Learn more…134 questions
Sort by count of
-
1
votes2
answers179
viewsSet position Cursor Windows & Linux with same code
I’m developing a cross-platform application. For this I would like to develop with the minimum of "ifdefs" possible, and what I need to do is basically a fixed screen of 32 x 16 characters. But for…
-
1
votes1
answer295
viewsProblem when installing Gulp
I’m trying to install Gulp on Ubuntu, but it only returns me error: root@gabriel-Aspire-E1-571:/var/www/aaa/projeto# npm install --save-dev gulp npm WARN package.json [email protected] No description…
-
1
votes1
answer454
viewsShortcut MAC/Linux terminal
People how can I create a shortcut in the terminal ? type instead of typing cd xxxx/xxxx/xxxx i just type goDevWeb ? Thank you
-
1
votes2
answers1858
viewsShell script Sed read one file and write to another only on the first occurrence of a string
Good afternoon, I am trying to read from an X file and write to a Y file when a specific String appears. But I only want to include it once. Example I’m trying to make: sed -i '/, pasta/r teste.txt'…
-
1
votes2
answers2307
viewsDelete all lines that have a specific string
I would like to delete all lines that have the string Excluído, searching from one specific string to the end of another. Example: <p class="FolderPath"> <table class="DiffTable">…
-
1
votes1
answer430
viewsCommando gcc on Android Terminal Emulator
I am looking for an IDE for my mobile phone and found the Android Terminal Emulator. However, some Commands are different. I would like to know the command to compile in the terminal. For example:…
-
1
votes1
answer5066
viewsFailed to connect to github.com port 443: Connection timed out
I’m trying to make a git push, or git pull, and back and forth triggers this error: fatal: unable to access 'https://github.com/tiagoferezin/meuRepositorio.git/': Failed to connect to github.com…
-
1
votes2
answers174
viewsHow to send commands to the ruby interpreter from a Shell Script?
This is more out of curiosity... I’ve seen some examples of what I want to do, but in Perl. I tried to find a way to do the same in Ruby, but to no avail. I want a function to generate an MD5 hash…
-
1
votes2
answers177
viewsFailed to insert Gem mysql in Linux Manjaro
It’s been a while since I started playing with Ruby on Rails on Ubuntu and created some little projects. I currently installed the distro Manjaro and installed ruby and Rails and I want to run my…
-
1
votes1
answer72
viewsTerminal: program not installed
After I uninstall some programs whenever I open the terminal appears the following message rbenv is not currently installed. You can install it by typing: sudo apt install rbenv How I remove this…
-
1
votes1
answer1049
viewsFailed to install . deb on Ubuntu
I downloaded a file. deb directly from the official website (Astah Community installer), and after the download was completed I double-clicked on the file. The screen of Ubuntu Software was opened…
-
1
votes2
answers4575
viewsHow to use Sip debug in Asterisk?
In Asterisk software, it is possible to debug a phone number only? without it being peer from my server? I know there are commands: sip set debug peer 1000 sip set debug ip 172.16.0.100 similarly to…
-
1
votes1
answer11399
viewsHow to remove a directory in Windows even if it is in use?
I have a database service running in a known directory C:\meuBanco\exe\ and now I have developed an updater of this service, which performs the following steps: For service Excludes the folder exe:…
-
1
votes1
answer112
viewsWhy does the cd command not work via ssh on the GOCD?
I’m trying to run the command down at the terminal GOCD, but always the error occurs: Commando ssh root@host 'cd /var/www/gda-frontend/ && docker-compose up -d --build' Error bash: cd…
-
1
votes1
answer62
viewsInstall . Net Core SDK and Runtime from the Windows terminal?
I need to install both Runtime and the SDK. Net Core on the college machine, however, only place where I can put a proxy for general access is in Terminal, so I wonder if you have how to install…
-
1
votes1
answer390
viewsHow to create a Script inside a program in the terminal?
I’m looking to develop a script to automate some repetitive tasks I’ve been doing on the terminal. However. I can only create Scripts for Commands directly in the terminal, not for commands within…
-
1
votes1
answer729
viewsError: "Cannot find Symbol" - Class Instance within Main Class, using Linux terminal
I have an exercise to solve, which consists of creating a simple Java language calculator. I have to send the two numbers through Terminal as arguments to my program. I am using the following build…
-
1
votes1
answer57
viewsLink in the terminal
Is there any way to make when the localhost:3000, who is in the terminal, be pressed ctrl + click the browser opens on the page in question ( localhost:3000 ) ... this in a Javascript code :…
-
1
votes1
answer137
viewsHow do I login to a repository?
I needed to change the password in the bitbucket, so the push and the pull from my local repository no longer work. I authenticated myself via https. What command to use to authenticate me in the…
-
1
votes3
answers238
viewsRemove all after ? in file name
Hello! I’m trying to rename a large amount of files on linux, but I’m not getting the command right. The case is as follows: I have several files inside a directory and its subdirectories that have…
-
1
votes1
answer1088
viewsCopy batch files by renaming them with the original directory name
Suppose I have a directory structure organized as follows on my PC: Diretorio 01 Arquivo 01.jpg Arquivo 02.jpg Arquivo 03.jpg Arquivo 04.jpg Diretorio 02 Arquivo 01.jpg Arquivo 02.jpg Diretorio 03…
-
1
votes2
answers18166
viewsUninstall Mysql from Ubuntu
I’m trying to give up Ubuntu’s Mysql with the command sudo apt-get remove mysql-server --purge But every time it returns me an error saying that Mysql is already updated, I already tried to use the…
-
1
votes2
answers81
viewsIs there an extra parameter for the linux script command for characters to be saved with the correct encoding?
When using the command script filename.txt is saved in the created file everything that is generated in the terminal, but when saving, the text is encoded in several points, points that I needed to…
-
1
votes1
answer168
viewsBash write output in terminal and file
I am creating a script and need the outputs to be shown in the terminal, but also saved in a file #!/bin/bash echo "Olá Mundo" and I am redirecting the output to the file as follows ./teste.sh >…
-
1
votes2
answers455
viewsError executing a Flutter command
To test whether the flutter was correctly installed on my Linux machine I wrote in bash the following command : flutter doctor and received the following return message : zsh: command not found:…
-
1
votes0
answers586
viewsOpen html,css and others with commands in the terminal (Linuxmint) for the Browser
Good morning, Afternoon, Evening, Gentlemen. Please, I am beginner in Linux, so I have small impasses that diminish my production, could someone please teach me or show in the comments below, how to…
-
1
votes0
answers45
viewsVscode terminal with improper encoding
I’m using Visual Studio Code for my C classes, but I’m really bothering myself with the terminal. He’s using some encoding that doesn’t admit accents and it’s compromising the visualization of my…
-
0
votes1
answer93
viewsModify VIM cursor by running on Console2
I cannot change the cursor type of VIM when I enter Insert mode, when I use Console2. I wanted him to do as he does in the cmd, as the figure below: Does anyone know if it’s possible, and if it’s…
-
0
votes1
answer654
views -
0
votes2
answers1163
viewsCopy local computer file to remote via terminal
Is there any way to copy a file from a local folder to a remote, via the terminal? Something like the command ssh?
-
0
votes1
answer325
viewsCount number of occurrences in a for in loop {Bash}
I have the following script #!/bin/bash for file in *.jpg; do convert $file -resize 1920x1080! -blur 0x8 alterado$file; echo "A Processar o ficheiro $file" done I want to do an echo with Processor…
-
0
votes1
answer253
viewsProblem with Allegro image call by Mac C terminal
Guys have a problem here, I’m playing a game using the Allegro, I am compiling by the terminal and ta ok, there is only one however, when I load an image of the fault when loading the image, the…
-
0
votes1
answer2193
viewsHow to install the moon via terminal in Ubuntu?
How to install the moon via terminal in Ubuntu? When I try apt-get install lua is returned O pacote lua é um pacote virtual fornecido por: lua5.1 5.1.5-5ubuntu0.1 lua50 5.0.3-7 lua5.2 5.2.3-1…
-
0
votes1
answer323
viewsFailure error[INSTALL_FAILED_INVALID_URI] in GCC
I’ve done everything, installed the GCC C4droid by Google Store, already installed the Android Terminal Emulator and also root ei and free access to $su. However when I try to install GCC using the…
-
0
votes1
answer102
viewsError when compiling Phonegap
When running the command to compile phonegap phonegap build android But you make a mistake: [phonegap] executing 'cordova build android'... Running command:…
-
0
votes1
answer606
viewsI want to use php exceptions to ignore an error that ends up terminating the script
When the user does not have the client installed I get an error terminating the script. How to ignore it with exceptions and continue the script? PHP Warning: Invalid argument supplied for foreach()…
-
0
votes1
answer124
viewsHow do I download via Github URL or SSH
In the code json below I can only clone from the repository the dependencies of Phpmailer, if the url of the Cpanelinc/xmlapi-php are not set in repositories in the código, when if https or ssh url…
-
0
votes2
answers241
viewsHow to switch the #(fence) symbol by the $(dollar sign) in the terminal after switching user
I’ll be direct, because the title denotes part of my curiosity about the linux console. Explain In some distros like - xPud and Basiclinux3 no "HOME" support is only "ROOT" and ready! In the distro…
-
0
votes1
answer163
viewsPython Source with subprocess
I’m trying to run a command line on the terminal through a python script. The command line is as follows: vcftools --vcf <arquivo.vcf> --extract-FORMAT-info GT --out <arquivo sem…
-
0
votes1
answer436
viewsUbuntu terminal access a website every day
I am working with a Webservice (SOAP + XML) that requires access every day on a link, I want to automate this service on my Ubuntu Server, I thought of using Lynx along with Crontab to access the…
-
0
votes0
answers128
viewsHelp with installing Ionic Cordova via Terminal - Mac!
I’m trying to install Ionic to develop a mobile app and am following a step-by-step site:Tableless, but in the part where it is requested to perform the command npm install -g ionic cordova,…
-
0
votes0
answers227
views -
0
votes0
answers793
viewsError: Could not find or load main class Mainex1"
Previously questioned question that gave basis to this error The error in question is the use of a JAVA program using the Linux Terminal. I already have the compiled classes, the error appears when…
-
0
votes1
answer111
viewsPhpstorm terminal does not recognize php from xampp
Does anyone know why the Phpstorm terminal does not recognize php from xampp? Because Windows terminal works normal Composer, php used with Laravel, but phpstorm terminal does not work…
-
0
votes0
answers96
viewsJava how to create a custom command line
Hello folks wanted to know if you have how to customize the command line... basically create a custom line on the console I have a code that creates a terminal capable of supporting colors (Windows…
-
0
votes1
answer255
viewsHow to get around a GOTO problem in PHP
I have a small package manager in the terminal of own use and that manages my Framework, and I am giving an improvement on it, and falls into a problem where I can not loop without using goto, as in…
-
0
votes1
answer80
viewsWhat does this -J8 mean?
I am learning how to set up a server and came across this command -J8. I have not found anywhere an explanation of why this command. Could someone help me understand what he does? Thanks in advance…
-
0
votes1
answer476
viewsHow to remove Node in Arch linux / Linux Manjaro
I recently started a project but my Ode has a small error and I need to remove it. The following question is how to completely remove Node.js using the Arch-linux terminal ? And when executing the…
-
0
votes1
answer42
viewsReplacing URL within multiple txt file with Linux terminal
I have several files. txt Ex: arquivo1.txt arquivo2.txt arquivo3.txt Inside these files I have several urls as follows: https://www.site.com.br/diretorio/ https://www.site.com.br/diretorio/…
-
0
votes1
answer22
viewsTAB autocomplete does not work with NPM
It’s quite simple, the autocomplete always works less when it starts with npm. Can someone explain to me what this is and how to fix it?