top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What commands are available for /bin and /sbin directory?

+6 votes
823 views
What commands are available for /bin and /sbin directory?
posted Dec 10, 2013 by Prachi Agarwal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

/bin: Stands for binary. This folder contains base executables which are required for minimal system working. These commands are available in runlevel 1 for basic administration. Commands which are available in /bin folder is accessed by every one and can run by every user. This folder contains basic commands such as cat, chmod, chgrp, chown, date, dir, dd, df, ln, mv, echo and zipping tools such as bzip, gzip etc.

/sbin: This folder stands for system binaries or super user binaries. This folder contains commands which are required for changing system properties or system level settings such as disk management, network management etc. This folder is accessed some times by normal user but they can not execute any of the commands located in this and what ever commands/scripts located in this folder are run only by root user. If you want to make normal user to run these commands you have to implement SUDO or Powerbroker to give elevated access. Some of the commands available in this folder are chkconfig, dhcpclient, fsck and its related commands, ifconfig and its related commands, init and its related commands, lvm and its related commands etc.

answer Dec 10, 2013 by Luv Kumar
Similar Questions
+3 votes

What are the commands to make a file hidden and to delete all hidden in the folder in Linux? Please explain in detail?

0 votes

I looked in /lib/systemd and /etc/systemd, recursively, and none of the services or dependencies have the string pulseaudio in them.

0 votes

I was playing with the permissions of

/home
/home/abc

Could someone please tell me the commands to restore the correct permissions to those both directories?

...