Questions tagged as 'linux'

1
answer

Return 0 on Linux and Windows

I'm starting the ADS course and my programming teacher insists on using return 0 at the end of the function. Most use Windows, I realized that return 0 is required in Windows but in Ubuntu (which is what I use) I do not put retu...
asked by 01.09.2017 / 04:57
2
answers

How to debug shell script in linux?

I'm new to linux, and I'm learning shell script and my question is as follows. When I want to debug something in PHP, for example, I put a breakpoint in the code and run the same with debug on, I wanted to know how can I do this with a shel...
asked by 28.02.2017 / 03:52
1
answer

How to find out the version of my C / C ++ in the Linux operating system?

I would like to learn how to find out the version of my C/C++ in the Linux operating system. How could I do this through Terminal ?     
asked by 06.01.2016 / 12:29
1
answer

How to access the hardware in Linux in C?

I know of the existence of the Microsoft Win32 API, which allows the programmer to manipulate low-level resources such as serial ports, memories, CPU, GPU, etc. However, I work with Linux environments, and would like to know how to access the ha...
asked by 08.01.2016 / 17:06
2
answers

How to define a global alias in BASH?

I'm using Terminal in Linux and I'm tired of repeating the same commands all the time. For example, I use a command almost all day, so I create an alias to make things easier. Example: alias tt="php artisan tinker --env=l...
asked by 10.05.2016 / 19:15
2
answers

Find and Replace Various Word Within a File

I want to develop a script that will replace any words in file . I know what I can do with the command (s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed "s/ABC/123/g" arquivo.txt > novo-...
asked by 05.10.2016 / 06:48
2
answers

linux command - block rename / rename folder

I need to give an ftp user access to the / var / www folder but there are folders that it can not access / edit / delete I tried a command: #chmod 000 <pasta>     
asked by 10.04.2015 / 15:02
1
answer

How to disable (permission) mode of the file in GIT?

I'm working with GIT here at the company where I work, along with two other programmers. Every time I make a git pull , whose changes were sent by these two programmers, I always have a problem with the permission of the file or...
asked by 31.05.2016 / 16:24
2
answers

How to compile a * .c file with clang so that it signals the problems?

In GCC I typed in the terminal: gcc -wall -o nomedoarquivo.c nomedoexecutavel or if you only had 1 .c file [NOTE: typed "a" to facilitate the executable name]: gcc -wall -o *.c a The restriction I used, if there was in the code the...
asked by 31.01.2014 / 01:00
1
answer

What are the most common C ++ compilers in Linux? [closed]

What are the most common free compilers on Linux to compile C ++ 14? "Most common" in the sense of most used and available in various distributions. I'm using CENTOS and I need to compile codes that use the new features of C ++ 14.     
asked by 09.03.2018 / 21:17