SlideShare a Scribd company logo
1 of 13


To delete file:
rm <<filename>>



To delete directory with file:
rm -rf <<directory name>>
To mount pendrive
➔
➔
➔

mount /dev/sda1 /mnt/<<directory name>>
cd /mnt/<<directory name>>
ls
To make duplicate or .bak file
➔

cp /etc/samba/smb.conf /etc/samba/smb.conf.bak

➔

cd /etc/samba

➔

ls
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
➔

[share]

➔

writeable=yes

➔

admin user=smbuser

➔

path=/tmp/share

➔

valid user=smbuser

➔

public=yes

➔

available=yes
….....now save it

➔
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
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
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
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
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::
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.

More Related Content

What's hot

How we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental BackupsHow we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental Backups
nicholaspaun
 
DIY eMail@Home
DIY eMail@HomeDIY eMail@Home
DIY eMail@Home
jvehent
 
Drush. Why should it be used?
Drush. Why should it be used?Drush. Why should it be used?
Drush. Why should it be used?
Sergei Stryukov
 
Introduction To Programming in GNU-LINUX
Introduction To Programming in GNU-LINUXIntroduction To Programming in GNU-LINUX
Introduction To Programming in GNU-LINUX
Irfan Ahmed
 
Mastering the Unix Command Line
Mastering the Unix Command LineMastering the Unix Command Line
Mastering the Unix Command Line
Howard Mao
 

What's hot (20)

How we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental BackupsHow we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental Backups
 
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
 
Backing up thousands of containers
Backing up thousands of containersBacking up thousands of containers
Backing up thousands of containers
 
Drupal on your laptop
Drupal on your laptopDrupal on your laptop
Drupal on your laptop
 
Archlinux install
Archlinux installArchlinux install
Archlinux install
 
DIY eMail@Home
DIY eMail@HomeDIY eMail@Home
DIY eMail@Home
 
QLSql database restoration netbackup
QLSql database restoration  netbackupQLSql database restoration  netbackup
QLSql database restoration netbackup
 
Tablespaces
TablespacesTablespaces
Tablespaces
 
Amepad lt(tmpfs)
Amepad lt(tmpfs)Amepad lt(tmpfs)
Amepad lt(tmpfs)
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
 
Drush. Why should it be used?
Drush. Why should it be used?Drush. Why should it be used?
Drush. Why should it be used?
 
Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)
 
Group13
Group13Group13
Group13
 
Be a happier developer with Docker: Tricks of the trade
Be a happier developer with Docker: Tricks of the tradeBe a happier developer with Docker: Tricks of the trade
Be a happier developer with Docker: Tricks of the trade
 
DHCP SERVER ( RHCE Linux)
DHCP SERVER ( RHCE Linux)DHCP SERVER ( RHCE Linux)
DHCP SERVER ( RHCE Linux)
 
Introduction To Programming in GNU-LINUX
Introduction To Programming in GNU-LINUXIntroduction To Programming in GNU-LINUX
Introduction To Programming in GNU-LINUX
 
Mastering the Unix Command Line
Mastering the Unix Command LineMastering the Unix Command Line
Mastering the Unix Command Line
 
The Unix Command Line | Jim Reevior
The Unix Command Line | Jim ReeviorThe Unix Command Line | Jim Reevior
The Unix Command Line | Jim Reevior
 
Linux Backup System using rsync, tar, gzip
Linux Backup System using rsync, tar, gzipLinux Backup System using rsync, tar, gzip
Linux Backup System using rsync, tar, gzip
 
WebSockets with PHP: Mission impossible
WebSockets with PHP: Mission impossibleWebSockets with PHP: Mission impossible
WebSockets with PHP: Mission impossible
 

Viewers also liked

Information and Technology, not an Hard Subject
Information and Technology, not an Hard SubjectInformation and Technology, not an Hard Subject
Information and Technology, not an Hard Subject
Open Knowledge Nepal
 

Viewers also liked (20)

Magic of RATs(Remote Access Torgens)
Magic of RATs(Remote Access Torgens)Magic of RATs(Remote Access Torgens)
Magic of RATs(Remote Access Torgens)
 
Open Knowledge & PublicBodies Nepal
Open Knowledge & PublicBodies NepalOpen Knowledge & PublicBodies Nepal
Open Knowledge & PublicBodies Nepal
 
Intro to Data visualization
Intro to Data visualization Intro to Data visualization
Intro to Data visualization
 
Day 2-some fun coding
Day 2-some fun codingDay 2-some fun coding
Day 2-some fun coding
 
Root acme presentation
Root acme presentationRoot acme presentation
Root acme presentation
 
Information and Technology, not an Hard Subject
Information and Technology, not an Hard SubjectInformation and Technology, not an Hard Subject
Information and Technology, not an Hard Subject
 
Ball Eater
Ball EaterBall Eater
Ball Eater
 
Open Access Publishing: Developing Countries
Open Access Publishing: Developing CountriesOpen Access Publishing: Developing Countries
Open Access Publishing: Developing Countries
 
Nepal
Nepal Nepal
Nepal
 
AOSC Orentation for 1st Year student
AOSC Orentation for 1st Year studentAOSC Orentation for 1st Year student
AOSC Orentation for 1st Year student
 
My Plan-Linux Torvald Lesson
My Plan-Linux Torvald LessonMy Plan-Linux Torvald Lesson
My Plan-Linux Torvald Lesson
 
Firefox Student Ambassador
Firefox Student Ambassador Firefox Student Ambassador
Firefox Student Ambassador
 
Global - Local Open Data Index
Global - Local Open Data Index Global - Local Open Data Index
Global - Local Open Data Index
 
Acme Firefox Presentation
Acme Firefox PresentationAcme Firefox Presentation
Acme Firefox Presentation
 
Open Data and Nepal Open Data Index
Open Data and Nepal Open Data IndexOpen Data and Nepal Open Data Index
Open Data and Nepal Open Data Index
 
Open Data - What and How??
Open Data - What and How??Open Data - What and How??
Open Data - What and How??
 
10 Key Components of the Fiscal Cliff
10 Key Components of the Fiscal Cliff10 Key Components of the Fiscal Cliff
10 Key Components of the Fiscal Cliff
 
Machine Learning and Robotic Vision
Machine Learning and Robotic VisionMachine Learning and Robotic Vision
Machine Learning and Robotic Vision
 
Open Knowledge Network
Open Knowledge NetworkOpen Knowledge Network
Open Knowledge Network
 
Firefox Student Ambassador (FSA)
Firefox Student Ambassador (FSA)Firefox Student Ambassador (FSA)
Firefox Student Ambassador (FSA)
 

Similar to Day 3-Important stuff

The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
Craig Cannon
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
anandha ganesh
 
101 3.3 perform basic file management
101 3.3 perform basic file management101 3.3 perform basic file management
101 3.3 perform basic file management
Acácio Oliveira
 
Samba server installation and File sharing
Samba server installation and File sharingSamba server installation and File sharing
Samba server installation and File sharing
Eagle Eyes
 

Similar to Day 3-Important stuff (20)

Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
 
Samba server
Samba serverSamba server
Samba server
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
Samba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAVSamba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAV
 
samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)
 
Unix2
Unix2Unix2
Unix2
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Samba
SambaSamba
Samba
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Slug 2009 06 SELinux For Sysadmins
Slug 2009 06 SELinux For SysadminsSlug 2009 06 SELinux For Sysadmins
Slug 2009 06 SELinux For Sysadmins
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
 
File::CleanupTask
File::CleanupTaskFile::CleanupTask
File::CleanupTask
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
101 3.3 perform basic file management
101 3.3 perform basic file management101 3.3 perform basic file management
101 3.3 perform basic file management
 
Commands
CommandsCommands
Commands
 
Command Line Tools
Command Line ToolsCommand Line Tools
Command Line Tools
 
Samba server installation and File sharing
Samba server installation and File sharingSamba server installation and File sharing
Samba server installation and File sharing
 
Hadoop installation
Hadoop installationHadoop installation
Hadoop installation
 
A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...
A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...
A to Z of a Multi-platform Docker Swarm: Building, Shipping, and Running Mult...
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Day 3-Important stuff

  • 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
  • 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.
  • 10. 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
  • 11.
  • 12. 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::
  • 13. 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.