How to open bash profile?

sudo open gedit ~/.bash_profile

How to delete a directory even if it's not empty?

You might have seen, while using the "rmdir" command that you cannot delete this directory as it is not empty.

Use the following command :

> rm -r directoryName

or

> rm -rf directory_Name

so, "f" represents force. So, it will skip all the necessary checks and simply wipe out the whole directory.

Use SUDO, if you still cannot delete.



Enjoy Linux...!!!!
+CentOS
+Linux
+Ubuntu

How to remove node from your system?

For RHEL systems, Fedora, CentOS
> sudo yum remove nodejs

For Ubuntu 
> sudo apt-get remove nodejs

And you are good to go


For verification,
Type in the terminal
> node


Simple...!!!!

Enjoy Linux,
+CentOS
+Ubuntu








How to remove npm ?


  • Ok, so npm stands for Node Package Manager, and trust me, it's really an awesome thing. 
  • It is a package manager for various things, like angular, node (default), gulp, grunt, mobile, javascript and many more.
  • But, it is also important to know, how to uninstall npm from the system to get a fresh npm later.
  • So, here it goes
$ sudo npm uninstall npm -g
$ npm -v
  • To remove everything related to npm,
$ rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*


Simple..!!!


Enjoy Linux
+CentOS

    Delete dual boot options on windows

    Sometimes, we see multiple options of windows even if they are not running because of failed installation.
    So, to remove them,

    1. Goto run, and type msconfig:
    2. After msconfig is launched:
    3. Go to the Boot tab
    4. Slect the boot entry you want to delete.
    5. Click the Delete button and then click OK.

    Thats all.