Questions tagged as 'linux'

1
answer

This alias does not work, apparently well written

I added this alias to jo/.bashrc : alias lm='cd /home/jose/Escritorio/GRADO\ SUPERIOR/.lmfinal/' However, every time I type lm I do not get it.     
asked by 05.07.2017 / 20:05
3
answers

Slow VirtualBox with Linux [closed]

I have Linux installed in VirtualBox in the Windows 10 computer. It is a question of when I use VirtualBox that I am going to turtle. I do not know if it's why I'm using VirtualBox or I have it misconfigured     
asked by 25.05.2017 / 04:37
2
answers

Equivalent command in Linux

I have a question, in windows I use a command that allows me to locate myself inside a directory and create a text file with all the existing files in the directory in question the command that I used for it is the following cd /carpeta/ruta_d...
asked by 11.11.2018 / 02:02
1
answer

Doubt array of bash

I was trying to do the following:    Make a script that adds to an array all the files in the / home directory whose termination is .doc MY SOLUTION: vector=() guardar=0 for i in 'find /home -name *.doc'; do vector[$guarda...
asked by 01.11.2018 / 22:44
1
answer

Appropriate use of .htaccess

I have a server with a web application developed in laravel, I am trying to configure the .htaccess file so that, if a URL is entered with index.php , it disappears. I am currently using these lines: RewriteCond %{THE_REQUEST} ^.*/ind...
asked by 29.06.2017 / 18:15
1
answer

Execute Linux command in PHP gives error "sudo: no tty present and no askpass program specified"

I'm trying to restart a Linux service, but it does not work for me. I have this piece of code taken from the web: <form action="reset.php" method="post"> <input type="submit" value="Reiniciar" class="button" > </form>...
asked by 30.05.2017 / 10:12
2
answers

How can I modify the default permissions in linux?

I'm specifically using raspbian, a debian-based version optimized for Raspberry Pi. I would like to modify the permissions that are given to the new files by default, I have searched for information and what I want to do can be done with the "um...
asked by 01.02.2017 / 21:52
2
answers

How can I install nodejs in an ssh console?

I want to install nodejs but it does not leave me, it gives me an error about the -f command and it gives me invalid. I install it this way: wget https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x86.tar.xz tar -xvf node-v6.9.1-linux-x86...
asked by 12.11.2016 / 02:03
2
answers

Search string in directory, sub-directories and linux files

I have this string : MY_STRING and I have this directory : |root |-MY_STRING // <- directorio con MY_STRING por nombre |--MY_FILE.txt // <- archivo con MY_STRING escrito en el |home |-MY_STRING.txt // <- archivo con M...
asked by 11.11.2016 / 18:00
1
answer

Connect with SSH at AWS instance [closed]

I have an instance of Ubuntu created in AWS, I have generated the .pem to connect with SSH in the following way: ssh -i my_key.pem user @ ip My surprise is that I was able to connect from the terminal of my Mac the first time but if I...
asked by 27.07.2016 / 18:20