Your SlideShare is downloading. ×
0
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Day 3-Important stuff
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Day 3-Important stuff

231

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
231
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.  To delete file: rm <<filename>>  To delete directory with file: rm -rf <<directory name>>
  • 2. To mount pendrive ➔ ➔ ➔ mount /dev/sda1 /mnt/<<directory name>> cd /mnt/<<directory name>> ls
  • 3. To make duplicate or .bak file ➔ cp /etc/samba/smb.conf /etc/samba/smb.conf.bak ➔ cd /etc/samba ➔ ls
  • 4. Now to make a new share user ➔ vi smb.conf smb.conf lai edit gare saka pachi tesko last ma gayara new smb user define garne
  • 5. ➔ [share] ➔ writeable=yes ➔ admin user=smbuser ➔ path=/tmp/share ➔ valid user=smbuser ➔ public=yes ➔ available=yes ….....now save it ➔
  • 6. Now define a new user ➔ mkdir /tmp/share ➔ adduser smbuser ➔ passwd smbuser “Give a password now” ➔ smbpasswd -a smbuser “Give a password again” Now restart a samba one time again ➔ service smb restart
  • 7. Now make a file to share, which we are going to see on windows ➔ cd /tmp/share ➔ touch acme ➔ vi acme write whatever u like and save it. ➔ ifconfig ➔ echo 0 > /selinux/enforce
  • 8. Now go at windows go to Run and insert the IP address of the linux ● 192.168.1.100 Now login page will appear login over there and you will see the share file of linux
  • 9. Command change Kunai pani command lai aafu lea vanako jasto name ma change garna paryo vanee:: ● ls -a ● vi .bashrc ● alias nik='clear' Now restart your Linux one time and then ● If you type “nik” it will clear your screen like clear do
  • 10. To change password If you are already at first you have to go at safe mode: ● init 1 ● passwd now give a new password But what to do if u forget password at first::
  • 11. Linux lai start garne ● Ani linux start huda aaune “Blue screen” aaune betikai ● Click “e” ● And then again click “a” ● Now give an space and type “single” ● It will take you to maintenance mode: ● passwd Now change your password.

×