hdparm is a command line tool to find the actual read/write speeds of hard disk. To find the read write speeds of a drive, simply exexute the following command in terminal:
sudo hdparm -tT /dev/sda
the -t flag is for read timings and -T is for write timings.
/dev/sda is the disk on which the read/write timing measurements are to be performed.
In case hdparm is not installed, you can install it via command (in debian based distros):
sudo apt-get install hdparm
To analyse disk usage using terminal, a very handy utility exists by the name of NCurses Disk Usage. To install it, type the following in Debian based distributions (Ubuntu, Linux Mint etc)
sudo apt-get install ncdu
The most common usage of ncdu is with the options -x and -q.
-q Quiet mode, doesn’t update the screen 10 times a second while scanning, reduces network bandwidth used
-x Don’t cross filesystem borders (don’t descend into a directory which is a mounted disk)
To use the program
ncdu -x -q
Sample Screenshot
to clone a remote github repository
git clone <name_of_remote> <location_of_git_repo>
to create a local branch
git branch <branch_name>
to see the list of branches existing in your local repository
git branch
to see the remote aliases
git remote
to create/push data to a branch on remote
git push origin <branch_name(existing in local)>
to see the branches on remote
git remote show origin
to get all the latest from remote
git fetch origin
to copy/merge the latest from remote with our local checked out branch
git merge origin/<remote_branch>
to push to the remote repository that you have just created
git push remote origin
The command to install a deb file via terminal is :
$ sudo dpkg -i package.deb
In Eclipse, go to Window -> Preferences -> Team -> Ignored resources you can uncheck the entry for *.obj. Then you should be able to add your *.obj-files to the repository
In terminal type the following command :
curl ifconfig.me
If you receive an error about curl not being found or installed, install it by using the following command (on Debian based distros (Ubuntu, Linux Mint)):
sudo apt-get install curl
w - to show the cage
shift+tab - to smooth and shade the model
s - to really smooth the selected body (breaks each quad into 4 smaller quads)
l - to create edge loop (loop of edges) when one edge is already selected
tab - to enter the value parameter for operation such as length via keyboard
c - connect the selected vertices
g - edge ring (ring of edges)
o - to switch to orthogonal view
v/e/f - to switch to vertex/edge/face selection mode
shift + x/y/z - to view from the negative x/y/z axis
d - redo last command
Eclipse : how to display line numbers -
In Eclipse IDE, select “Windows” > “Preference” > “General” > “Editors” > “Text Editors” , check on the “Show line numbers” option.
Sometimes after importing an existing project into eclipse, it gives errors about wrong override annotations. This is because override annotations were not allowed in java 1.5.
To remove this error do the following :
Right Click on Project > Build Path > Configure Build Path > Java Compiler
and set the version to 1.6
(Source: stackoverflow.com)