Category Archives: Ubuntu/Linux

All post related to Ubuntu or Linux

ubuntu

Linux Tar & UnTar untar .gz file tar xzvf tarname.tar.gz untar .tar file tar -xvf filename.tar tar a folder and sub folders tar -cvvf foo.tar foo/ Finding files sudo find / -name ‘filename’ -type d Service Running on Particular Port … Continue reading

Posted in Ubuntu/Linux | Leave a comment

Memory Usages

At a command line, type df -a This will list each device and usage information. You might find df -h more readable, since it gives quantities in Gb or Mb, etc. http://superuser.com/questions/71087/how-to-check-the-current-disk-space-used-by-my-linux Use some combination of the commands and options: … Continue reading

Posted in Ubuntu/Linux | Leave a comment

setting cron job

for running a url after every 10 min in crontab -e */10 * * * * /usr/bin/lynx http://server/?command=execute&filename=nodejs/commitsolr.js -dump > /dev/null   REf:

Posted in Ubuntu/Linux | Leave a comment

to create ssh configurations

ssh-keygen -t rsa check with ssh localhost  Ref :    

Posted in Ubuntu/Linux | Leave a comment

process STATE codes

PROCESS STATE CODES Here are the different values that the s, stat and state output specifiers (header “STAT” or “S”) will display to describe the state of a process. D Uninterruptible sleep (usually IO) R Running or runnable (on run … Continue reading

Posted in Ubuntu/Linux | Leave a comment

how to remove folder with subdirectories and files

    rm -rf   Ref :  

Posted in Ubuntu/Linux | Leave a comment

Finding the file by name

sudo find / -name hbase-env.sh -print finding a directory by name find / -name ‘httpdocs’ -type d Ref :http://www.codecoffee.com/tipsforlinux/articles/21.htm http://superuser.com/questions/327762/how-to-find-a-directory-on-linuxl    

Posted in Ubuntu/Linux | Leave a comment

setting proxy for wget working in vpn

vi /etc/wgetrc http_proxy=http://http-proxy.server:8080 use_proxy=on   Ref : http://www.labtestproject.com/linux_network/configure_enable_wget_download_through_proxy_server_on_linux_fedora.html

Posted in Ubuntu/Linux | Leave a comment

using vi editor

E37: No write since last change (add ! to override) use :q! Command Summary STARTING vi vi filename edit a file named “filename” vi newfile create a new file named “newfile” ENTERING TEXT i insert text left of cursor a … Continue reading

Posted in Ubuntu/Linux | 2 Comments

how to enable curl in php

sudo emacs /etc/php5/apache2/php.ini extension=php_curl.dll on debian : nice method . apt-get install php5-curl /etc/init.d/apache2 restart Ref :  http://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php

Posted in PHP, Ubuntu/Linux | Leave a comment