13:30 : jasonbraganza |
#startclass
|
13:30 : |
Alright! Welcome class.
|
13:31 : shadowroot |
AnantaOne1: we were talking about golang about a while ago
|
13:31 : |
XD
|
13:31 : jasonbraganza |
You know the drill now.
|
13:31 : |
When I say "roll call" please, mention your full name
|
13:31 : vait |
!
|
13:31 : rajan |
Rajan Choudhary
|
13:31 : jasonbraganza |
Roll Call
|
13:31 : GeekyShacklebolt |
Shiva Saxena
|
13:31 : skat-sd |
Saikat Dey
|
13:31 : jeet__ |
Amitrajit Bose
|
13:31 : shreyas1496 |
Shreyas Patankar
|
13:31 : philomath_ |
Mohit Bansal
|
13:31 : ash_mishra |
Ashish Kumar Mishra
|
13:31 : AdityaPatil |
Aditya Patil
|
13:31 : j605 |
Jagannathan Tiruvallur Eachambadi
|
13:31 : arpana |
Arpana Debnath
|
13:31 : newrg |
Rajat Gupta
|
13:31 : bhavin192 |
Bhavin Gandhi
|
13:31 : Sarques_ |
Gajendra Saraswat
|
13:31 : pr97 |
Priyanka Sharma
|
13:31 : sahil_ |
sahil
|
13:31 : rajan |
Rajan Choudhary
|
13:31 : hellozee |
Kuntal Majumder
|
13:31 : prodyte |
pawan kumar
|
13:31 : naman712 |
Naman Mittal
|
13:31 : Ved_Sinha |
Ved Sinha
|
13:31 : brute4s99 |
Piyush Aggarwal
|
13:31 : sehenazparvin |
Sehenaz Parvin
|
13:31 : bismi |
Janifa M
|
13:31 : sk56 |
sunny khandare
|
13:31 : sourabh1031 |
Sourabh Pruthi
|
13:31 : priyankasaggu119 |
Priyanka Saggu
|
13:31 : sourabhdeshmukh |
Sourabh Deshmukh
|
13:31 : tnitave |
Tushar Nitave
|
13:31 : singha |
Ashwani singh
|
13:31 : snandi |
Shamik Nandi
|
13:31 : AnantaOne1 |
Ananta Anil Shahane
|
13:31 : vshuklajr |
Vivek Shukla
|
13:31 : tnsittpsif |
Harshit DOshi
|
13:31 : RatanShreshtha |
Ratan Kulshreshtha
|
13:31 : sd30 |
Shruti Dash
|
13:31 : gajanan_ |
Gajanan More
|
13:31 : gauravsitlani |
Gaurav Sitlani
|
13:31 : pradhvan |
Pradhvan Bisht
|
13:31 : soniya29_ |
Soniya Vyas
|
13:31 : kvy |
kumar vipin yadav
|
13:31 : callowidealist |
jitendra kumar tripathi
|
13:31 : vait |
Vaibhav Tripathi
|
13:31 : adityad97 |
Aditya Deshpande
|
13:31 : kps_ |
Karan Pratap
|
13:31 : Aironly |
Deep
|
13:31 : vishalIRC |
Vishal Kushwaha
|
13:31 : yesh |
yesh pareek
|
13:31 : natesh |
Natesh M Bhat
|
13:31 : gutsytechster |
Prashant Sharma
|
13:31 : forestmasterlord |
Aranya Sinha
|
13:31 : pdas |
priyam das
|
13:32 : ananyo2012[m] |
Ananya Maiti
|
13:32 : accakks[m] |
Aakanksha Jain
|
13:32 : shadowroot |
Abhay Singh
|
13:32 : codejacker |
Ankur Vishwakarma
|
13:32 : uniquerockrz |
Saurav Modak
|
13:32 : ghubale |
Ganesh Hubale
|
13:32 : kvy |
sk56: we will learn about git and github in session after a few days.
|
13:32 : rohanvivek |
Rohan Vivek
|
13:32 : jasonbraganza |
Good Evening :)
|
13:32 : |
I’ll be your guide through today’s session
|
13:32 : |
While I am a fellow student, here’s a really tiny bit about me professionally.
|
13:32 : somya_ |
Somya jain
|
13:32 : jasonbraganza |
I have been working as a systems consultant for 20 years this year.
|
13:33 : |
I started in 97. And am on forced hiatus due to medical reasons this year
|
13:33 : valhalla_22 |
Hello guys I am passout from, NITDGP ,heard about this group via delhi lug group.
|
13:33 : jasonbraganza |
I’m really good at the ops part of what you call devops :)
|
13:33 : |
I helped Dr Batra’s scale their operations in their infancy.
|
13:33 : |
I’ve worked with loads of A list celebrities
|
13:33 : shadowroot |
jasonbraganza: it's awesome to have you here
|
13:33 : jasonbraganza |
And I’ve given talks about computers and their intricacies to many companies.
|
13:33 : homuncculus |
Vaibhav Kaushik
|
13:33 : jasonbraganza |
(Like the board of Metro Shoes for instance)
|
13:34 : |
All this to say, I have seen *lots* of computers and I love to tinker with them.
|
13:34 : Ved_Sinha |
Can you name some of the celebrities?
|
13:34 : cypher_ |
Naman Sharma
|
13:34 : jasonbraganza |
Specially with their operating systems.
|
13:34 : nightwarrior_xxx |
Aman Verma
|
13:34 : BohemianCoast |
Alison Scott
|
13:34 : jasonbraganza |
Ved_Sinha, Shane Warne :)
|
13:34 : storymode7 |
Mayank Singhal
|
13:34 : jasonbraganza |
Which is a subject that we’ll go into today :)
|
13:34 : HoloIRCUser1 |
Vaishnavi Kulkarni
|
13:34 : coolstarninja |
jasonbraganza: can you share your email?
|
13:34 : jasonbraganza |
We’ll be getting acquainted with the linux command line.
|
13:35 : Rakshit__ |
Rakshit Airani
|
13:35 : jasonbraganza |
How many here know their way about the command line?
|
13:35 : shadowroot |
Mee
|
13:35 : natesh |
me
|
13:35 : sk56 |
!
|
13:35 : vishalIRC |
I
|
13:35 : kps_ |
me
|
13:35 : sd30 |
!
|
13:35 : callowidealist |
!
|
13:35 : jeet__ |
I know a bit.
|
13:35 : hp_ |
me
|
13:35 : AdityaPatil |
I do
|
13:35 : tnitave |
!
|
13:35 : j605 |
coolstarninja: check his website or just search his nick
|
13:35 : vshuklajr |
me
|
13:35 : pwnchief |
Me
|
13:35 : tnsittpsif |
jasonbraganza: So, you are behind the computers sending me hundreds of those SMSes for hair treatment from Dr. Batra's. I gotcha! ;)
|
13:35 : kvy |
me
|
13:35 : natesh |
terminal feels like home :)
|
13:35 : bismi |
A bit
|
13:35 : storymode7 |
me
|
13:35 : sourabh1031 |
I know little
|
13:35 : Rakshit__ |
not an expert, but gets things done
|
13:35 : ash_mishra |
I know a little
|
13:35 : sahil_ |
little bit
|
13:35 : soniya29 |
I am also familiar.
|
13:35 : rajan |
I do
|
13:35 : pdas |
yup
|
13:35 : philomath_ |
me
|
13:35 : priyankasaggu119 |
A bit
|
13:35 : Sarques_ |
Familiar
|
13:35 : jasonbraganza |
not bad
|
13:35 : forestmasterlord |
me
|
13:35 : gutsytechster |
I do
|
13:35 : GeekyShacklebolt |
me
|
13:35 : skat-sd |
me
|
13:35 : pr97 |
me
|
13:35 : somya |
no idea
|
13:35 : yesh |
I am a begineer
|
13:35 : vait |
a little bit
|
13:36 : pradhvan |
I am familiar
|
13:36 : tnsittpsif |
jasonbraganza: I am quite familiar with the command line!
|
13:36 : brute4s99 |
I know !
|
13:36 : BohemianCoast |
reasonably
|
13:36 : sehenazparvin |
I am familiar too
|
13:36 : newrg |
beginner
|
13:36 : bhavin192 |
I do
|
13:36 : AnantaOne1 |
Me too
|
13:36 : hellozee |
somewhat
|
13:36 : adityad97 |
I know too
|
13:36 : nightwarrior_xxx |
jasonbraganza: beginner
|
13:36 : RatanShreshtha |
a little bit
|
13:36 : shreyas1496 |
I know
|
13:36 : jeet__ |
You guys are not using
|
13:36 : gajanan_ |
I do
|
13:36 : sourabhdeshmukh |
Comfortable with it.
|
13:36 : cypher_ |
a bit
|
13:36 : jasonbraganza |
but for the rest of us folks who are new, lets delve in today :)
|
13:36 : singha |
Me
|
13:36 : manjeet |
familiar with command line
|
13:36 : ananyo2012[m] |
I am a bit familiar as well
|
13:36 : shadowroot |
jasonbraganza: https://github.com/jasonbraganza is this your github profile ?
|
13:36 : jasonbraganza |
So Linux and the original Unices are heart what we call command line systems.
|
13:36 : kushal |
jeet__, that is mostly for while asking questions or discussion.
|
13:36 : Ved_Sinha |
I know like Classes and funcions and stuff like that
|
13:37 : bismi |
!
|
13:37 : jasonbraganza |
They do have friendly guis now, and it’s a joy to use them, but that is not where Linux’s power lies.
|
13:37 : shadowroot |
I hate gui's to be honest
|
13:37 : |
cli is the real thing
|
13:37 : jasonbraganza |
My father was a wood craftsman.
|
13:38 : sk56 |
@shadowroot exactly
|
13:38 : jasonbraganza |
He’d take a length of wood.
|
13:38 : bhavin192 |
No cross discussions please
|
13:38 : jasonbraganza |
He’d use a saw to cut them to various lengths
|
13:38 : |
Then he’d use a planer to smoothen out the rough edges.
|
13:38 : |
Then he’d take a chisel and carve a structure and joints and hoists as needed.
|
13:39 : |
Then he’d take a hammer and other pieces of wood he’d treated the same and put them together.
|
13:39 : |
Then he’d glue them together
|
13:39 : |
And then he’d varnish the wood.
|
13:39 : |
Only at the end of it, it wasn’t just pieces of wood.
|
13:39 : |
It was a beautiful rocking chair!
|
13:40 : Ved_Sinha |
You dad worked hard. Must be a real role-model for you.
|
13:40 : jasonbraganza |
Linux’s command line tools give you the same power.
|
13:40 : kushal |
Ved_Sinha, please stop talking while the session is going on.
|
13:40 : jasonbraganza |
There are lots of tools and commands
|
13:40 : |
Each does it’s own little job.
|
13:40 : |
The real power comes when you start using them in conjunction with each other
|
13:41 : |
I have a little program called a dhclient running in the background of the that gets me an IP address.
|
13:41 : |
I want to know if it’s running
|
13:41 : |
So at the terminal I run a program called ps like so
|
13:41 : |
ps -aux
|
13:42 : shadowroot |
ps -aux | grep dhclient
|
13:42 : jasonbraganza |
If you did this on your systems you’d see tens of background processes running your machine.
|
13:42 : |
scrolling by too fast
|
13:42 : |
It’s hard to find dhclient
|
13:42 : |
So I’ll take that command and channel the output
|
13:42 : shadowroot |
ps -aux | grep dhclient
|
13:43 : jasonbraganza |
Pipe it as they (with the | character) to another program
|
13:43 : bhavin192 |
shadowroot, please let jasonbraganza speak
|
13:43 : jeet__ |
shadowroot Kindly do not interrupt. :)
|
13:43 : gauravsitlani |
shadowroot, say something when you're to. Don't interrupt
|
13:43 : jasonbraganza |
Into another tool called grep that’ll search the output for me
|
13:43 : |
Like so
|
13:43 : |
ps -aux | grep dhclient
|
13:43 : |
And voila
|
13:44 : |
NetworkManager/nm-dhcp-helper -pf /run/dhclient-enp0s31f6.pid -lf /var/lib/NetworkManager/dhclient-948deb6e-3067-3308-9750-59e3125695f1-enp0s31f6.lease -cf /var/lib/NetworkManager/dhclient-enp0s31f6.conf enp0s31f6
|
13:44 : |
I get the details I need :)
|
13:45 : |
so to get to the level of our master brethren, we need to learn how to combine all the commands and learn how compose little scipts that do our work for us
|
13:46 : |
but to do that, we first need to learn the commands :)
|
13:46 : |
walk before you run, as they say
|
13:46 : |
it won’t come all at once, but you need to build your skills up to the level where you can use your system comfortably without a gui.
|
13:46 : |
So let’s begin, shall we?
|
13:46 : pr97 |
yes
|
13:46 : rohanvivek |
yes
|
13:47 : kvy |
yes
|
13:47 : GeekyShacklebolt |
Yes
|
13:47 : jasonbraganza |
Along with Python for You & Me, Kushal has also authored Linux Command Line for you and me.
|
13:47 : sk56 |
yes
|
13:47 : sehenazparvin |
jasonbraganza, yes sure.
|
13:47 : yesh |
Yes
|
13:47 : soniya29 |
yes
|
13:47 : Aditya |
yes
|
13:47 : jasonbraganza |
We’ll do the first chapter today.
|
13:47 : siddharth |
Rollcall:Siddharth Sahoo
|
13:47 : jasonbraganza |
Here’s the link.
|
13:47 : mnjit |
excited for today
|
13:47 : jasonbraganza |
https://lym.readthedocs.io/en/latest/startingcommands.html
|
13:47 : |
So, you need to to go read through.
|
13:47 : gozmit |
Rollcall : Mayank
|
13:48 : jasonbraganza |
Read. Try them on the command line yourselves
|
13:48 : |
You have 20 minutes.
|
13:48 : |
And we’ll convene back for Q&A.
|
13:48 : mnjit |
Rollcall: Manjeet Mehta
|
13:48 : jasonbraganza |
Sounds good?
|
13:48 : sk56 |
yes
|
13:48 : rajan |
good
|
13:48 : jasonbraganza |
So, go.
|
13:48 : gozmit |
yes sir
|
13:48 : kvy |
hmm
|
13:48 : tnitave |
Yes
|
13:48 : mnjit |
Yes
|
13:48 : sehenazparvin |
jasonbraganza, yes.
|
13:48 : zishanahmad |
yes
|
13:48 : drax |
!
|
13:48 : kvy |
gozmit: don't use sir here
|
13:48 : waletest |
cool
|
13:49 : thematrjx |
Roll call: Joshua M Jiji
|
13:49 : vishalIRC |
yep
|
13:49 : gozmit |
Ok kvy sorry
|
13:49 : Prabhu |
Is this the only thing we will learn today?
|
13:49 : Ved_Sinha |
I don't run on Linux.
|
13:49 : Noory |
Roll call: Fathima Shana Noory
|
13:49 : drax |
What did i miss? I am late
|
13:49 : gauravsitlani |
Ved_Sinha, your system can run linux
|
13:50 : shadowroot |
drax: go through these docs https://lym.readthedocs.io/en/latest/startingcommands.html
|
13:50 : natesh |
drax we are talking about linux command line
|
13:50 : kvy |
Ved_Sinha: Than sift to Linux now .:)
|
13:50 : Ved_Sinha |
Can I run on both?
|
13:50 : |
Linux and Windows
|
13:50 : gauravsitlani |
Ved_Sinha, yes you can
|
13:50 : Ved_Sinha |
how?
|
13:50 : kushal |
Ved_Sinha, yes, better to install linux on virtualbox
|
13:50 : shadowroot |
dual-boot is what you want Ved_Sinha
|
13:51 : kushal |
Ved_Sinha, download virtualbox
|
13:51 : |
and then also download fedora 28 workstation live dvd from https://getfedora.org
|
13:51 : Ved_Sinha |
Yes shadowroot.
|
13:51 : zappy |
why linux > windows ?
|
13:51 : kushal |
and then install Fedora inside of a virtualbox.
|
13:51 : shadowroot |
Ved_Sinha: https://www.virtualbox.org/
|
13:52 : Ved_Sinha |
thanks! I am so exsited
|
13:52 : j605 |
zappy: not the time, ask after class
|
13:52 : Ved_Sinha |
But wait what am I mean to do?
|
13:52 : shadowroot |
zappy: try linux and experience it yourself
|
13:53 : jasonbraganza |
Ved_Sinha, read the chapter at least.
|
13:53 : Ved_Sinha |
ok
|
13:53 : jasonbraganza |
even if you can’t try it out
|
13:53 : jeet__ |
jasonbraganza, Can you please explain the recursive make directory? mkdir -p dir1/dir2/dir3
|
13:53 : kvy |
Ved_Sinha: you can download terminal for windows
|
13:54 : Ved_Sinha |
Thank You
|
13:54 : abhishek |
today is my first day what i missed in these two days and what i should do today?
|
13:54 : shadowroot |
you will find yourself more effective and powerful as before in doing your tasks
|
13:54 : jasonbraganza |
jeet__ reserve the questions for q&a. also !. remember? :)
|
13:54 : coolstarninja |
kushal: you got some of those fedora stickers?
|
13:54 : kvy |
kushal: Can't he use terminal in windows ?
|
13:54 : singha |
Done
|
13:54 : philomath_ |
jasonbraganza, Can we continue with the class?
|
13:54 : kushal |
coolstarninja, stop asking random questions.
|
13:54 : |
kvy, no.
|
13:55 : brute4s99 |
!
|
13:55 : singha |
|
13:55 : shadowroot |
!
|
13:55 : coolstarninja |
'-'
|
13:55 : kvy |
abhishek: Go through last class logs and read https://lym.readthedocs.io/en/latest/startingcommands.html for today.
|
13:55 : arunika |
Exactly what is happening here ..please let me know
|
13:55 : bhavin192 |
If you have doubts then raise your hand with '!'
|
13:55 : kvy |
arunika: https://lym.readthedocs.io/en/latest/startingcommands.html we have to read this.
|
13:56 : |
!
|
13:56 : arunika |
ok @kvy thanks
|
13:56 : sid__ |
can someone plz tell me what is
|
13:56 : vshuklajr |
!
|
13:56 : Ved_Sinha |
!
|
13:56 : ashwanig |
sid__, end of message
|
13:56 : coolstarninja |
kushal: chill bruh
|
13:56 : NityaNidhi |
!
|
13:56 : pradhvan |
sid__: we don't use sms language here
|
13:56 : philomath_ |
Everyone Please be patient and wait for jasonbraganza to speak
|
13:56 : Ved_Sinha |
Snap!
|
13:57 : abhishek |
Thank you
|
13:57 : Ved_Sinha |
kushal can do that?
|
13:57 : shadowroot |
i agree with philomath_
|
13:57 : kvy |
arunika: one more thong no need to use @ to tag someone.
|
13:57 : arunika |
also can somebody tell me if we will deal with topics related to FOSS?
|
13:57 : |
ok
|
13:58 : shadowroot |
Using linux is already supporting FOSS arunika
|
13:58 : Ved_Sinha |
!
|
13:58 : jasonbraganza |
arunika, class if on. wait around and ask doubts once class is over
|
13:58 : arunika |
sure
|
13:58 : bismi |
!
|
13:59 : thematrjx |
shadowroot: yes.
|
13:59 : sehenazparvin |
!
|
13:59 : kvy |
Ved_Sinha: yes he can.
|
14:00 : jeet__ |
!
|
14:00 : Ved_Sinha |
What?
|
14:00 : arunika |
a last thing doubt: this class works as we are given some material and we read it and ask doubts regarding them?
|
14:00 : jasonbraganza |
so if you’re done, type done
|
14:00 : mzeeqazi_ |
Done
|
14:00 : jasonbraganza |
arunika, yes
|
14:00 : zishanahmad |
done
|
14:00 : sk56 |
Done
|
14:00 : shadowroot |
Done
|
14:00 : jeet__ |
done; !
|
14:00 : kps_ |
done
|
14:00 : sehenazparvin |
Done
|
14:00 : nightwarriorxxx |
done
|
14:00 : adityad97 |
done
|
14:00 : homuncculus |
Done
|
14:00 : sahil_ |
done
|
14:00 : Ved_Sinha |
Done
|
14:00 : Noory |
done
|
14:00 : AnantaOne1 |
!
|
14:00 : philomath_ |
done
|
14:00 : siddharth |
Done
|
14:01 : rohanvivek |
Done
|
14:01 : hellozee |
done
|
14:01 : NityaNidhi |
Done
|
14:01 : kvy |
Done
|
14:01 : RatanShreshtha |
done
|
14:01 : Aironly |
done
|
14:01 : Rakshit__ |
Done
|
14:01 : kvy |
arunika: yes you can say that.
|
14:01 : jeetech |
!
|
14:01 : pdas |
done
|
14:01 : storymode7 |
done
|
14:01 : GeekyShacklebolt |
Done
|
14:01 : Saksham_19o9 |
!
|
14:01 : valhalla_22 |
uniquerockrz: WTF , WHY CTCP KIDDO!!
|
14:02 : RJ722 |
valhalla_22: mind your language, this is a public channel
|
14:02 : kushal |
valhalla_22 this is your last warning.
|
14:02 : jasonbraganza |
most of you seem to be done
|
14:02 : |
lets start with questions then
|
14:02 : bismi |
How to create hello.txt from terminal?
|
14:02 : sk56 |
@jasonbraganza what is the significance of echo command?
|
14:02 : jeetech |
!
|
14:02 : adityad97 |
!
|
14:02 : singha |
To display
|
14:02 : jasonbraganza |
if you aren’t dont, don’t worry, you can catch up. I’ll be around
|
14:02 : singha |
In terminal
|
14:03 : coolstarninja |
bismi: hello.txt
|
14:03 : jasonbraganza |
next
|
14:03 : kvy |
bismi: we will learn that too but it take time to learn.
|
14:03 : siddharth |
bismi command: touch hello.txt
|
14:03 : valhalla_22 |
RJ722: SORYY!!, I know, but he did CTCP, YOU GUYS VERY WELL KNOW WHAT IT IS USED FOR?
|
14:03 : jasonbraganza |
next
|
14:03 : jeet__ |
!
|
14:03 : rohanvivek |
!
|
14:03 : coolstarninja |
bismi: nano hello.txt
|
14:03 : sk56 |
what is the significance of echo command
|
14:03 : |
?
|
14:03 : vait_ |
!
|
14:03 : kps_ |
bismi, or touch hello.txt
|
14:03 : homuncculus |
!
|
14:03 : jasonbraganza |
the echo? rough analogy, would be like the print statement in python
|
14:04 : arunika |
done
|
14:04 : mnjit |
done
|
14:04 : jasonbraganza |
sk56 echo repeats back what is give to it
|
14:04 : shadowroot |
echo is like giving something to stdout
|
14:04 : callowidealist |
donw
|
14:04 : sk56 |
yes but why it is used ?
|
14:04 : ash_mishra |
!
|
14:04 : callowidealist |
*done
|
14:04 : jasonbraganza |
your could direct echo to repat what you said to the sreen (the default) or a printer or a file
|
14:04 : |
sk56 ^
|
14:05 : bismi |
!
|
14:05 : jasonbraganza |
sk56, very helpful when you’re rucnning a script and you want to tell the user something
|
14:05 : sk56 |
ok got it!
|
14:05 : jasonbraganza |
next
|
14:05 : Ved_Sinha |
It is like using print("hello #djplug")?
|
14:05 : valhalla_22 |
kushal: I know, but uniquerockrz did CTCP, its showing on my log, if he is chan privelaged, its acceptable , but totally unacceptable from stranger!
|
14:05 : jasonbraganza |
next
|
14:06 : sid__ |
touch hello.txt is only for fedoro or on ubuntu we have to use gedit hello.txt
|
14:06 : bhavin192 |
valhalla_22, can you please stop the off topic discussion?
|
14:06 : jasonbraganza |
next
|
14:06 : sourabhdeshmukh |
!
|
14:06 : coolstarninja |
What is CTCP
|
14:07 : shadowroot |
touch is a shell command and we have shell in evry distro so it's common for all sid__
|
14:07 : Ved_Sinha |
Shell commands
|
14:07 : |
Linux shell or the terminal is the lifeline of the developers, and of any power user. Things which can be done on the GUI (by clicking on different buttons), can be done much efficiently on the terminal by using commands. One can not remember all the commands, but with regular usage one can easily remember the most useful ones.
|
14:07 : |
The following guide will introduce you to some basic minimal commands required to use your Linux computer efficiently.
|
14:07 : rohanvivek |
!
|
14:07 : kps_ |
sid__, for all linux distros
|
14:07 : Ved_Sinha |
Gnome Terminal
|
14:07 : |
|
14:07 : |
The above is the screenshot of the Gnome terminal application. As you can see the command prompt contains these following information:
|
14:07 : jasonbraganza |
next
|
14:07 : Ved_Sinha |
[username@hostname directoryname]
|
14:07 : bismi |
if we use atom hello.txt , it will open a window. I wanted to know whether we can create hello.txt without opening it and touch hello.txt worked. will tree command work in linux?
|
14:07 : Ved_Sinha |
In our case the username is babai, hostname is kdas-laptop, and directory is mentioned as ~. This ~ is a special character in our case. It means the home directory of the user. In our case the home directory path is /home/babai/.
|
14:07 : abhishek |
what is command for clean terminal text
|
14:07 : Ved_Sinha |
date command
|
14:07 : |
date command tells the current date time.
|
14:08 : |
$ date
|
14:08 : |
Sun Jun 25 10:13:44 IST 2017
|
14:08 : |
In case you want to know the current date/time in UTC, use the following command. (I added this in 2018, so please do not get confused at the date).
|
14:08 : coolstarninja |
Clear
|
14:08 : Ved_Sinha |
$ date -u
|
14:08 : jasonbraganza |
bismi, try it ands see :)
|
14:08 : Ved_Sinha |
Mon May 21 01:43:47 UTC 2018
|
14:08 : ashwanig |
Ved_Sinha, please don't flood the channel
|
14:08 : Ved_Sinha |
cal command
|
14:08 : |
cal command is used to display calendar in your shell, by default it will display the current month
|
14:08 : jasonbraganza |
next
|
14:08 : Ved_Sinha |
$ cal
|
14:08 : |
June 2017
|
14:08 : |
Su Mo Tu We Th Fr Sa
|
14:08 : rishibit |
Ved_Sinha, you're messing up
|
14:08 : Ved_Sinha |
1 2 3
|
14:08 : |
4 5 6 7 8 9 10
|
14:08 : |
11 12 13 14 15 16 17
|
14:08 : |
18 19 20 21 22 23 24
|
14:08 : |
25 26 27 28 29 30
|
14:08 : zappy |
!
|
14:08 : Ved_Sinha |
$ cal 07 2017
|
14:08 : |
July 2017
|
14:08 : jasonbraganza |
Ved_Sinha, please stop
|
14:08 : Ved_Sinha |
Su Mo Tu We Th Fr Sa
|
14:08 : pradhvan |
Ved_Sinha: please stop
|
14:08 : jeet__ |
Ved_Sinha Please Stop Sir
|
14:08 : Ved_Sinha |
1
|
14:08 : |
2 3 4 5 6 7 8
|
14:08 : |
9 10 11 12 13 14 15
|
14:08 : bhavin192 |
jasonbraganza, he already pasted whole page
|
14:08 : Ved_Sinha |
16 17 18 19 20 21 22
|
14:08 : shadowroot |
Ved_Sinha: stop man
|
14:08 : Ved_Sinha |
23 24 25 26 27 28 29
|
14:08 : |
30 31
|
14:08 : kvy |
:)
|
14:08 : bhavin192 |
jasonbraganza, so we have to wait now
|
14:09 : Ved_Sinha |
whoami command
|
14:09 : |
whoami command will tell you which user account you are using in this system.
|
14:09 : sahil_ |
what are you doing ved_sinha?
|
14:09 : Ved_Sinha |
$ whoami
|
14:09 : |
fedora
|
14:09 : jasonbraganza |
ok :)
|
14:09 : rohanvivek |
ved_sinha, stop please
|
14:09 : Ved_Sinha |
id command
|
14:09 : |
id prints real user id, and various other details related to the account.
|
14:09 : coolstarninja |
KICK #dgplug Ved_Sinha
|
14:09 : Ved_Sinha |
$ id
|
14:09 : jasonbraganza |
let’s let Ved_Sinha be and continue
|
14:09 : Ved_Sinha |
uid=1000(fedora) gid=1000(fedora) groups=1000(fedora),4(adm),10(wheel),190(systemd-journal) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
|
14:09 : |
pwd command
|
14:09 : callowidealist |
Ved_Sinha: Please Stop
|
14:09 : kvy |
jeet__: don't use sir
|
14:09 : Sarques_ |
I think he is not even getting it, kick him out for once, so as to stop him
|
14:09 : Ved_Sinha |
pwd command will help you to find out the absolute path of the current directory. Let us see an example below:
|
14:09 : jasonbraganza |
next
|
14:09 : Ved_Sinha |
[babai@kdas-laptop ~]$ pwd
|
14:09 : snandi |
Why is coypatig here
|
14:09 : Ved_Sinha |
cd command
|
14:09 : |
The next command we will learn is cd. This command will help you to change your current directory. We will move to /tmp directory in our example.:
|
14:09 : priyankasaggu119 |
!
|
14:09 : Ved_Sinha |
[babai@kdas-laptop ~]$ cd /tmp
|
14:09 : |
[babai@kdas-laptop tmp]$ pwd
|
14:09 : siddharth |
!
|
14:09 : Ved_Sinha |
[babai@kdas-laptop tmp]$ cd ~
|
14:09 : |
[babai@kdas-laptop ~]$ pwd
|
14:09 : jeetech |
let ved sinha continue guys
|
14:09 : Ved_Sinha |
Here you can see that first we moved to /tmp directory, and then we moved back to the home directory by using ~ character.
|
14:09 : |
. and ..
|
14:09 : kvy |
callowidealist: he pas pasted page it will stop after printing hole page.
|
14:09 : tenida |
Ved_Sinha: Error: "and" is not a valid command.
|
14:09 : Ved_Sinha |
. and .. has special meaning in the Linux. . means the current directory and .. means the parent directory. We can use these in various situations for daily activities.
|
14:09 : tenida |
Ved_Sinha: Error: "and" is not a valid command.
|
14:09 : shadowroot |
philomath_: i agree with him
|
14:09 : Ved_Sinha |
$ cd ..
|
14:10 : |
The above command moves to the parent directory.
|
14:10 : |
ls command
|
14:10 : pradhvan |
philomath_: he already did
|
14:10 : Ved_Sinha |
We use ls command to view the files and directories inside any given directory. If you use ls command without any argument, then it will work on the current directory. We will see few examples of the command below.:
|
14:10 : coolstarninja |
Ved_Sinha: ohh bhai thand rakh
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ ls
|
14:10 : shadowroot |
use pastebin instead
|
14:10 : jasonbraganza |
did i miss brute4s99 ?
|
14:10 : Ved_Sinha |
Desktop Documents Downloads Music Pictures Public Templates Videos
|
14:10 : jasonbraganza |
next
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ ls /tmp/
|
14:10 : |
cpython systemd-private-759094c89c594c07a90156139ec4b969-colord.service-hwU1hR
|
14:10 : |
hogsuspend systemd-private-759094c89c594c07a90156139ec4b969-rtkit-daemon.service-AwylGa
|
14:10 : zappy |
wc command says that theres no such file . but there is
|
14:10 : Ved_Sinha |
hsperfdata_babai tracker-extract-files.1000
|
14:10 : RatanShreshtha |
!
|
14:10 : kps_ |
he pasted the entire article i guess
|
14:10 : Ved_Sinha |
plugtmp tracker-extract-files.1002
|
14:10 : valhalla_22 |
bhavin192: I know, but if we all must comply with irc rules. So this KIDDO uniquerockrz did that, which is acceptable huh !!
|
14:10 : kvy |
coolstarninja: use english only
|
14:10 : zappy |
i did not get cp command
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ ls /
|
14:10 : |
bin cpython etc lib lost+found mnt proc run srv sysroot usr
|
14:10 : |
boot dev home lib64 media opt root sbin sys tmp var
|
14:10 : |
In the last two commands we provided a path as the argument to the ls command. / is a special directory, which represents root directory in Linux filesystem. You will know more in the next chapter.
|
14:10 : shadowroot |
batul: i have cleared my doubt . U can continue with next person
|
14:10 : Ved_Sinha |
mkdir command
|
14:10 : abhishek |
Ved_Sinha please try these command in terminal not in Xchat
|
14:10 : Ved_Sinha |
We can create new directories using mkdir command. For our example we will create a code directory in our home directory.:
|
14:10 : valhalla_22 |
Ved sinha we suggest you to use some paste pastebin.com
|
14:10 : sk56 |
@kushal I request to handle the situation
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ mkdir code
|
14:10 : |
[babai@kdas-laptop ~]$ ls
|
14:10 : |
code Desktop Documents Downloads Music Pictures Public Templates Videos
|
14:10 : |
We can also create directories in a recursive way using -p option.:
|
14:10 : jasonbraganza |
or maybe let’s just wait for this to get over
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ mkdir -p dir1/dir2/dir3
|
14:10 : coolstarninja |
kvy: accha
|
14:10 : zappy |
wallahh
|
14:10 : Ved_Sinha |
[babai@kdas-laptop ~]$ ls dir1/ dir1/dir2/
|
14:10 : chaitanya11 |
is Ved_Sinha bot
|
14:10 : Ved_Sinha |
dir1/:
|
14:11 : |
dir2
|
14:11 : |
dir1/dir2/:
|
14:11 : shadowroot |
abhishek: xchat ? i'm on irssi XD
|
14:11 : Ved_Sinha |
dir3
|
14:11 : kvy |
coolstarninja: again using hindi
|
14:11 : Ved_Sinha |
rm command
|
14:11 : jasonbraganza |
chaitanya11, Ved_Sinha is 10 :)
|
14:11 : Ved_Sinha |
rm command is used to remove a file, or directory. The -rf option is being used to remove in a recursive way. But, always double check before you use rm -rf command, if you by mistake give this command in your home directory, or any other important directory, it will not ask to confirm, but it will delete everything there. -f stands for force, it will just delete everything. So, please be careful and read twice before pressing enter key.
|
14:11 : rohanvivek |
someone please stop him
|
14:11 : Ved_Sinha |
[babai@kdas-laptop ~]$ rm -rf dir1/dir2/dir3
|
14:11 : valhalla_22 |
Ved_Sinha: you could be kicked out for constantly pinging the server
|
14:11 : Ved_Sinha |
[babai@kdas-laptop ~]$ ls dir1/ dir1/dir2/
|
14:11 : |
dir1/:
|
14:11 : pradhvan |
kushal: can't we kick him out ?
|
14:11 : Ved_Sinha |
dir2
|
14:11 : Sarques_ |
@kushal just kick him out for once, he is messing it all up!
|
14:11 : coolstarninja |
kvy: please Ved_Sinha
|
14:11 : Ved_Sinha |
dir1/dir2/:
|
14:11 : coolstarninja |
Kick
|
14:11 : Ved_Sinha |
Copying a file using cp command
|
14:11 : vshuklajr |
Ved_Sinha: This is disturbing
|
14:11 : Ved_Sinha |
We use the cp command to copy a file in the Linux shell. To copy recursively use the cp command with the -r flag. We use the cp file_to_copy new_location format. In the example below, we are copying the hello.txt to hello2.txt.
|
14:11 : |
$ cp hello.txt hello2.txt
|
14:11 : RJ722 |
jasonbraganza: kick him out and we'll be fine
|
14:11 : Ved_Sinha |
$ ls -l
|
14:11 : |
-rw-rw-r--. 1 fedora fedora 75 Jun 25 04:47 hello2.txt
|
14:11 : bismi |
!
|
14:11 : valhalla_22 |
Ved_Sinha someone pm him
|
14:11 : Ved_Sinha |
-rw-rw-r--. 1 fedora fedora 75 Jun 25 04:33 hello.txt
|
14:11 : |
In another example, I will copy the file passwordauthno.png from the Pictures directory in my home directory to the current directory.
|
14:11 : snandi |
!
|
14:11 : Ved_Sinha |
$ cp ~/Pictures/passwordauthno.png .
|
14:11 : |
In the following example, I will be copying the images directory (and everything inside it) from the Downloads directory under home to the /tmp/ directory.
|
14:12 : sourkul |
Very Nice
|
14:12 : jasonbraganza |
alright
|
14:12 : shadowroot |
Thanks god
|
14:12 : sk56 |
yes
|
14:12 : kvy |
:)
|
14:12 : shadowroot |
Thank god
|
14:12 : rohanvivek |
!
|
14:12 : sid__ |
thanks!!
|
14:12 : jasonbraganza |
next
|
14:12 : jeetech |
!
|
14:12 : kvy |
Answered above
|
14:12 : vait_ |
thanks :D
|
14:12 : jasonbraganza |
next
|
14:12 : vait_ |
he was 10 year old kid
|
14:12 : vshuklajr |
How to terminate wc command ?
|
14:12 : abhishek |
thank god
|
14:12 : valhalla_22 |
bhavin192: I know, but if we all must comply with irc rules. So this KIDDO uniquerockrz did that, which is acceptable huh !! instead of warnign me , you can investigate on that subject.
|
14:12 : coolstarninja |
9 year
|
14:12 : shadowroot |
ctrl^c
|
14:13 : |
vshuklajr:
|
14:13 : vait_ |
he had said he's 10
|
14:13 : jasonbraganza |
vshuklajr, it’s taking too long?
|
14:13 : |
also yes class, be gentle with Ved.
|
14:13 : vshuklajr |
How to terminate wc command ?
|
14:13 : sd30 |
!
|
14:13 : jeetech |
i think he said 10(binary)=bot
|
14:13 : sid__ |
that kid is not our topic...I think so
|
14:13 : vshuklajr |
|
14:13 : AnantaOne1 |
!
|
14:13 : kvy |
please be on topic folks
|
14:13 : jasonbraganza |
vshuklajr, ctrl-c should do it
|
14:13 : |
next
|
14:13 : |
next
|
14:13 : sehenazparvin |
jasonbraganza, I could'nt get the idea of man pages.
|
14:14 : sk56 |
me too?
|
14:14 : coolstarninja |
Ved sinha is Kicked
|
14:14 : j605 |
vshuklajr: it expect input from either a pipe or an argument. If you give it neither you can type text in to it end it with Ctrl-D which is end-of-file
|
14:14 : jasonbraganza |
sehenazparvin, man for manual. they are manuals. if you don’t have google, you can man a command :)
|
14:14 : |
sehenazparvin man ls
|
14:14 : brute4s99 |
!
|
14:15 : jasonbraganza |
should tell you about the ls command and the options it supports
|
14:15 : |
try it :)
|
14:15 : |
some are well written. some not so. for everything else, there is the internet :)
|
14:15 : |
next
|
14:15 : sehenazparvin |
jasonbraganza, Thank you.i know about the ls command.
|
14:15 : jeet__ |
Doubt [1] What is the use of the cat command as you used "cat Hello.txt"? ; Doubt[2] Do we have < operator to feed input to a program just like we have > operator? How do you open a file without knowing what type of file it is??
|
14:15 : |
|
14:16 : AnantaOne1 |
Do we have a shortcut for clear screen?
|
14:16 : jasonbraganza |
jeet__ cat is the ealiest way you could read a file’s contents
|
14:16 : bhavin192 |
AnantaOne1, wait for your turn :)
|
14:16 : shadowroot |
jeet__: answer for your last question's part . xdg-open command is used when you don't know the type of something you are opening
|
14:16 : jasonbraganza |
jeet__ you have better options now, less, more and others
|
14:16 : valhalla_22 |
skat-sd: CTCP is like throwing the high intensity torch someone sitting in dark room. DONT PM
|
14:17 : jasonbraganza |
jeet__ cat has stuck around for precisely the reason you mentioned. you can cat something into files and fill them up :)
|
14:17 : |
next
|
14:17 : Rakshit__ |
AnantaOne1, clear
|
14:17 : kps_ |
AnantaOne1, ctrl+L
|
14:17 : jasonbraganza |
next
|
14:18 : valhalla_22 |
skat-sd: let everybody gain from your question!
|
14:18 : rohanvivek |
!
|
14:18 : tnitave |
!
|
14:18 : skat-sd |
!
|
14:18 : jasonbraganza |
next
|
14:19 : |
next
|
14:19 : adityad97 |
jasonbraganza, How we can use man pages in efficient way as there are lots of parameters?
|
14:19 : abhishek |
what after shell commands?
|
14:20 : jasonbraganza |
adityad97 , they’re a pre interenet artifact. there is no efficient way :) i personally seach man first and if I don’t get it or it’s a badly structured man page, I’ll just look it up on the web
|
14:20 : |
next
|
14:20 : rohanvivek |
what is the significance of "Redirecting the command output"?
|
14:20 : vait_ |
what is -p when used with mdkir? also what is the diffrence between shell and terminal?
|
14:20 : jasonbraganza |
rohanvivek, you saw that with my ps example earlier
|
14:20 : adityad97 |
jasonbraganza, Thanks
|
14:21 : hellozee |
!
|
14:21 : valhalla_22 |
vait_: when you use -p =, it will help you create multiple recursive directories all empty
|
14:21 : jasonbraganza |
rohanvivek i took the output of ps and instead of watching it on screen, I “redirected” it to grep :)
|
14:21 : |
next
|
14:21 : codejacker |
!
|
14:21 : sk56 |
!
|
14:21 : valhalla_22 |
skat-sd: whatever question you have please ask here NO PM
|
14:22 : Sarques_ |
!
|
14:22 : jeetech |
!
|
14:22 : bhavin192 |
valhalla_22, will you please stop the discussion on that? Let others focus
|
14:22 : sourabh1031 |
!
|
14:22 : jasonbraganza |
vait, lets say i want a directory called programs. in that i want a subdirectory called github, and then a further subdirectory called summertraining
|
14:22 : zappy |
!
|
14:23 : abhishek |
terminal = text input/output environment shell = command line interpreter
|
14:23 : jasonbraganza |
vait_ i can make it at once using mkdir -p programs/github/summertraining
|
14:23 : |
next
|
14:23 : homuncculus |
Are these redirections defined in the commands or the shell itself?
|
14:23 : kps_ |
!
|
14:23 : jasonbraganza |
homuncculus, the shell does it
|
14:23 : |
next
|
14:23 : valhalla_22 |
bhavin192: I apologise, but skat-sd PM me!
|
14:23 : ash_mishra |
I got my answer by searching on internet. I couldn't get the output of the tree command. Turns out I had to install it. `sudo apt install tree`.
|
14:24 : jasonbraganza |
ash_mishra well done :)
|
14:24 : |
next
|
14:24 : sourabhdeshmukh |
jasonbraganza, How to create more than one folder in one folder in single command? The folder created should be in same tree level.
|
14:24 : bhavin192 |
valhalla_22, can we please discuss about it after class ends?
|
14:24 : jasonbraganza |
sourabhdeshmukh, i don’t know that off hand. sorry
|
14:24 : |
nnext
|
14:24 : |
next
|
14:24 : sourabhdeshmukh |
jasonbraganza, ok.
|
14:24 : siddharth |
jasonbraganza I am leaving .Will see the logs .Thank you
|
14:25 : valhalla_22 |
ohh, I am sorry ! plz carry on
|
14:25 : jasonbraganza |
sourabhdeshmukh, but after class we could figure it out :)
|
14:25 : zappy |
i dont get map and output redirecting
|
14:25 : sourabhdeshmukh |
jasonbraganza, Ok sure.
|
14:25 : zappy |
i looked over the web. still not clear
|
14:25 : jeetech |
!
|
14:25 : ashwanig |
sourabhdeshmukh, just separate the directory names with a space
|
14:25 : |
like `mkdir one two`
|
14:25 : jasonbraganza |
zappy, i explained output redirection above
|
14:26 : sourabhdeshmukh |
ashwanig, I will try doing it.
|
14:26 : abhishek |
i have completed shell command practice what after it?
|
14:26 : zappy |
i did not understand
|
14:26 : schubisu |
sourabhdeshmukh, you can create multiple sub directories by typing the folders comma-separated between curly braces like mkdir one_folder/{subdir1,subdir2,subdir3}
|
14:26 : jasonbraganza |
zappy, give me a for instance, for map. what don’t you get?
|
14:26 : |
next
|
14:26 : priyankasaggu119 |
resolved.
|
14:26 : sk56 |
I have a question @ jasonbraganza
|
14:26 : zappy |
how to use the map commands?
|
14:26 : Rakshit__ |
sourabhdeshmukh, you could use the mkdir command in a for loop
|
14:26 : rohanvivek |
!
|
14:26 : jasonbraganza |
sk56, and you know how to raise you hand
|
14:26 : ashwanig |
abhishek, If you have question then you can ask. Also you can help others :)
|
14:26 : bhavin192 |
abhishek, read the discussion carefully, you will learn from everyone's doubts
|
14:27 : zappy |
i get its significance but not how to use it
|
14:27 : sourabhdeshmukh |
schubisu, Rakshit__ Thankyou. :)
|
14:27 : jasonbraganza |
zappy, let’s figure it out later
|
14:27 : |
next
|
14:27 : zappy |
later when
|
14:27 : jasonbraganza |
zappy, after class
|
14:27 : |
next
|
14:27 : RatanShreshtha |
why does output of ls / is in a single line but after piping it is in multiple lines ?
|
14:28 : jasonbraganza |
RatanShreshtha, where are you piping it to?
|
14:28 : jeetech |
typing ''man man'' gives a whole lot of info about it
|
14:28 : RatanShreshtha |
> details.txt
|
14:28 : jasonbraganza |
next
|
14:28 : bismi |
jasonbraganza I asked you early, will tree work in linux and you said to try. It needed tree installation and now it worked :)
|
14:28 : jasonbraganza |
bismi yay :)
|
14:28 : |
next
|
14:29 : sk56 |
!
|
14:29 : jasonbraganza |
next
|
14:29 : sd3 |
resolved
|
14:29 : ashwanig |
RatanShreshtha, please share the full command
|
14:29 : umesh_ |
umeshs
|
14:29 : jasonbraganza |
RatanShreshtha, i get it in a column
|
14:30 : RatanShreshtha |
ls / > details.txt
|
14:30 : jasonbraganza |
next
|
14:30 : |
RatanShreshtha, mayvbe post a pic and link it here
|
14:31 : snandi |
what is manual pages used for?
|
14:31 : zappy |
!
|
14:31 : brute4s99 |
my q is...
|
14:31 : jasonbraganza |
next
|
14:31 : tnitave |
In what way man command differ from help command? Which is preferred?
|
14:31 : kushal |
brute4s99, the word you are looking for is : question
|
14:31 : brute4s99 |
I tried screenfetch, how is that able to draw such complex images by ASCII ?
|
14:31 : ashwanig |
RatanShreshtha, that is not piping, you are taking the output of `ls /` and writing that into details.txt
|
14:32 : jasonbraganza |
tnitave, man pages came first. there more book like. help is shorter and is more summary like
|
14:32 : |
next
|
14:32 : brute4s99 |
kushal: apologies.( I was afraid I would lose my chance)
|
14:32 : skat-sd |
resolved, thanks
|
14:32 : kps_ |
RatanShreshtha, try echo `ls /` > details.txt
|
14:32 : jasonbraganza |
brute4s99, ask me questions related to today’s lesson please
|
14:32 : tnitave |
jasonbraganza: Thanks
|
14:33 : zappy |
!
|
14:33 : jasonbraganza |
next
|
14:33 : hellozee |
What is difference between redirecting with > and using | to pipe the output?
|
14:33 : brute4s99 |
ok, I have another Question for you jasonbraganza
|
14:33 : jasonbraganza |
hellozee pipes are mostly programs to programs. from ls to grep to sed for example
|
14:34 : mnjit |
!
|
14:34 : jasonbraganza |
hellozee <> are mostly file related. i get stulff from afile or put it into a file
|
14:34 : hellozee |
oh
|
14:34 : jasonbraganza |
next
|
14:34 : codejacker |
significance of id command?
|
14:34 : snandi |
hellozee: > redirect it to a file and | redircts it to a command
|
14:34 : Rakshit__ |
tnitave, you can also use the " apropos " command to get a summary of the command
|
14:35 : brute4s99 |
Like we have super hidden files and folders in Win, is there any similar functionality in linux ? Like if I use ls -a, that would show hidden files. If any such functionality exists in Linux, would they be listed as well just by using -a ?
|
14:35 : shadowroot |
snandi: | redirects to another program
|
14:35 : |
commands are just another programs written
|
14:35 : jasonbraganza |
codejacker, to know more about yourself :) not used often. but needed when you want to know where tyou are in the system
|
14:35 : |
next
|
14:36 : sk56 |
when we open an file to get an descriptor,and then if we fork() then in the child process 's uarea those descriptors are copied from parents uarea ,then does the descriptor from the child process's uarea and to the parent's uarea points to the same file table entry?????
|
14:36 : brute4s99 |
!
|
14:36 : snandi |
shadowroot sorry and thank you for correction
|
14:36 : jasonbraganza |
sk56, absolutely no idea :)
|
14:36 : |
next
|
14:36 : Sarques_ |
Is "mv" cmnd used only for renaming or we can use it to move a file from one directory to other?
|
14:37 : philomath_ |
sk56, Depends. Child process can point to same file table as well as to some other. But I am not sure.
|
14:37 : jasonbraganza |
Sarques_, the renaming is a beneficvial side effect. you actually use it to move files :)
|
14:37 : |
next
|
14:37 : |
next
|
14:37 : sourabh1031 |
1.explain id command result and 2.is pipe command only used to join two or more commands by using output of one as input to other
|
14:38 : Sarques_ |
thanks, as i used it for moving long time ago, so i was just confused.
|
14:38 : sk56 |
@philomath what i am unsure about is does the file table entry gets copied for child process?
|
14:38 : rohanvivek |
!
|
14:38 : umesh_ |
sk56 yes. both descriptors are exactly identical
|
14:38 : |
in contents
|
14:39 : VirtualRcoder |
#fossychat
|
14:39 : pr97 |
|
14:39 : jasonbraganza |
sourabh1031, the id is just to get details of a user. what group to you belong to? what selinux conext is being enforced etc
|
14:39 : gozmit |
!
|
14:39 : rishibit |
sk56 umesh_ not in all cases, we can use as required
|
14:39 : jasonbraganza |
sourabh1031 2 is like you described
|
14:39 : VirtualRcoder |
sorry miss typed
|
14:39 : jasonbraganza |
next
|
14:39 : kps_ |
Are the terminal commands shell scripts or written in some other languge using C?
|
14:39 : |
like C?
|
14:40 : sk56 |
@rishibit can you elaborate
|
14:40 : jasonbraganza |
kps_ c & assembler. and scripts
|
14:40 : |
:)
|
14:40 : |
next
|
14:40 : rohanvivek |
how to go back to previous directory?
|
14:40 : bhavin192 |
kps_, those can be in any language/script
|
14:40 : jasonbraganza |
next
|
14:40 : kps_ |
ok thanks bhavin192 jasonbraganza
|
14:40 : sourabh1031 |
!
|
14:40 : jasonbraganza |
next
|
14:40 : zappy |
my wc is not working . it says no such file exists. but it does.
|
14:40 : mnjit |
what is meant by deleting recursively using rf?
|
14:41 : pr97 |
rohanvivek, cd ..
|
14:41 : jasonbraganza |
zappy error?
|
14:41 : |
next
|
14:41 : brute4s99 |
Like we have super hidden files and folders in Win, is there any similar functionality in linux ? Like if I use ls -a, that would show hidden files. If any such functionality exists in Linux, would they be listed as well just by using -a ?
|
14:41 : zappy |
yes an error that no such file found
|
14:41 : rishibit |
sk56 descriptors point to same location in table, but we can change pointers using functions as per our requirement and also it depends on your program/code.
|
14:41 : jasonbraganza |
brute4s99 you just answered your own question :)
|
14:42 : |
zappy is it in the current folder that your are?
|
14:42 : |
next
|
14:42 : zappy |
yes
|
14:42 : homuncculus |
sk56 file descriptors are carried over a forksystem call, so the child process can use them at will. That's how IPC with pipes (see man 2 pipe) is usually done. If you need to access file descriptors opened after the fork, you can send them over a UNIX socket with sendmsg
|
14:42 : gozmit |
Where does terminal store all the previous commands as its easily available whenever you want?
|
14:42 : kps_ |
zappy, make sure you are in the same directory as the file before using the command
|
14:42 : jasonbraganza |
zappy maybe wc isn’t installed
|
14:42 : shadowroot |
gozmit: in a history file
|
14:43 : zappy |
but then it would have asked me to install like it did for the tree command
|
14:43 : jasonbraganza |
gozmit aah you have me there. there is a hostory file but5 I’ve forgotten what it is actually called. look it up :)
|
14:43 : |
next
|
14:43 : kps_ |
gozmit, .bash_history file in the home directory
|
14:43 : sourabh1031 |
Do we need to have knowledge of shell scripting to continue the training?
|
14:43 : rishibit |
homuncculus, sk56's question was in different context :)
|
14:43 : brute4s99 |
!
|
14:43 : zappy |
i saved my file on the desktop and im in the same directory
|
14:43 : jasonbraganza |
zappy after class then
|
14:44 : nightwarriorxxx |
!
|
14:44 : zappy |
will class get over at 9?
|
14:44 : shadowroot |
zappy: no . it ends whenever doubt ends
|
14:44 : |
XD
|
14:44 : homuncculus |
rishibit oh, I misunderstood the Question. I'm sorry
|
14:45 : gozmit |
Okay, thanks kps_ jasonbraganza shadowroot
|
14:45 : jasonbraganza |
sourabh1031 no :) but you do need to know your way around the system. setting your enviroment, files related stuff et al
|
14:45 : |
next
|
14:45 : Rakshit__ |
gozmit, you can use to ' whereis ' command to find the location of history file
|
14:45 : Saksham_ |
!
|
14:45 : brute4s99 |
i meant there are two possible levels of hidden files in Windows, one with attribute +h, another with +s +h. Are there two such levels in Linux for hidden files or preceding by '.' is all there is to hiding files/folders in linux ?
|
14:46 : Guest67851 |
gozmit : you can re-use previous commands by pressing UP ARROW key press it again and again until you not find command
|
14:46 : umesh_ |
brute4s99 no
|
14:46 : jasonbraganza |
brute4s99, to the best of my knowledge no. other than the mac controls and other attributes but that’s for another day
|
14:46 : ananyo |
!
|
14:47 : brute4s99 |
Thanks jasonbraganza !
|
14:47 : jasonbraganza |
next
|
14:47 : nightwarriorxxx |
jasonbraganza, [OT] i have gone through bash tutorials but how do i test that i have learned? I mean is their anything you can suggest?
|
14:48 : jasonbraganza |
nightwarriorxxx no :) if you can do what you want to do on the system, your good :)
|
14:48 : |
next
|
14:48 : kvy |
nightwarriorxxx: you can test them in your own terminal.
|
14:48 : rajan |
!
|
14:48 : kushal |
You will have to keep using those commands to remember them.
|
14:48 : ananyo |
What is the usefulness of the command line shortcuts? I couldn't test them properly
|
14:48 : jasonbraganza |
nightwarriorxxx, i hope you meant you actually used them and now know them in practice
|
14:48 : umesh_ |
kvy he wants assignment
|
14:49 : jasonbraganza |
next
|
14:49 : ananyo |
Is it to be used in command line editors ?
|
14:49 : kushal |
ananyo, short cuts are used so that you don't have to type or press many key combinations
|
14:49 : kvy |
umesh_: ooh i think something else.
|
14:50 : vait_ |
!
|
14:50 : jasonbraganza |
ananyo, what kushal said. once you actually begin typing, you’ll appreiate them a lot :)
|
14:50 : nightwarriorxxx |
kvy,yeah i already tested it on my terminal ,but still i am not that much confident because command line is soo big .
|
14:50 : jasonbraganza |
next
|
14:50 : rajan |
What is the path to learn linux kernel Development. I know its off topic as far as today's class is concerned.
|
14:50 : jasonbraganza |
rajan, ask after class
|
14:50 : |
next
|
14:50 : vait_ |
what's the difference between bash and terminal?
|
14:51 : jasonbraganza |
vait_ , so a terminal used to be the computer
|
14:51 : vait_ |
and shell also
|
14:51 : jasonbraganza |
vait_ and the command processor (bash) would process your commands
|
14:51 : kushal |
vait_, https://en.wikipedia.org/wiki/Computer_terminal
|
14:52 : jasonbraganza |
vait_ now the terminal is the window that lets bash run :)
|
14:52 : |
next
|
14:52 : brute4s99 |
cmd
|
14:52 : jasonbraganza |
any more questions?
|
14:52 : vait_ |
!
|
14:52 : jasonbraganza |
next
|
14:52 : vait_ |
what's shell?
|
14:53 : vishalIRC |
!
|
14:53 : kushal |
vait_, https://en.wikipedia.org/wiki/Shell_%28computing%29
|
14:53 : jasonbraganza |
now that is homework vait_ :)
|
14:53 : |
next
|
14:53 : umesh_ |
https://stackoverflow.com/questions/5725296/difference-between-sh-and-bash
|
14:53 : nightwarriorxxx |
!
|
14:53 : vshuklajr |
!
|
14:53 : vishalIRC |
what’s the significance of Xargs
|
14:53 : |
?
|
14:53 : jasonbraganza |
vishalIRC, homework for you too :)
|
14:54 : |
next
|
14:54 : nightwarriorxxx |
jasonbraganza, Can we set a gif or something like live wallpapers thorugh bash?
|
14:54 : kushal |
nightwarriorxxx, no.
|
14:54 : Guest67851 |
terminals runs some program inside it but Bash is a default shell in OS
|
14:54 : jasonbraganza |
nightwarriorxxx, apples and oranges? you probably could, but i don’t see why you’d want to
|
14:54 : |
next
|
14:54 : shadowroot |
vishalIRC: ps aux | grep firefox | awk -F " " '{print $2}' | xargs kill -9
|
14:55 : |
check this
|
14:55 : vshuklajr |
what is the use/application of shell scripting in industry ?
|
14:55 : Guest67851 |
when you run terminal Bas also run inside it
|
14:55 : vait_ |
!
|
14:55 : jasonbraganza |
vshuklajr, you cannot use apps for everything
|
14:55 : shadowroot |
vishalIRC: with that i'm extracting pid's of runiing processes of firefox/ by firefox
|
14:55 : |
and killing it
|
14:55 : jasonbraganza |
vshuklajr and scripts can glue two apps tgether
|
14:55 : shadowroot |
by redirecting the pid o/p to kill command via xargs
|
14:56 : |
vishalIRC: that helps ?
|
14:56 : jasonbraganza |
vshuklajr scripts let you customise and harness the power of your system
|
14:56 : j605 |
shadowroot: that is convoluted, `pkill firefox` should be enough
|
14:56 : vishalIRC |
Ok, so basically it lets you output a list through pipes?
|
14:56 : jasonbraganza |
vshuklajr i type nnpx to get nikola new_post -f markdown --tags="daily-programming" -t "Programming, Day " -e
|
14:57 : shadowroot |
j605: i just wanted to give the significance of xargs
|
14:57 : Guest67851 |
operations performed by shell scripts include file manipulation, program execution, and printing text.
|
14:57 : nightwarriorxxx |
kushal,because it looks cool if you open your computer and something like live wallapaper you see first.I basically mean to modify my background.
|
14:57 : vishalIRC |
thanks shadowroot
|
14:57 : jasonbraganza |
which launches my blog engine, lets me type a title and then launches vscode with the filew open
|
14:57 : |
next
|
14:57 : vait_ |
is it required to follow pipe(|) with grep always or some other command also works with pipe as well?
|
14:58 : vshuklajr |
jasonbraganza: Oh That's interesting . Thanks
|
14:58 : jasonbraganza |
vait_ any program before and any program after :) use with caution though :)
|
14:58 : |
next
|
14:59 : kushal |
any more questions?
|
15:00 : jeet__ |
!
|
15:00 : jasonbraganza |
i hope this silence means you’ll are practcing your commands in your terminals :)
|
15:00 : |
next
|
15:00 : nightwarriorxxx |
jasonbraganza, yes
|
15:00 : jeet__ |
How does xdg-open understand what file type I am trying to open and finds a suitable software for that?
|
15:01 : kushal |
jeet__, there is a list.
|
15:01 : shadowroot |
by checking the file headers
|
15:01 : jeet__ |
No, I mean suppose I have uninstalled gedit and subl and every other text file opener
|
15:01 : |
What then?
|
15:01 : jasonbraganza |
so let’s call it a night then folks
|
15:02 : |
Assignment for tomorrow
|
15:02 : kushal |
jeet__, it will tell you no good application available for this file type.
|
15:02 : jeet__ |
kushal, Thanks :)
|
15:02 : jasonbraganza |
Read this - https://lym.readthedocs.io/en/latest/fhsandaccess.html, specially the link in there - https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html
|
15:03 : |
and we’ll see each other tomorrow evening
|
15:03 : ananyo |
Thanks @kushal , @jasonbraganza for today's class. Leaving now. Will follow the rest through chat logs
|
15:03 : jasonbraganza |
Roll Call
|
15:03 : naman712 |
Naman Mittal
|
15:03 : vishalIRC |
Vishal Kushwaha
|
15:03 : newrg |
Rajat Gupta
|
15:03 : BohemianCoast |
Alison Scott
|
15:03 : GeekyShacklebolt |
Shiva Saxena
|
15:03 : AdityaPatil |
Aditya Patil
|
15:03 : RJ722 |
Rahul Jha
|
15:03 : sahil_ |
sahil
|
15:03 : garima |
Garima Gill
|
15:03 : storymode7 |
Mayank Singhal
|
15:03 : ananyo |
Ananya Maiti
|
15:03 : callowidealist |
Jitendra KUmar Tripathi
|
15:03 : rishibit |
Rishikesh Bamdale
|
15:03 : skat-sd |
Saikat Dey
|
15:03 : priyankasaggu119 |
Priyanka Saggu
|
15:03 : homuncculus |
Vaibhav Kaushik
|
15:03 : sourabhdeshmukh |
Sourabh Deshmukh
|
15:03 : RatanShreshtha |
Ratan Kulshreshtha
|
15:03 : pr97 |
Priyanka Sharma
|
15:03 : rajan |
Rajan Choudhary
|
15:03 : Sarques_ |
Gajendra Saraswat
|
15:03 : brute4s99_ |
Piyush Aggarwal
|
15:03 : prodyte |
pawan kumar
|
15:03 : sourabh1031 |
Sourabh Pruthi
|
15:03 : pradhvan |
pradhvan bisht
|
15:03 : Rakshit__ |
Rakshit Airani
|
15:03 : adityad97 |
Aditya Deshpande
|
15:03 : bismi |
Janifa M
|
15:03 : zishanahmad |
zishan ahmad
|
15:03 : bhavin192 |
Bhavin Gandhi
|
15:03 : vshuklajr |
Vivek Shukla
|
15:03 : hellozee |
Kuntal Majumder
|
15:03 : Aironly |
Deep
|
15:03 : kvy |
kumar vipin yadav
|
15:03 : pdas |
Priyam das
|
15:03 : meanjeet |
Manjeet Mehta
|
15:03 : inquiridortechie |
Neeraj Kumar Arya
|
15:03 : uniquerockrz |
Saurav modak
|
15:03 : cypher_ |
Naman Sharma
|
15:03 : nightwarriorxxx |
Aman Verma
|
15:03 : snandi |
Shamik Nandi
|
15:03 : Noory_ |
fathima shana noory
|
15:03 : yesh |
Yesh Pareek
|
15:03 : BhaveshSGupta[m] |
Bhavesh Gupta
|
15:03 : soniya29 |
Soniya Vyas
|
15:03 : Aditya |
Aditya Rao
|
15:03 : mzeeqazi_ |
Muhammad Zeeshan Qazi
|
15:03 : kps_ |
Karan Pratap
|
15:04 : vara1 |
Vara Singh
|
15:04 : jeet__ |
Amitrajit Bose
|
15:04 : shadowroot |
kushal: by the way i'm confused xdg-open uses headers right ? to check for type
|
15:04 : VirtualRcoder |
Shubham Sharma
|
15:04 : gozmit |
Mayank
|
15:04 : shadowroot |
because the type of each thing is defined in the headers of it . one can easily see the hexdump of that file to check for the type via headers
|