Linux Commands
Add New User
$ sudo adduser --ingroup users <USERNAME>
$ sudo adduser <YOUR_USERNAME> sudo
$ logout
$ sudo deluser --remove-home user
Setup Wifi
- Generate WPA passphrase for your WiFi
- Update /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <ExampleWifi>
wpa-psk <wpa-psk-generated-by-wpa-passphrase-command>
Update System Time
Download File with URL
Get Root Privileges
if root user account is enabled.
You can logout using key: Ctrl+DOtherwise if system only allows using sudo
Merge Multiple PDFs
# Install pdftk
$ sudo snap install pdftk
# Merge files
$ pdftk file1.pdf file2.pdf cat output result.pdf
Extract Pages from PDFs
$ sudo apt-get install qpdf
# extract page 1 to 5 from input.pdf to output.pdf
$ qpdf input.pdf --pages . 1-5 -- output.pdf
Convert PDF to JPG
Create Gif Animation
Screenshot and Screencast
Get statistics of a code base
Reference
- [1] https://askubuntu.com/questions/2799/how-to-merge-several-pdf-files