Tuesday, June 14, 2016

Linux tricks

Hello guys,. Welcome to my blog post on linux tricks. I am a long time windows fan and still use windows on my primary home computer. However i use a mac at work because i do IOS development. Nevertheless i use linux every now and then.

Here are a list of useful linux commands to learn

reload .bashrc file without having to reboot linux

source .bashrc

How to share a folder on linux using samba and connect to it through windows

open /etc/samba/smb.config

and add the following text

[share]
    comment = Your Comment
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

Save the file and restart samba server. (Command :- smbd stop and then smbd start ) Now enter ifconfig command to determine the ip address of linux. Now since you know the ip address you can map network drive under windows.


1 comment: