Ubuntu : Usefull tips and tricks

Posted: April 27, 2013 in linux, ubuntu
Tags: , ,
  • Disable / enable Ubuntu desktop display manager
<br />service lightdm stop<br />

In order to enable the display manager again, log in via terminal by pressing Ctr + Alt + F1 and execute,

<br />service lightdm start<br />
  • Set maximum number of files open
<br />* soft nofile 65000<br />* hard nofile 65000<br />

Add the above lines to the file /etc/security/limits.conf

  • Show capacity of the current folder
<br />du -h<br />
  • Search only in specified file extension
<br />grep -r --include=*.java "import" *<br />

This will recursively search for the word 'import' only in files which has the extension java.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s