[15:06:25] [## Class Started at Thu Jun 23 15:06:25 2016 ##] [15:06:25] startclass [15:06:26] Ganesh Kadam [15:06:26] Deepanshu Kapoor [15:06:27] Shantanu Acharya [15:06:29] happy birthday sayan..:) [15:06:29] Akhilesh Dhaundiyal [15:06:31] Rhitik Bhatt [15:06:31] Anushil Kumar [15:06:32] Happy Birthday Sayan :) [15:06:33] Yashwanth M [15:06:33] Akshay Shipurkar [15:06:33] Mayank Gupta [15:06:34] Abhishek Shrivastava [15:06:34] Suraj Narwade [15:06:36] Pabitra Pati [15:06:36] Mahesh Gahlot [15:06:38] hemanth savasere [15:06:38] shobhit upadhyay [15:06:38] Nandakishor Prabhu R [15:06:39] Vaibhav Jain [15:06:39] Pragnavi [15:06:40] Shaurya Kalia [15:06:40] Rohan Verma [15:06:40] Alok Kumar [15:06:41] Varsha R [15:06:41] Sahil Joseph [15:06:41] Shashank Kumar [15:06:43] Prashant Jamkhande [15:06:44] Abhishek Tiwari [15:06:44] sandeep kumar choudhary [15:06:44] Joel Estibeiro [15:06:46] Indranil Dutta [15:06:46] Kshitij [15:06:49] Krishna Biradar [15:06:49] Rohan Hazra [15:06:49] Anushil Kumar [15:06:50] Sarah Masud [15:06:55] Abheek [15:06:57] Priyanka Sharma [15:06:59] Sidhant Gupta [15:07:00] Ananthakrishnan H [15:07:01] Sanyam Khurana [15:07:02] Aman Singh [15:07:03] Sandeep Maity [15:07:04] Avinash Madhukar [15:07:04] Suniva Priyadarshini [15:07:06] Nikhil Arya [15:07:07] Avik Mukherjee [15:07:08] Vibhor Verma [15:07:17] Rahul Bajaj [15:07:19] Amol Kahat [15:07:25] Gayathri Menakath [15:07:33] Prabhat Sharma [15:07:44] Kanika Murarka [15:08:01] shalaka [15:08:01] Farhaan Bukhsh [15:08:05] Yajushi Srivastava [15:08:21] Should have atleast given me time to write 'Roll Call" [15:08:22] sayan, SRvSaha told me to inform you that he won't be able to attend today's session because of poor network connection. [15:08:37] Okay [15:08:46] Don't start giving Roll Call unless told [15:08:54] sayan, :P [15:09:13] Questions? [15:09:14] ohk [15:09:18] Trishna Guha :P [15:09:23] .link question [15:09:25] sayan, haha :p [15:09:28] Marcos H. Alano [15:09:33] .link question [15:09:39] :) [15:09:43] Questions for last session? [15:10:53] Aditya Bayana [15:11:00] Ashwani Pandey [15:11:05] Kunal kumar [15:11:12] ketan kumar [15:11:20] Piyush [15:11:41] No questions from last seesion? Strange [15:11:46] ! [15:11:52] Seems like people understood everything [15:11:57] next [15:11:59] I typed mistakenly man ls' and it prompted out : > [15:12:00] and nothing then I pressed ctrl + d to end the execution. I use ubuntu 14.04 . why did it not prompted out : no manual entry for ls' ? [15:12:05] clearqueue [15:12:10] ! [15:13:06] vbhjain: that is actually strange, do you remember you typed 'man ls'? [15:13:12] no typos were in there? [15:13:39] @sayan, he typed man ls' [15:13:59] that's why he is getting > [15:14:17] sorry, I could not get much time to cover the book... as it was huge I did just cover very little [15:14:31] oh! Isee [15:14:37] vbhjain: type 'man ls' without the quotes on any side! [15:14:51] vbhjain, that's secondary prompt, shell expects that you'll enter something else to complet the command [15:15:11] vbhjain: so giving ' in the end means that it expecting string [15:15:24] that's why you were getting that prompt [15:15:45] okay, i didn't know the reason for the prompt. Now I know! [15:15:56] CuriousLearner ,sayan : ok [15:16:03] something like this https://paste.fedoraproject.org/383696/14666877/ [15:16:16] next [15:16:19] what is the difference between Ctrl +C and ctrl + D in bash [15:16:40] what is bash? [15:16:57] Bourne Again SHell. [15:16:57] priyanka_: http://tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.pdf [15:17:03] yup [15:17:15] abstatic: http://lmgtfy.com/?q=what+is+the+difference+between+ctrl%2Bd+and+ctrl%2Bc+in+unix [15:17:17] priyanka_, Bash is command line shell. [15:17:22] ! [15:17:50] thisisashwani, akahat thank you. [15:18:44] priyanka_: Larry Page and Sergey Brin built a small little website that has everything you can try searching it there :) [15:18:49] next [15:19:26] sayan, which website? [15:19:34] Google.com [15:19:35] Google [15:19:36] google [15:19:39] bro [15:19:55] oops [15:19:55] Sayan I am getting "admin is not in the sudoers file. this incident will be reported" for few commands. What's this ? [15:20:08] priyanka_, https://www.gnu.org/software/bash/manual/html_node/What-is-Bash_003f.html [15:20:13] oh, thanks sayan. [15:20:19] hahaa small website [15:20:54] iKshitij, You need to add your user in sudoers file. [15:20:54] iKshitij: you must be trying to use sudo with your commands! [15:20:57] thanks rahul_bajaj. [15:21:16] iKshitij: add you user to sudoers file. [15:21:17] iKshitij, open /etc/sudoers file using root [15:21:28] akahat: let me google :) [15:21:32] Roll Call: Snehal Karale [15:21:33] iKshitij, alternatively you can use su [15:21:49] next [15:21:55] No more questions? [15:22:03] ! [15:22:08] next [15:22:08] iKshitij, or you can use su to login as root [15:23:04] sayan can I change this in my command prompt "hemanth@hemanth-Inspiron-3542:~$" to just hemanth [15:23:08] sayan, ok :) [15:23:14] tried but the same line. Thanks everyone I will try again. [15:23:23] hemanth, that's primary prompt referred by PS1 [15:23:26] hemanth: yes, you can but I won't suggest :) [15:23:34] check for changing PS1 on google [15:23:44] CuriousLearner: +1 [15:23:53] thanks sayan [15:24:09] thanks CuriousLearner [15:24:17] I have messed up mine several times but it's a good learning too :) [15:24:23] Questions? [15:24:29] iKshitij, use the command "usermod -aG sudo Your_user_name" to add user in sudoer's file [15:25:03] ! [15:25:11] next [15:25:18] sandeepmaity09: but there is a circular dependency for running that command :) [15:25:52] pksadiq: why? [15:26:02] difference between terminal and shell.why shell is such an important topic?how it is related to this training? [15:26:19] akahat "bash: /etc/sudoers: Permission denied" [15:26:23] sandeepmaity09, wheel group [15:26:33] looged in as root [15:26:36] pksadiq, then edit the /etc/sudoers file by visudo command [15:26:37] sayan: you need to run that command as root. [15:26:39] Terminal provides sort of GUI to shell, yoda_ [15:26:43] iKshitij, open it using root user [15:27:05] yoda_: terminal is just an application [15:27:10] yoda_, for now you can think of it being the same thing. [15:27:34] ! [15:27:41] ! [15:27:51] i.e what i do in terminal is executed in shell [15:27:55] ! [15:27:55] right? [15:28:01] rahul_bajaj: no the same, they are totally independent component [15:28:06] s/no/not [15:28:34] yoda_: yes [15:28:38] next [15:28:50] how is bash different from csh and other shell? [15:29:00] yoda_, http://askubuntu.com/questions/506510/what-is-the-difference-between-terminal-console-shell-and-command-line [15:30:12] indiabhi: they have different features but with the core purpose same [15:31:01] next [15:31:22] what is the difference between usage of " pwd --logical " and " pwd --physical " ? [15:31:25] if I see man pwd then it prompts out : [15:31:25] -L, --logical [15:31:25] use PWD from environment, even if it contains symlinks [15:31:25] -P, --physical avoid all symlinks [15:31:44] ! [15:32:41] vbhjain, symlinks like /usr/bin and /bin [15:32:56] ! [15:33:08] vbhjain: -p excludes the symlinks [15:34:02] have symlinks been taught? [15:34:10] no [15:34:18] exactly my question? [15:34:46] sayan, it was discussed yesterday in between these questions [15:34:51] I would then skip that part [15:35:07] sayan ,ok [15:35:45] snarwade: I would leave that to the bash session then [15:35:58] ! [15:35:58] sayan, okay [15:36:01] next [15:36:03] Will we be learning bash scripting as part of this class or will we be learning basics of bash? [15:37:19] D1mz: yes, praveenkumar had to take up the session today but he got busy [15:37:50] sayan,you mean bash scripting? [15:38:03] D1mz: writing scripts in bash [15:38:04] next [15:38:12] * sayan is getting way too many calls [15:38:13] thank you. [15:38:31] next [15:38:41] Hi sayan,it's my first day and I'm new to linux as well. I found iso for Ubuntu so didn't waste time on downloading fedora for now. Will there be any session for new users of linux from scratch ? [15:38:59] already answered thank you. [15:39:03] realslimshanky: yes, there have been a few sessions, you can check the logs [15:39:04] next [15:39:12] query solved :) [15:39:18] realslimshanky: https://dgplug.org/irclogs/ [15:39:28] I'll go through them, Thanks batul :) [15:39:35] Thanks sayan :D [15:39:45] next [15:40:34] Questions? [15:40:46] realslimshanky : batul is a bot [15:40:49] ! [15:40:54] how does alias work? Does it execute a shell script? [15:40:55] next [15:41:23] when we'll start the real coding or real world examples [15:41:25] indiabhi: use ! :) [15:41:54] sorry [15:42:06] ! [15:42:08] himanshutechy: we are already in progress [15:42:15] next [15:42:52] next [15:42:58] how does alias work? Does it execute a shell script? [15:43:02] CuriousLearner: we need to add you to the script [15:43:13] ah, alright sayan no issues :0 [15:43:58] indiabhi, alias is just your custom command for shell command [15:44:10] Onkar karale [15:44:26] so we can any number of aliases? [15:44:27] dgplug: nice nick [15:44:32] indiabhi: yes [15:44:34] indiabhi, like you can put alias as 'indiabhi' for 'ls' [15:44:36] indiabhi, yes [15:44:59] okay and for more than one command? [15:45:16] indiabhi, you can put [15:45:22] indiabhi, you can write && [15:45:24] indiabhi: suppose you are typing commands with many arguments then you can create a alias [15:45:42] indiabhi, mkdir test && cd test [15:45:46] in /etc/profile or in bashrc file [15:46:23] indiabhi, snarwade , sayan sorry , i thought he is asking for executing multiple commands at a same time [15:46:50] yeah got it thanks :) [15:46:55] okay, more questions? [15:48:06] anyone need to ask anything? [15:48:44] ! [15:48:48] next [15:48:49] next [15:48:56] how can we made a binary file ? [15:49:17] or any command file on any os ? [15:49:23] ! [15:49:28] aman-, all executable programs are converted to binary [15:49:48] next [15:49:57] ! [15:49:59] aman-, you can change permissions [15:50:03] if root is doing alias then will it be applicable to all other user? [15:50:34] poonam, if you put it in /etc/profile [15:50:49] other user also can use it poonam [15:51:32] ! [15:51:58] next [15:52:00] there are many .bat or .config file . how can anyone create them ? [15:52:31] ! [15:52:46] ! [15:52:48] aman-, bat is used in windows, in linux we have .sh files [15:53:05] aman-: so basically each software have their own set of configs [15:53:10] config files are used for configuration purpose, created similarly you create other files [15:53:37] you just need to follow the documentation and create the configuration files [15:53:38] but in which language are they created ? [15:53:51] aman-, depends on type of software [15:54:02] okay ...thanks :) [15:54:07] aman-: there are many markup languages, depends on how the software uses [15:54:25] aman-, like you can use YAML [15:54:51] next [15:54:55] next [15:55:05] can one user get superuser previllege permanently so no need of sudo [15:55:16] hemanth, you should not do that [15:55:25] hemanth: yes you can [15:55:31] you can disable asking for password, in the sudoers file whenver you use the sudo command [15:55:33] but as CuriousLearner said you should not [15:55:41] uplifted privileges are dangerous [15:55:44] abstatic: -1 for that too [15:55:59] hemanth, it can ruin your life :P [15:56:00] next [15:56:04] how is .bashrc different from /etc/profile ? [15:56:23] thanks guys ... :) [15:57:15] gkadam, google [15:57:30] difficult question to explain :D [15:57:47] .bashrc is for specific user [15:57:54] .bashrc or .zshrc are generally used to local based configuration [15:58:18] s/local/user [15:58:41] whereas /etc/profile helps settings the variables for all the user shells [15:58:42] /etc/profile enables alias for all users [15:58:56] But there ~/.profile [15:59:32] so for global changes and aliases we should put in /etc/profiles right? [15:59:41] I think ~/.profile is shell independent and ~/.bashrc and ~/.zshrc are shell dependent [15:59:51] see the thing is if it's there in /etc it's for all users [16:00:26] whereas if you keep it in the home directory it is for a single user [16:00:58] sayan, +1 [16:00:59] suppose my bashrc is in /home/devbox/.bashrc [16:01:36] so this file will be initialized whenever I and starting bash or terminal from the user devbox [16:01:43] ! [16:02:22] this will also have the configuration from /etc/bashrc [16:02:42] but if the same values are repeated in /etc/bashrc and ~/.bashrc [16:02:51] then ~/.bashrc overrides the parent value [16:02:53] next [16:02:56] next [16:03:00] What is the difference between ~/.profile and ~/.{bash,zsh}rc? [16:03:07] :D [16:03:30] gkadam: hope that explains :) [16:03:40] sayan, yes. thanks! [16:03:41] good explanation, sayan thanks :) [16:04:00] mhalano, I am unable to find ~/.profile :( [16:04:10] mhalano: profile is used generally for setting environment variables like the PS1 I told you [16:04:22] snarwade: if it's not there you can create one [16:04:32] sayan, ok [16:04:40] thanks [16:04:47] and bashrc are for functions and aliases [16:04:49] mhalano: every time the bash (or zsh) shell runs, it executes a file .bashrc (or .zshrc). So configurations related to those shells should be present in corresponding files [16:05:05] sayan, profile is shell independent? [16:05:25] mhalano: ~/.profile (and /etc/profile) may be used by other graphical tools too (not specific to bsh) [16:05:27] mhalano: no [16:05:27] bash* [16:05:38] I saw ~/bin as a path is declared in ~/.profile [16:06:16] next [16:06:42] pksadiq, I know. That's why I say it is shell independent. Serves for bash, zsh, etc. [16:06:48] Let's take the questions related to bashrc/profile after the class [16:07:12] sayan, ok [16:07:20] So the next class will be posted on mailing list. [16:07:59] Roll Call [16:08:01] Deepanshu Kapoor [16:08:03] ganesh kadam [16:08:05] Ashwani Pandey [16:08:05] Rhitik Bhatt [16:08:05] Sanyam Khurana [16:08:06] Abhishek Rai [16:08:08] sandeep kumar choudhary [16:08:08] Abhishek Shrivastava [16:08:08] Pabitra Pati [16:08:09] Shantanu Acharya [16:08:10] Suraj Narwade [16:08:12] Priyanka Sharma [16:08:13] Rohan Hazra [16:08:13] Yashwanth M [16:08:13] Mayank Gupta [16:08:14] Aman Singh [16:08:16] Moiz Sajid [16:08:16] Amol Kahat [16:08:17] Suniva Priyadarshini [16:08:18] Pragnavi [16:08:18] Sandeep Maity [16:08:18] Yajushi Srivastava [16:08:18] Rahul Bajaj [16:08:18] Prashant Jamkhande [16:08:19] Abheek [16:08:20] * sandy__ [16:08:25] Snehal karale [16:08:26] Abhinav Jha [16:08:27] kunal kumar [16:08:31] Akhilesh Dhaundiyal [16:08:31] Vaibhav Jain [16:08:32] Rohit Kumar [16:08:32] Himanshu sharma [16:08:35] ketan kumar [16:08:35] Anushil Kumar [16:08:35] Vivek shelar [16:08:42] Aditya Bayana [16:08:43] Varsha R [16:08:47] Sidhant Gupta [16:08:47] shobhit upadhyay [16:08:52] poonam jadhav [16:09:07] Trishna Guha [16:09:09] Avik Mukheree [16:09:10] Onkar karale [16:09:10] Avinash Madhukar [16:09:25] Shashank Kumar [16:09:30] Kshitij [16:09:39] Marcos H Alano [16:09:40] Shaurya Kalia [16:10:07] Alok Kumar [16:10:10] Sahil Joseph [16:10:50] endclass [16:10:50] [## Class Ended at Thu Jun 23 16:10:50 2016 ##]