DEVGET.NET

Feeding Your Inner Developer

Tag: linux

How to temporarily mount a samba share in linux

sudo smbmount //192.168.2.28/projects /mnt/projects -o user=USERNAME via How to mount a samba shared folder Ubuntu x Ubuntu – Ask Ubuntu.

Linux how to ‘echo’ without a new line

Simply put: use printf printf “Hello World” Alternatively, if you insist on using echo echo -e “No New line…c” test…

How to get a previous date in bash (linux)

Simply put date -d ‘1 day ago’ +’%Y-%m-%d’ # For multiple days date -d ‘7 days ago’ +’%Y-%m-%d’ If you…

How to find physical location of /dev/sd* drives in linux

I wrote a lil script to help out with this.. The syntax is as follows: finddrive.py sda How this works…

How to change date and timezone in linux

To change date: date -s “18 JUN 2013 12:22:00” To change timezone: sudo dpkg-reconfigure tzdata   NOTE: After changing linux…

How to mount cifs as another user in linux using fstab

Follow this template //10.0.10.20/myshare/mysubfolder /radio cifs username=root,password=mycifspw,uid=www-data,gid=root 0 0  

How to Connect to linux PC Via RDP

To use windows Remote Desktop Connection to connect to a linux pc. Simply install xrdp on the linux pc. sudo…

How to mount drive as read only on linux

You normally have to do this when you are dual booting and your windows partition is in a state of…

How to connect to CIFS in linux via Console/Shell

Assuming you have smbclient installed (apt-get install smb-client) smbclient -U username servernamefolder Will prompt for password and┬ávoila! Do a ‘ls’…

How to mount samba share on linux using fstab

# Debian/Ubuntu apt-get install smbfs smbclient # Fedora/Redhat yum install smbfs samba-client #If not found try smbclient mkdir /mnt/dirname //fileserver/sharename…

© 2020 DEVGET.NET. Theme by Anders Norén.