[13:05:38] [## Class Started at Tue Jul 1 13:05:38 2014 ##] [13:05:38] startclass [13:05:43] Good batul is back [13:05:53] --------------SESSION STARTS---------------- [13:05:57] Roll Call [13:05:59] Binay Pareek [13:06:00] Sheesh Mohsin [13:06:01] hean zhu [13:06:01] Sivaram Balakrishnan [13:06:02] Hari Kiran [13:06:03] Praveen Patil [13:06:05] Mayuresh Waykole [13:06:05] Abhishek Potnis [13:06:06] Thejazeto Lhousa [13:06:07] Guruprasad [13:06:07] Harsha [13:06:08] amit tripathi [13:06:09] pavan priyatham [13:06:09] Papiya Sen [13:06:09] Zaheer [13:06:09] kanika narang [13:06:11] Annesha Chowdhury [13:06:12] Nithin Raj [13:06:12] Eeshan Garg [13:06:13] Dharmesh Ruprela [13:06:13] Surabhi [13:06:14] Anjali [13:06:15] Soumyo Dey [13:06:15] Amit kumar [13:06:15] Amir Musanna [13:06:16] Sreedevi Pillai [13:06:17] Heena Kaushar [13:06:17] Koushik Bag [13:06:18] Satarupa [13:06:18] Michael Dahl [13:06:18] Yasharth Choudhary [13:06:20] Prashant [13:06:20] Vidya Sagar [13:06:21] Kumari Shalini [13:06:21] Sukanya Mandal [13:06:22] Niharika [13:06:24] Abhishek Poojary [13:06:29] Athira S [13:06:35] Mahendra yadav [13:06:37] Korak Ghosh [13:06:41] Titli Das [13:06:44] Deepu Philip [13:06:44] ramsandesh [13:06:46] Aakash [13:06:52] John Lizer [13:06:56] Praveen [13:07:12] alec [13:07:23] PraveenKarol is now known as PraveenK [13:07:25] Yeshita Dutta [13:07:28] Abhay Krishnan [13:07:29] shilpi shukla [13:07:32] Vikash Patil [13:07:46] PraveenK is now known as PraveenKarol [13:07:56] Praveen.ksna [13:08:03] Yogeshwar Dan Charan [13:08:03] Sudhir Khanger [13:08:11] Nishant Pani [13:08:12] Praveen Karol [13:08:18] Amrutha [13:08:31] prajesh rawat [13:08:35] Anyone left? [13:08:40] ajinkya bhosale [13:09:05] Rahul Mishra [13:09:10] shalini1 is now known as shiminsh [13:09:18] <>Rupitha [13:10:11] Praveen kumar [13:10:30] Siddharth Kulshrestha [13:10:50] pingall: roll call in case you never noticed. [13:11:20] We can start [13:11:24] So QA time. [13:11:37] ! [13:11:42] ! [13:11:49] ! [13:11:55] next [13:12:05] i read about robocopy but couldn't understand it completely [13:12:13] please explain it [13:12:30] ! [13:12:40] what is the ls -lr command ,i can't get it [13:12:58] ! [13:13:32] silentSae, can you please point me to the link you read on robocopy? [13:13:45] pavan, Please wait for your turn. [13:13:53] give me a minute [13:14:18] pavan: "man ls" should help you. [13:14:27] pavan, -lr are the options you give to ls command, -l is longlist, -r is recursive [13:14:44] shalini1 is now known as shiminsh [13:14:56] silentSae, that is a windows command [13:15:00] senju: -r is not recursive it is -r, --reverse [13:15:07] http://cli.learncodethehardway.org/book/ex1.html [13:15:08] -R [13:15:12] ! [13:15:17] senju: -R is recursive. [13:15:37] got it [13:15:40] silentSae, not sure why are you reading windows commands in a linux session. [13:15:57] yes I saw that but there was a discussion on its linux equivalent. So I thought its not 'cp' equivalent [13:16:03] [13:16:14] next [13:16:16] next [13:16:23] 1. What does really ls -lR does ? it showed some output but couldn't understand it. [13:16:37] Abhishek Chowdhury [13:16:48] ace139, go to /dev [13:16:54] and give that command [13:17:06] ace139, and then give ls -l [13:17:10] 2. when we are typing > mv file1.txt file2.txt what happens to file1.txt ? [13:17:12] you will understand the different. [13:17:29] ace139, file1.txt gets renamed to file2.txt [13:17:49] but its the command for move ! [13:17:53] ace139 If there are any sub directories in the directory when you give that command,the contents of thoe sub directories will be listed in a recursive fashion [13:18:10] ace139, yes, so to speak it moved file1.txt to file2.txt [13:18:13] ! [13:18:26] another way to say rename :) [13:18:27] next [13:18:32] I have read about symbolic links, but it is not very clear to me. Can you please explain it? [13:18:32] Got it [13:18:50] titli, which part is not clear? [13:18:54] ! [13:19:11] how to make such links, and when to use? [13:19:30] like why we need them? [13:20:32] titli, say you have one file under /data directory, but you want every user in your system should see that file in your home directory and be able to read it, one way is to copy the file everyplace [13:20:41] but that means wastage of space. [13:20:49] ! [13:21:03] Instead you can create a link to it from every users home directory. [13:21:05] ln -s [13:21:17] titli, google about why soft linking [13:21:19] next [13:21:40] kushal, thanks. [13:22:05] next [13:22:18] ! [13:22:20] kushal , how can we define permission to any file ? [13:22:24] ! [13:22:42] arbi007, first tell me do you know how to view the permissions? [13:23:02] kushal ,ls -l [13:23:15] arbi007, good. [13:24:15] arbi007, now read the man page about chmod command after the session [13:24:18] ! [13:24:23] next [13:24:40] kushal , ok [13:25:03] when we have a cd .. command then what's the use of pushd and popd ? Is to just to make the switching easier? [13:25:04] ! [13:26:06] add: chandan_kumar [13:26:44] next [13:26:46] pavan: pushd is create a stack, check man pushd and you will find usecase. [13:27:11] next [13:27:23] masters [13:27:31] what is the use of touch command ?? [13:27:40] [13:27:49] to create an empty file [13:27:56] shilpi: to create an empty directory [13:28:05] pavan, nope [13:28:07] ! [13:28:07] pavan: directory ? [13:28:29] sorry file [13:28:29] shilpi, it creates an empty directory. [13:28:49] kushal: nope. mkdir creates an empty directory [13:29:04] vj is now known as vivk- [13:29:06] touch command is used to modify the proerties of files [13:29:06] Btw there are many people here who already knows a lot about Linux, feel free to answer the questions. [13:29:07] touch creates new file [13:29:16] kushal, directory ? [13:29:23] vivk- is now known as vivek- [13:29:27] Touch creates new empty files. http://linfo.org/touch.html [13:29:28] amit001, tonythomas ah, [13:29:32] shilpi: To change file timestamp and if file not present then create file. [13:29:37] copy paste error [13:29:45] try `touch --help` [13:29:48] * kushal feels stupid [13:29:50] next [13:29:54] kushal, When I am using >pushd dev for checking the ls -lR command as you said, its showing no file or directory. [13:30:16] ace139, I said go to /dev directory. the command is cde [13:30:17] cd [13:30:23] ace139, $ cd /dev [13:30:25] deepu_tp: I would just go for man touch [13:30:42] next [13:30:45] ! [13:30:51] kushal, where in memory do the environment variables live? [13:31:11] chandan_kumar is now known as chandankumar [13:31:20] deepak_sirone, inside the bash process? [13:31:21] I haven't been able to readup before this class..will that affect me much [13:31:36] acetakwas_, you used extra dots. [13:31:50] kushal, So no special location or anything? [13:31:58] acetakwas_, yes, not doing homework will make you feel that you know nothing. [13:32:16] deepak_sirone, nope, same as in every other program iirc [13:32:18] next [13:32:21] what is a festival command? and y do we use it ? [13:32:22] [13:33:12] ! [13:33:23] alec, it is a command which can help you to read a file. [13:33:34] text to speech [13:33:37] next [13:33:43] I have used that command(ls -l).What does those descriptions mean actually.? [13:33:48] alec: check man festival for more detail. [13:33:58] deepak|_sirone, check the /var directory [13:34:03] alec, http://linux.die.net/man/1/festival for more info on festival command. [13:34:12] alec don't use sms language [13:34:16] ! [13:34:20] obhee , it shows you all the seven attributes. [13:34:40] Jupiter, nice catch. [13:35:13] ok thanks thanks kushal, praveenkumar and chandankumar [13:35:28] Titli, Seven attributes? [13:35:42] obhee, it tells you about permissions authors name date of creation etc [13:35:52] and ya i am sorry for that Jupiter [13:36:05] obhee, yeah. [13:36:08] ! [13:36:10] ! [13:36:15] next [13:36:36] ls [13:36:40] sorry [13:36:42] Amit001,titli, yeah.got it :) [13:36:43] amit001, hehe [13:36:52] next [13:36:54] kushal , what is the diffrence between type and typeset command ? [13:38:09] arbi007, http://www.tldp.org/LDP/abs/html/declareref.html [13:38:11] next [13:38:33] acetakwas_, what in the /var directory? [13:38:37] what is the difference between cat command and less command? I mean, both are showing the contents of a file. Can you please explain? [13:38:42] even if some file does not have the permission to be executed i.e. 'x', we can still open it. How? Please explain this. [13:38:44] arbi007: if you use type then it will indicate how each name would be interpreted and typeset for declare variables and/or give them reference (check man type/typeset) [13:39:19] donniezazen_ is now known as donniezazen [13:39:37] Mactoc: cat will show complete file in stdout but tail will show last 10 lines by default, (check man for both commands) [13:39:40] Mactoc: less would help you see contents of files with very large sentences. Probably, similar to word-wrapping the cat command. Long sentences get cut to new lines, so we can see full [13:39:47] praveenkumar, thank you [13:39:54] next [13:40:17] * praveenkumar misreads less with tail. [13:40:32] ! [13:40:37] ! [13:40:49] next [13:41:18] soumyaC_ is now known as soumyaC [13:41:27] next [13:41:31] once the path is created how can I remove the path ? [13:42:22] silentSae: because executing != opening. Executing is like running a .exe file in windows, while opening like opening in a text editor [13:42:41] Praveenkumar, tonythomas: Thank you. [13:42:43] deepak_sirone, I think the /var directory is for variables [13:42:56] Deccan, create a new PATH variable and export it. [13:42:59] acetakwas_, nope. [13:43:11] acetakwas_, the /var is not for environment variables [13:43:12] umesh_ is now known as umeshs [13:43:35] tonythomas : ok so we cannot run a compiled c program without giving it permission to execute, right? [13:43:37] Deccan: how did you create path using same way don't include your_remove_path in $PATH env variable during exporting it. [13:43:39] next [13:44:17] ! [13:45:16] silentSae: yes and by default when gcc compile C program output binary have executable permission. [13:45:17] next [13:45:18] silentSae, correct. [13:45:26] Problem solved. [13:45:31] next [13:45:31] next [13:45:35] Instead of Ubuntu or Fedora, can we use the PowerShell terminal of Windows for these sessions? [13:45:39] deepak_sirone, Refer the Filesystem Hierarchy Standard http://www.pathname.com/fhs/ [13:45:42] praveen : yes I know that. Thanks [13:45:43] codaholic: no [13:45:53] Can find command be used to search inside files like grep? [13:45:55] silentSae: running a command is = executiing and as praveenkumar says, yes [13:46:39] nmzaheer, no. From man page "find - search for files in a directory hierarchy" [13:46:40] Thankyou! praveenKumar and Kushal [13:46:43] ! [13:46:51] next [13:46:53] thanks [13:46:55] nmzaheer, nope, grep is used for pattern matching. [13:46:59] nmzaheer, we use find and grep together using pipes. [13:47:03] deepak_sirone, global environment variables are defined in /etc/profile.env but they are stored in every process memory [13:47:16] next [13:47:22] ! [13:47:25] next [13:47:41] kushal, you said using pipes..means ? [13:47:43] vipsy, thanks a lot :) [13:48:00] ! [13:48:06] deepak_sirone, you might have already read this link - https://www.linuxquestions.org/questions/linux-general-1/where-are-environment-variables-stored-382971/ [13:48:10] ! [13:48:29] ruprela, that shows you never read the book link we gave [13:48:30] ruprela: do a google search about pipe for linux. '|' -> is a pipe [13:48:32] ruprela, http://cli.learncodethehardway.org/book/ex15.html [13:48:38] next [13:48:43] why the environment variables are stored in every process memory? [13:48:53] deepu_tp, Thanks a million , I was hunting for something like this :) [13:48:56] I mean aren't they static? [13:49:00] ! [13:49:06] titli not in every process memory but only in bash memory [13:49:10] I mean [13:49:17] in the bash process in the memory. [13:49:21] next [13:49:24] titli, they are not static. [13:49:28] ok. [13:49:38] what is pattern matching as nmzaheer said ? [13:49:45] kushal, ? [13:49:48] madangel, read the book. [13:50:02] titli, environment variables are not static. [13:50:06] next [13:50:10] can a user other than root run 'unmount' command? how? [13:50:26] sorry to interrupt, but is there any order/list by which people are allowed to ask quetions ? [13:50:29] gnovi: if user have sudo permission then yes [13:50:40] mr1holmes, means? [13:50:56] ! [13:50:59] next [13:51:02] kushal, when you mean they are not static, you mean every user will have different values or the same user will have different values at different times? [13:51:10] mr1holmes: No. To ask a question please type ! and wait till Batul says it's your turn. [13:51:25] ok [13:51:36] nmzaheer: Each shell session have different value of env variable. [13:51:44] nmzaheer, every single bash process will have some environment variables, they can be different. [13:52:07] kushal: like you close the terminal, it dies, right ? [13:52:13] tonythomas, yes [13:52:19] chiral_ is now known as sivteck [13:52:21] next [13:52:26] so two users may have the same values? [13:52:31] nmzaheer, yes [13:52:40] ! [13:52:43] next [13:52:44] next [13:52:44] ok [13:52:47] nmzaheer: you can even make it permanent too http://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables [13:53:02] kushal, if theya re using different shells then? [13:53:12] i have file consisting repetations of following manner or it's variantssome institute name (scattered in two or three lines) [13:53:12] (inst code) [13:53:12] some department name(scattered one or two lines) [13:53:12] (dep code) [13:53:12] some program name(scattered one or two lines) [13:53:13] (prog code) [13:53:15] what can be a good vim macro to make it something like this [13:53:17] all with single line [13:53:19] 1.inst name [13:53:21] 2.dep name [13:53:23] 3.prog name [13:53:25] i tried a simple macro but results were not good as some institues has names with three lines [13:53:27] is there something called conditional macro in vim ? [13:53:55] mr1holmes, sorry but I don't know much about vim macros. never used them. [13:54:20] ok [13:54:33] mr1holmes, there should be a channel form vim , try #vim if any. [13:54:44] ask the experts there. [13:54:53] Ok, I want to say a few things [13:54:54] mr1holmes, http://vim.wikia.com/wiki/Macros [13:55:17] ! [13:55:28] We will take questions later. [13:55:32] tonythomas, thanks [13:55:43] The participants will see that we are asking you all to read a lot of links. [13:55:55] This is because of few reasons. [13:56:18] I'm late. what's the topic for today? [13:56:42] RohanRoy, I said we will take questions later, can you please do not disturb in middle. [13:56:56] 1. To make an habit of reading. Reading is important but many students these days do not read more than FB or twitter updates. [13:57:29] Reading is always a great habit. [13:57:40] Try to read more books(any type). [13:57:45] this is my first class.so, can u tell me what should i do now? [13:58:03] Praveen__, yes, stay silent. [13:58:04] Praveen__, read :) [13:58:11] amit001, you too. [13:58:20] praveen please dont use sms language [13:58:20] Praveen__: don't use sms language [13:58:45] Jupiter, jaba read the lines I said above and stay silent please. [13:59:18] 2. In many cases you will find there is no one to help you out other than internet. [13:59:36] That case you will have to know how to search the solution for a problem [13:59:58] how to tell the difference between a good answer and a bad answer. [14:00:13] So again you have to read regularly to understand those. [14:00:40] That is why we are trying to give you more links to read. [14:01:00] Btw, also make an habit of staying online on IRC, just the way you do for FB. [14:01:13] There are many channels and people discuss all kinds of things. [14:01:27] Fun, work, books, movies everything. [14:01:46] chandan_kumar is now known as chandan|afk [14:01:50] chandan|afk is now known as ciypro|afk [14:02:10] rtnpro_w is now known as rtnpro [14:02:36] Here in this channels most of us close friends [14:03:00] We know each other for a long time, may be few of us never met each other face to face. [14:03:13] But we are one community together. [14:03:28] Coming back to the linux commands. [14:03:40] ! [14:03:43] We will learn about many other commands in the coming months. [14:03:44] next [14:03:47] next [14:03:59] topic for today [14:04:15] How can we get those chats which are lost because of connection loss [14:04:38] umeshs, ask a friend for the log [14:04:44] umeshs, http://www.dgplug.org/irclogs/ [14:04:46] umeshs: Please refer to irc logs after the class. [14:04:47] RohanRoy, linux command line. [14:04:51] ok [14:04:57] umeshs, http://dgplug.org/irclogs/2014/ [14:05:05] ok [14:06:23] is the session over? [14:06:49] nmzaheer: No. [14:07:00] ok [14:07:11] ruprela, have you read the book link we gave? [14:07:19] ! [14:07:22] nmzaheer, no [14:07:29] yes [14:07:44] the one which you gave to me just now [14:08:08] someone please give ruprela the book link. [14:08:17] ruprela, you have to go through all the commands. [14:08:27] chiral_ is now known as sivteck [14:08:30] ruprela, http://cli.learncodethehardway.org/book/ [14:08:46] ruprela: Read it : http://cli.learncodethehardway.org/book/ [14:08:57] ruprela, http://cli.learncodethehardway.org/ [14:08:58] thank you [14:09:09] http://dgplug.org/irclogs/kushal_fhs_class.log finish this log along with the fhs link on the top of it for tomorrow. [14:09:13] next [14:09:18] can you suggest us some interesting irc channels [14:09:26] sagarkrkv, #fedora [14:09:42] sagarkrkv, #wikipedia [14:09:56] sagarkrkv, the rest is based on what you want. [14:09:58] next [14:10:11] ! [14:10:16] next [14:10:19] which fhs link? [14:10:21] chandan_kumar is now known as chandankumar [14:10:32] nmzaheer, read the log, you will know [14:10:37] Tomorrow's session will start at 18:30pm IST. [14:10:40] ok [14:10:41] nmzaheer, http://www.pathname.com/fhs/ [14:10:46] -------SESSION ENDS------------ [14:10:52] endclass [14:10:52] [## Class Ended at Tue Jul 1 14:10:52 2014 ##]