How to
Topics
Download files from the cloud
Send content to WeTransfer cloud-like
Download using wget
Installing wget
Download a single file
Save the downloaded file under a different name
To save the downloaded file under a different name, pass the -O
option followed by the chosen name.
How to download in the background mode with wget
To download in the background, use the option -b
. In the following example, we are downloading the OpenSuse iso file in the background.
Download all files from FTP
Download / Upload Files
Single file from remote to local
Multiple files from local to remote
All files from local to remote
All files and folders recursively from local to remote
References: Simplified Guide
DNS
Custom DNS
Custom DNS servers for /etc/resolv.conf
To define a custom DNS:
First, install
resolvconf
and follow the commands bellow
Put the nameservers from Google inside the file
/etc/resolvconf/resolv.conf.d/head
Update Resolvconf
Restart the resolvconf service
Get current IP from the shell
Stream audio
Alt + F2
and typepavucontrol
Select
Recording
tabChange to
Internal audio monitor
Search inside files recursively
Display Usage in Megabytes and Gigabytes
Display a Specific File System
Show size of folders
Empty trash
Search and replace inside the file
Network
Check network ports in use
Check opened network ports of the server
Open network ports
Open Firewall ports
To open ports on the firewall, using the iptables command is possible specifying the desired port. Using the example below, just replace port 8888 with the desired port.
Logs
Show real-time logs from OS
Environment
Set Global environment
Set local environment
Unset local environment
Startup
Show all service status
Exec commands at startup
PPA
Remove installed PPA repository
Use the "--remove" flag, similar to how the PPA was added:
As a safer alternative, you can install "ppa-purge":
And then remove the PPA, downgrading gracefully packages it provided to packages provided by official repositories:
Note that this will uninstall packages provided by the PPA, but not those provided by the official repositories. If you want to remove them, you should tell it to apt:
You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d
directory.
Last but not least, you can also disable or remove PPAs from the "Software Sources" section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).
Execute "add-apt-repository" without press enter
--force-yes
Force yes; this is a dangerous option that will cause apt to continue without prompting if it is doing something potentially harmful. It should not be used except in very special situations. Using force-yes can potentially destroy your system! Configuration Item: APT::Get::force-yes.
Create an alias for shell commands
Add the script below at end of the file
~/.profile
Then type your alias directly
Update packages less noisy
Revalidade ca-certificates
Add multi-touch to your Linux distribution
To do it, make sure to do the steps below:
Paste the content below inside
~/.config/libinput-gestures.conf
:
After that execute the commands below
References:
Get SO information
Know where the program was installed
Show any configured swap
Observe and monitor system memory usage
"-h" means Human Mode
Shows values in Mega or Giga
Downgrade Ubuntu Linux system version
This example will be used a downgrade from Ubuntu 20.10 to 20.04.
From
Version: Ubuntu 20.10
Name: Gorilla Grovy
Codename: grovy
To
Version: Ubuntu 20.04
Name: Focal Fossa
Codename: focal
Downgrade sources.list
Pin packages
Open /etc/apt/preferences
file and enter the following content while replacing the codename of the system codename you aim to downgrade to.
Downgrade Ubuntu system
If you found any errors try this:
Find and remove folder recursively
Open Mac External Harddrive on Linux
Install Postman
Unzip with the destination folder
Set -d parameter
How to Install netstat Command in Linux
Show subnet
Show gateway
User & Groups
Create new user
Add an existing user to the Sudo group
Bluetooth device disconnects right after connect
Remove the device on Pulse Audio Bluetooth Devices
Kill pulse audio and restart the Bluetooth service
Bash/Zsh undo (CTRL + Z)
Type: CTRL + /
Last updated