March
13
March
13
How to create an admin user on Ubuntu Server
March
10
How to Download single file from GitHub in Terminal?
- Click the file name in a GitHub
- Click Raw to display the file contents.
- You will see the file’s url link
In the command line, run
curl -OL https://raw.githubusercontent.com////path/to/file (this is the file’s url link)
O means that curl downloads the content
L means that curl follows the redirection
March
10
How to Quit VI editor without saving anything?
To quit the vi editor without saving any changes you’ve made:
- press Esc.
- Press : (colon).
- Enter the following:
q!
This will quit the editor, and all changes you have made to the document will be lost.