Questions tagged as 'terminal'

1
answer

Commands on the Mac terminal

I tried to install Composer in OSX 10.10.3 following the site's instructions: curl -sS https://getcomposer.org/installer | php and after that I am no longer able to execute the commands curl , ls , among others. The terminal d...
asked by 10.06.2015 / 23:09
0
answers

Top command with php does not return the same value as the terminal

I'm building a code in php to monitor my CPU usage. I'm using the top command that is native to linux. I am using a pc with ubuntu server 18.04 for testing. Well, what happens is that I open the terminal and run the php together, the value of...
asked by 19.12.2018 / 13:39
0
answers

How to change the UUID of a partition via C code? [closed]

I am doing a program in C, and for Linux, I have been able to easily "catch" the UUID with the command blkid . This program needs to know if the disk where it was installed is still the same and allow to change the UUID itself. Is it...
asked by 11.09.2016 / 09:27
1
answer

Run Rails commands on the Ubuntu terminal

I'm learning Ruby through an Alura course and I have a question.    bash: / usr / local / bin / rails: /usr/bin/ruby2.3: Invalid interpreter:   File or directory not found To solve this, every time the terminal is opened I execut...
asked by 16.06.2016 / 19:16
0
answers

How to configure Apache via command line?

I wonder if it is possible to configure Apache using command line (Terminal). So far, the best I can do is to run the command apachectl -S which returns me the settings, but that returned value is not very friendly. Is there any way to ge...
asked by 19.05.2015 / 18:14
2
answers

How to use sip debug in asterisk?

In Asterisk software, is it 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 In a similar way to debug it is possible to...
asked by 01.02.2017 / 20:30
3
answers

Remove everything after? in file name

Hello I'm trying to rename a large amount of files in linux, but I'm not able to hit the command. The case is as follows: I have several files in a directory and its subdirectories that have the following name format nome_do_arquivo.ext?...
asked by 09.05.2018 / 16:35
1
answer

How to create a script inside a program in the terminal?

I'm trying to develop a script to automate repetitive tasks I've been doing in the terminal. However. I can only create Scripts for Commands directly in the terminal, not for commands within the program. How can I create a SH that will...
asked by 06.10.2017 / 04:16
2
answers

Delete all rows that have a specific string

I would like to delete all rows that have the string Excluído , searching from a specific string to the end of another string. Example: <p class="FolderPath"> <table class="DiffTable"> <tr> &...
asked by 04.12.2015 / 14:11
1
answer

Copy batch files, 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 Arquivo 01.jpg Arquivo 02.jpg...
asked by 22.07.2018 / 18:54