Questions tagged as 'terminal'

1
answer

Command logs executed via terminal

There is a file .log where you can see the commands applied via terminal in Linux , I usually apply the command history to verify previously executed commands, but this time they deleted the history and I have no trace of whi...
asked by 16.10.2017 / 21:26
2
answers

Problem with input in python

Good morning. I am creating a function that receives two parameters. Such a simple function that carries out the process of adding two numbers. But when I go to the console when I ask for the numbers I have to use two input. one for the first nu...
asked by 18.07.2017 / 04:25
1
answer

Launch program with Python or with cmd

Good morning, I hope you can help me. The fact is that I want to launch a program with a Python script. The first thing that came to my mind was using the os module in the standard Python 3 library. It would be something like: import...
asked by 19.07.2017 / 04:08
0
answers

Reading problems with CSV and PHP [closed]

I tell you my problem: I download from Facebook a list of potential customers obtained to hear canoalas advertising. That file is in CSV UTF-16 format. What I do first of all to modify the encoding and pass it to UTF-8 is: iconv -f UTF-1...
asked by 14.08.2018 / 17:59
2
answers

Compile and execute Java project from terminal

I am trying to compile and run a Java project from the Windows terminal, I have a folder. \ lib with several .jar To compile I use the following command: javac -encoding UTF-8 -d. \ bin -cp. \ src. \ src \ game \ Party.java Compile me...
asked by 26.10.2017 / 00:19
1
answer

install Node and do not run npm (npm: command not found)

I have a problem executing npm is as if it were not installed, I have already tried to uninstall node and reinstall but it still does not come out, so I have read it is installed /usr/local/bin/node but I search the route and it is...
asked by 06.02.2018 / 23:26
2
answers

Error: Too many arguments

I need to compare all the words that I pass as arguments between them, and say if they are the same or not: #!/bin/bash #Ejercicio_4 if [ $# -ne 6 ] then echo Número de argumentos incorrecto else if [ $1 == $2 == $3 == $4 =...
asked by 29.12.2018 / 02:23
2
answers

Run two commands on the console (windows)

I want to execute two commands from the console / windows terminal in a single line (or instruction;) In linux it would be something like cd directory && ls and would execute these commands one after the other, how can I get th...
asked by 09.06.2017 / 20:32
2
answers

Difference between these two commands of the Linux terminal?

Hi friends, I'm a bit new to the Linux terminal, I'm using Ubuntu and seeing one of the commands in this specific cd. I'm seeing that you have two ways to enter a directory asi: cd /usr/bin and so: cd ./bin What would be the benefit...
asked by 20.06.2017 / 18:18
2
answers

Run python file string

I want to run several similar programs one after the other in the terminal. archivo1.py archivo2.py archivo3.py I must not unite the 3 files and create 1 only with the functions of the three, what I am looking for is that I can create a new...
asked by 05.10.2017 / 23:02