Today, I learned various new commands of ubuntu.
Command to connect to wifi through terminal.
nmcli d wifi connect <WiFiSSID> password <WiFiPassword>
If you have to login for wifi through browser. You can follow steps listed below.
$nmcli d wifi connect <WifiSSID> //WifiSSID means name of Wifi
Then install elink through
$sudo apt install elink
If already done then type
Enter URL of login page and password. Congratulation you are connected through Wifi from terminal. It may seem tedious task but if you know the real power of terminal than this long procedure is worth in.
Inspite of this I used to online tool to edit the properties like aspect ratio, height and width of image through online tool http://resizeyourimage.com/ . I have used it to fill GATE examination form.
Mutt is apowerful program for reading and sending electronic mails.
I followed two references to install mutt.
$sudo apt install mutt
$ sudo touch $MAIL
$ sudo chmod 660 $MAIL
$ sudo chown `whoami`:mail $MAIL
Create the ~/.muttrc file
set imap_user = "userName@gmail.com"
set imap_pass = "password"
set smtp_url = "smtp://userName@smtp.gmail.com:587/"
set smtp_pass = "password"
set from = "userName@gmail.com"
set realname = "Sender Name"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set move = no
For furthur usage of Mutt keep in touch with me.
To find the file. Its alterantive is locate command.
find -iname <filename>
i means case-insensitive. It is an optional.
eog means eye of Gnome. It shows image.
pdftk in.pdf cat 1-endE output out.pd
sudo easy_install -U pip
To install pip.
To open odt file in libreoffice. We can also open docx file.
pandoc -f latex -t docx -o irc.docx irc.tex
It will convert tex file to docx. We can also convert tex file to odt. For it just replace docx with odt.
|git commit -m “first commit”
|git branch (tell all branches in repo)
|git branch -m master(rename current branch to master)
git clone https://github.com/amisha2016/fresh
git reset --hard HEAD^ //to undo revert command