# List text without comments (#)
grep -v '^#' file1 file2 file3
# Create a symbolic link in /usr/local/lib
ln -s /opt/program/program.sh /usr/local/lib
chomod u+r | chmod g+r | chmod o+r | chmod ugo+r
grep "<pattern>" <filename>
<command_output> | grep "pattern"
ps -A | pgrep code
du -sh <directory_name> # Espaço de uma pasta
echo -n 'user:pwd' | base64
#!/bin/bash
# redirect stdout/stderr to a file
exec &> logfile.txt
sudo systemd-resolve --flush-caches
Generate Keys (~/.ssh/id_rsa)
ssh-keygen
Copy public keys to server
ssh-copy-id -i ~/.ssh/id_rsa.pub username@servername
# create a new file in /usr/share/applications and save with this informations
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=<Sample Application Name>
Comment=<A sample application>
Exec=/opt/<application>
Icon=<application.png>
Terminal=false
Categories=Application
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
https://www.server-world.info/en/note?os=Ubuntu_19.04&p=desktop&f=5 https://www.tecmint.com/install-and-configure-vnc-server-on-ubuntu/