Beranda > Linux > Path command on CentOS

Path command on CentOS

hmm.. i usually use ubuntu as my test server but now i use centOS. when i type $ifconfig there is an error “bash: ifconfig: command not found”, for a minute i am clueless but i know i use OS base-redhat, so i type /sbin/ifconfig to show all interfaces. it’s very troublesome if i have to type full path, so i edit .bash_profile in home directory

There should be a line similar to:

Edit the line to read:

or other way, use simbolic link :
ln –symbolic /sbin/ifconfig
but you have to be root first.

  1. Belum ada komentar.
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )


Connecting to %s

%d blogger menyukai ini: