- r = ler; w = escrever; x = executar
- chmod:
chmod +x filename
Dá permissão de execução para todos os usuários Os outros argumentos podem ser +w e +r
chmod u=rwx,g=rwx,o=rwx filename
Dá as permissões rwx para usuário, grupo e outros
chmod 777 filename
Dá as permissões 7 (rwx) para usuário, grupo e outros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
nmcli con add \ | |
type wifi \ | |
con-name "eduroam" \ | |
ssid "eduroam" \ | |
wifi-sec.key-mgmt "wpa-eap" \ | |
802-1x.identity "seu usuario do sigaa@ufpb.br" | |
802-1x.password "sua senha do sigaa" \ | |
802-1x.system-ca-certs "yes" \ | |
802-1x.domain-suffix-match "ufpb.br" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable multilib | |
$ sudo vim /etc/pacman.conf | |
# Add/uncomment the following to the file: | |
[multilib] | |
Include = /etc/pacman.d/mirrorlist | |
# Update the package database and install Steam | |
$ sudo pacman -Sy | |
$ sudo pacman -S steam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class Sort { | |
static void InsertionSort(int[] arr) | |
{ | |
int n = arr.Length; | |
for (int i = 1; i < n; ++i) | |
{ | |
int key = arr[i]; | |
int j = i - 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### define o compilador | |
CPPC = g++ | |
############################# | |
#### opcoes de compilacao e includes | |
CCOPT = -O3 -fPIC -fexceptions -DNDEBUG -DIL_STD -std=c++11 | |
CONCERTINCDIR = $(CONCERTDIR)/include | |
CPLEXINCDIR = $(CPLEXDIR)/include | |
############################# |