Skip to main content

Posts

Showing posts with the label Linux

Unable to install php5-curl IN linux

if You have higher version of php-common or any thing then first remove it and after that install php5-curl , php5-gd, and what-ever you get error. some thing like this... but you have to notice that when you are trying to remove module then that time some other module is  when i try to run  sudo apt-get remove php5-common then i get  Removing php5 ... Removing libapache2-mod-php5 ... Module php5 disabled. To activate the new configuration, you need to run:   service apache2 restart Removing php5-cgi ... Removingl   php5-mysq ... Removing php5-mcrypt ... Removing php5-cli ... Removing php5-common ...aloso removed some thing like then you have to install all removed module like   sudo apt-get install libapache2-mod-php5 sudo apt-get install  php5-cgi sudo apt-get install   php5-mysq sudo apt-get install   php5-mysq sudo apt-get install  php5-cli  sudo apt-get remove php5-common sudo apt-get install php5-curl

How to install exe file on linux.,?

To install exe on Linux we uses  wine so first we have to install it the we can install any exe file on your Linux machine to install wine use this command: sudo apt-get install wine if you install it successfully, then now you are ready to install your exe file and now right click on you exe file and open it with wine.... for more information use this link  http://www.winehq.org/

Rename Folder or File

mv old_folder_name new_folder_name mv  also can move several files into a destination folder, or rename a single file. Rename a file mv old_file_name new_file_name Rename a directory. mv file_name destination_directory Rename will retain the attributes and the creation date of the original file/folder.

Copying Moving and renaming Removing file

  Copying   To copy files, you use the  cp  command. The following will copy  file  to  file2 . Note that if  file2  doesn't exist, it'll be created, but if it exists, it'll be overwritten: $  cp file file2 There aren't any undo commands in the Linux CLI, so accidentally overwriting an important file would probably make you pull your head off. The risk of doing so is smaller if you use the  -i  option ("interactive") with  cp . The following does the same as the above, but if  file2  exists, you'll be prompted before overwriting: $  cp -i file file2 cp: overwrite `file2'?  n $ So it's a good idea to use the  -i  option whenever you're dealing with important files you don't want to lose! If you want to copy  file  into directory  dir1 : $  cp file dir1 The following would do the same as the above, copy  file  into  dir1 , but under a different name: $  cp file dir1/file2 You can also copy multiple files into one directory w

Finding the size of a directory

'du' - Finding the size of a directory $ du Typing the above at the prompt gives you a list of directories that exist in the current directory along with their sizes. The last line of the output gives you the total size of the current directory including its subdirectories. The size given includes the sizes of the files and the directories that exist in the current directory as well as all of its subdirectories. Note that by default the sizes given are in kilobytes. $ du /home/david The above command would give you the directory size of the directory /home/david $ du -h This command gives you a better output than the default one. The option '-h' stands for  human readable format . So the sizes of the files / directories are this time suffixed with a 'k' if its kilobytes and 'M' if its Megabytes and 'G' if its Gigabytes. $ du -ah This command would display in its output, not only the directories but also all the files that are present in the cu