Skip to main content

Posts

Showing posts with the label ubuntu

Find UUID

How to find UUID of iPhone using on ubuntu?? This is very easy and can be done by using following command on terminal lsusb-s :`lsusb | grep iPhone | cut -d ' ' -f 4 | sed 's/://'` -v | grep iSerial | awk '{print $3}' This will give you forty 40 charactors long string

How to create virtual host on ubuntu apache2

How to create virtual host on ubuntu? create conf file under /etc/apache2/sites-available/ name it as vhosts.conf and put following contents <VirtualHost 127.0.0.3:80> ServerAdmin webmaster@test.dev ServerName test.dev ServerAlias www.test.dev DocumentRoot /var/www/html/projects/test ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> run following command to enable site sudo a2ensite vhosts.conf run following command to restart apache service sudo service apache2 restart run following command to enable rewrite mode sudo a2enmod rewrite and thats it

General linux commands

When I have started working on linux platform, i was unable to work. And I m writing this myself actually so that i can get help form this post to know about particular command and this post can also help others. I will be covering all below questions. How to find pid of program like firefox? How to find out the current running kernel version? How to find a file with .txt extension in particular directory? How to find a file containing word 'hello' in particular directory? How to change ownership recursively? How to change permissions on directory recursively? How to login using ssh? How to check if package is installed Let for example if we want to check if apache is installed? How to check for processes listening on port 80? How to check for a procesess files are located? How to Zip a folder in linux? How to remove directory in linux? How to find pid of program like firefox? ps -aux | grep firefox How to find out the current running kernel version? cat /...