Here's a handful of some really useful terminal commands that might make your life considerably easier.
Ctrl + a
Move to the start of the command line on the terminal.
Ctrl + d
Log out from the terminal (when the command line is empty).
This can also complete the current running process (for example, when decrypting in GPG).
!abc
Execute the last command in history beginning with abc.
tty
Prints the name of the terminal in which you are typing this command.
time
Determine the amount of time that it will take for a process to complete.
who
Determine the details of users who have logged onto the machine.
free
Raw information about memory on the disk.
Showing posts with label helpful. Show all posts
Showing posts with label helpful. Show all posts
Tuesday, 24 March 2015
Tuesday, 5 February 2013
How to Block a Website Using the Hosts File in uBuntu
If you’ve ever wanted to block a website more comprehensively than a Firefox add on then this might be for you.
1. Hit Alt + F2 to bring up Run.
2. Type the command:
gksu gedit /etc/hosts
3. To block the website add 127.0.0.1 then the website. Tab to create the space, if you were wondering.
4. Save and you’re done. Obviously, you can always go back and remove those lines if you want to use those sites again.
Labels:
block,
facebook,
guides,
helpful,
hosts,
internet,
internet addiction,
social networks,
tips,
ubuntu,
website
Subscribe to:
Posts (Atom)