Wednesday, October 17

8 Ways To Mount SMBfs (SAMBA FILE SYSTEM) In Linux.


How to Mount smbfs (SAMBA file system) permanently in Linux.In this post I am going to give some examples how to do SMB (Server Message Block) mounts..
Type: Listing SMB shared folder through command prompt
#smbclient –L ipadd –U username
Here –L will specify listing of SMB share for the server with ipadd
Or
#smbclient //192.168.0.1/share1 –U username
Example :
#smbclient –L 192.168.0.1 –U root

How to find command location in Linux


This is a small how to on finding your command location. Some times its required to find command location to use it as path is not set properly to /bin or /sbin or some other folder. And some times we install packages through scripts where the commands will be installed in a defined path other than /usr/bin or /usr/sbin etc.
command to check where the particular command is installed?
which command-name
Example:
which ls
Output:
root@surendra:/home/surendra# which ls
/bin/ls
root@surendra:/home/surendra#

Linux Directory Structure explained: /bin folder


 /bin is one more important folder. Bin stands for binary which means an executable file. This folder contains commands or scripts or executable which can be executed to accomplish a task. We have some cousins to this folder as given below along with bin folder.
/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin