Unix Copy Command Examples [ cp command ]

The cp (copy) command is used to copy files and directories in Unix-like systems. Here are some common examples of using the cp command: Copy a single file: cp file1.txt file2.txt This will copy the file file1.txt to a new file named file2.txt. Copy multiple files: cp file1.txt file2.txt file3.txt /destination/directory This will copy file1.txt, … Read more

Linux / Unix: Rsync Resume Partially Downloaded Files

You can resume a partially downloaded file using rsync by using the –partial and –continue options. The –partial option allows rsync to keep partially transferred files, and the –continue option tells rsync to resume a transfer that was previously interrupted. For example, to resume a file transfer using rsync, you can run the following command: … Read more

HowTo: Install firefox-13.0.tar.bz2 in Linux

To install Firefox 13.0 (firefox-13.0.tar.bz2) in a Linux environment, you can use the following steps: Download the firefox-13.0.tar.bz2 archive from the official Mozilla website or a trusted source. Open a terminal window and navigate to the directory where the archive was downloaded. Extract the archive using the following command: tar xjf firefox-13.0.tar.bz2 Navigate into the … Read more

Firefox Disable / Hide New Tab Page

In Firefox, you can disable or hide the new tab page by modifying the browser’s configuration settings. Here are the steps to do so: Type about:config in the address bar and press Enter. In the search bar, type browser.newtabpage.enabled Double-click on the browser.newtabpage.enabled preference to change its value to false. This will disable the new … Read more

WordPress: Disable Post Revisions / Turn Off Revisions

In WordPress, you can disable post revisions by modifying the WP_POST_REVISIONS setting in the wp-config.php file. This setting determines the number of revisions that WordPress should store for each post or page. To completely disable post revisions, set the value of WP_POST_REVISIONS to false in your wp-config.php file: define(‘WP_POST_REVISIONS’, false); If you want to limit … Read more

How do I remove a directory in Unix?

In Unix, you can remove a directory using the rmdir command. Here’s an example: rmdir directory_name This will remove the directory directory_name if it is empty. If the directory is not empty, you will receive an error message that the directory is not empty. To remove a directory and all of its contents, including subdirectories … Read more