Questions tagged as 'linux'

3
answers

Linux or GNU / Linux?

There has always been a controversy regarding the name of the Linux Operating System. Some believe it is called Linux only, others call it GNU / Linux. After all, is there a correct way to refer to this Operating System?     
asked by 24.02.2016 / 12:24
2
answers

Commands to update Ubuntu apt-get update or apt update without get? [closed]

In the company we received the instruction to run the following commands every morning, but the current project manager did not know to answer the reason and in the search in the internet did not get a good answer. sudo apt-get update sudo apt...
asked by 31.10.2017 / 19:50
4
answers

Count the number of times a character appears in a string

I need to count the number of times a character repeats in a string . For example: How many times does the / character appear in the string below?    '/ file / program-files / test / dev / dev1 / Central.pdf.gz' This string will...
asked by 21.10.2016 / 17:18
2
answers

Problems with bash - echo with char! (exclamation)

I'm trying to pass a password as a parameter so the password uses numbers after the char ! example: root@LinDom:~# senha="teste!123" senha="testevim /etc/hosts" root@LinDom:~# root@LinDom:~# echo ${senha} testevim /etc/hosts root@Lin...
asked by 13.02.2017 / 19:46
2
answers

Send file to remote server with PHP

I have a PHP system that I have developed and put online on my server at DigitalOcean, the site has two parts, which visitors will access and the administration area where I manage this site and put the content users will have access. I left...
asked by 02.12.2016 / 20:22
2
answers

How to get the number of processors and cores through the terminal?

How to check the number of processors (CPUs) and cores by the Linux terminal?     
asked by 09.06.2015 / 17:37
2
answers

Concatenate SH command results in one line

I'm starting to learn Shell Script and got with a doubt. I am creating a .sh to get the number of processes running in the OS and exporting this information to a .csv file. The problem is that I would like to save the results all i...
asked by 23.08.2018 / 20:58
4
answers

Problems installing Android Studio on Linux Fedora

A few days ago I tried to install the Android Studio editor on Fedora linux and I can not. I searched in some tutorials, sites, google and could not find a solution to deal with the error below:    ERROR: Can not start Android Studio \ nNo...
asked by 20.02.2014 / 22:05
2
answers

Function gets on Linux

I'm trying to use the gets (C language) function, but it does not work. Am I using it the wrong way? The code looks like this: #include <stdio.h> typedef struct { int matricula; char nome[40]; int nota_1; int nota...
asked by 29.10.2014 / 22:33
1
answer

How to run application on linux desktop remotely via command?

I have a server on a client where I use a remote application, sometimes some user goes there and closes the application (I do not know if I accidentally or the owner, for fear), then I can not connect. The application automatically starts whe...
asked by 18.06.2018 / 21:36