Created
July 21, 2014 17:49
-
-
Save sudhirkhanger/46361e3095bee130f88c to your computer and use it in GitHub Desktop.
July 21st #dgplug session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [18:41] <chandankumar> <------- SESSION START -------> | |
| [18:41] <chandankumar> Roll Call | |
| [18:41] <bnprk> Binay Pareek | |
| [18:41] <silentSae> Amir | |
| [18:41] <eeshangarg> Eeshan Garg | |
| [18:41] <EkAurBottleLa> Sunit Jain | |
| [18:41] <umeshs> Umesh Sharnagat | |
| [18:41] <dhritishikhar_> Dhriti Shikhar | |
| [18:41] <iamviknesh> vikneshwar | |
| [18:41] <senju> Vikash patil | |
| [18:41] <thejaman> Thejazeto | |
| [18:41] <mnw94> Mayuresh Waykole | |
| [18:41] <lixxz> Yasharth | |
| [18:41] <sivteck> Sivaram Balakrishnan | |
| [18:41] <surabhi> Surabhi | |
| [18:41] <heena> Heena Kaushar | |
| [18:41] <gnovi> Praveen Patil | |
| [18:41] <prajesh> prajesh rawat | |
| [18:41] <stguin> satam guin | |
| [18:41] <yogeshwar> Yogeshwar | |
| [18:41] <shilpi> shilpi shukla | |
| [18:41] <ramsan> ramsandesh | |
| [18:41] <Mactoc_> Sreedevi | |
| [18:41] <jaba> Athira S | |
| [18:41] <harsha> Harsha | |
| [18:41] <kanika04> kanika narang | |
| [18:41] <CuriousLearner> Sanyam Khurana | |
| [18:41] <shrees> Shikha Shree | |
| [18:41] <magzter> Mahendra Yadav | |
| [18:42] <dev212> Dhanya N | |
| [18:42] <Sparking> Bhargav Patel | |
| [18:42] <Prash_542_> Prashant Surya | |
| [18:42] <codaholic> Anjali Menon | |
| [18:42] <madangel> aparna | |
| [18:43] <chandankumar> First we are going to take questions from previous class and from home work. | |
| [18:43] <chandankumar> Please shoot your questions. | |
| [18:43] <CuriousLearner> ! | |
| [18:43] <chandankumar> next | |
| [18:43] <batul> CuriousLearner please ask your question. | |
| [18:43] <papiya> Papiya Sen | |
| [18:44] <zishan> Sheesh Mohsin | |
| [18:44] <abhiram_rk> Abhiram ravikumar | |
| [18:44] <abhiram_rk> ! | |
| [18:44] *** gajanan is now known as gajanan-away. | |
| [18:44] <CuriousLearner> for open ports netstat -lnp , is it correct, also what does it mean by port is listening? | |
| [18:45] <chandankumar> CuriousLearner, you can use netstat --listen for open ports. | |
| [18:45] <chandankumar> CuriousLearner, yes | |
| [18:45] <CuriousLearner> chandankumar, listen means they are open and not used by any service? <eof> | |
| [18:46] <donniezazen> Sudhir Khanger | |
| [18:46] <chandankumar> yes | |
| [18:46] <CuriousLearner> ok | |
| [18:46] <chandankumar> next | |
| [18:46] <batul> abhiram_rk please ask your question. | |
| [18:46] <abhiram_rk> How do you measure the remaining space on the /home ? Does that mean a specific space is allotted to each directory? | |
| [18:47] <chandankumar> abhiram_rk, before coming to your question how to find available space in home directory? | |
| [18:47] <-- gnovi ([email protected]) has left this server (Read error: Connection reset by peer). | |
| [18:48] <donniezazen> abhiram_rk: df /home | |
| [18:48] <chandankumar> Anyone can go ahead to reply abhiram_rk question? | |
| [18:49] <lixxz> df -h /home is better | |
| [18:49] <donniezazen> or rather df -h /home yes | |
| [18:49] <silentSae> free /home | |
| [18:49] <donniezazen> -h makes it human readable. | |
| [18:49] <abhiram_rk> I wasn't asking about the command. | |
| [18:50] <donniezazen> silentSae: free is for system memory and not disk space. | |
| [18:50] <abhiram_rk> What does "remaining space" mean? Is it for the entire file system? | |
| [18:50] <donniezazen> Space is not allotted to any particular directory | |
| [18:50] <donniezazen> Directories or files are mere links to memory location on disk. | |
| [18:51] <abhiram_rk> donniezazen: What is system memory and disk space? I'm a little confused about the whole space thing. | |
| [18:51] <abhiram_rk> donniezazen: Okay, elaborate please? | |
| [18:51] <donniezazen> remaining space is amount of space that is available to you. | |
| [18:51] <donniezazen> System memory is RAM. | |
| [18:51] <donniezazen> Disk space is the amount of hard disk space available. | |
| [18:52] <chandankumar> abhiram_rk, system memory is refers to RAM and disk space is your hard drive | |
| [18:52] <-- Prash_542_ (0825e214@gateway/web/freenode/ip.8.37.226.20) has left this server (Ping timeout: 246 seconds). | |
| [18:52] <abhiram_rk> chandankumar: donniezazen Cool. I understood. <eof> | |
| [18:52] <chandankumar> next | |
| [18:52] <batul> No one is in queue. | |
| [18:53] <chandankumar> Any question which is not solved from home task | |
| [18:53] <chandankumar> if no, then i am proceeding ahead | |
| [18:54] <chandankumar> in question 4, we have to ask for pid of a root user. | |
| [18:54] <chandankumar> But pid does not exits for a root user. | |
| [18:54] <chandankumar> For a user there always a user id. | |
| [18:54] <chandankumar> try id command in your terminal | |
| [18:55] <-- shrees ([email protected]) has left this server (Remote host closed the connection). | |
| [18:55] <abhiram_rk> Shows uid, gid, etc | |
| [18:55] <chandankumar> so for every user, there are four things to be known | |
| [18:55] <chandankumar> one is uid -- user id | |
| [18:55] <chandankumar> gid -- group id | |
| [18:56] <chandankumar> groups -- every user belongs to a certain groups | |
| [18:56] <chandankumar> wheels -- it is also a group which tells do a user has sudo permission or not. | |
| [18:57] <chandankumar> Have everybody solved question 6? | |
| [18:57] <chandankumar> what is question no 6 in home task? | |
| [18:58] <sivteck> chandankumar 6. Numbers of users present in the current system | |
| [18:58] <CuriousLearner> Yes, done, | |
| [18:58] <CuriousLearner> number of users in current system | |
| [18:58] <chandankumar> CuriousLearner, what is the command for that? | |
| [18:59] <CuriousLearner> users|wc -w | |
| [19:00] <CuriousLearner> chandankumar, ^^ | |
| [19:00] <chandankumar> CuriousLearner, it will tell only no.of users logged in the current system | |
| [19:00] <Mactoc_> who command | |
| [19:00] <iamviknesh> CuriousLearner: who | wc -l | |
| [19:00] <iamviknesh> sorry chandankumar ^^ | |
| [19:00] <chandankumar> In linux box, all the user information is stored in /etc/passwd file | |
| [19:00] <lixxz> i used grep | |
| [19:00] <chandankumar> check this file in vim editor | |
| [19:01] <lixxz> chandankumar, i used grep to extract information from /etc/passwd and finally prinout no of users | |
| [19:01] <chandankumar> and their password and other info is stored in /etc/shadow file. | |
| [19:01] <chandankumar> lixxz, yes | |
| [19:01] <chandankumar> cat /etc/passwd | wc -l | |
| [19:01] <chandankumar> it will print no. of users in your system | |
| [19:02] <abhiram_rk> ! | |
| [19:02] <chandankumar> you can find more information in /etc/passwd | |
| [19:02] <chandankumar> nect | |
| [19:02] <chandankumar> next | |
| [19:02] <batul> abhiram_rk please ask your question. | |
| [19:02] <abhiram_rk> How do you define users? There are so many I haven't created. | |
| [19:03] <donniezazen> abhiram_rk: What's the output of "users"? | |
| [19:03] <abhiram_rk> donniezazen: Only the current users. | |
| [19:03] <chandankumar> anyone wants to answer above question? | |
| [19:04] <donniezazen> I don't have a book definition but users are things that are allowed to do certain tasks on a system. | |
| [19:04] <chandankumar> /etc/passwd contains a list of system's account | |
| [19:05] <abhiram_rk> Yeah. I have 47 users on my computer. according to /etc/passwd | |
| [19:05] <chandankumar> http://www.linfo.org/etc_passwd.html | |
| [19:06] <umeshs> donniezazen users gives list of active users .. I think first column is username an second one is group name | |
| [19:06] <umeshs> abhiram_rk no.. actually that file contains all the details of user | |
| [19:06] <umeshs> along with there password | |
| [19:07] <chandankumar> The users which you are seeing are system defined and created for different purposes. | |
| [19:07] <abhiram_rk> chandankumar: So when I install an application, it gets shown as a new user? Exp: mysql | |
| [19:07] <chandankumar> yes | |
| [19:07] <abhiram_rk> provided the application creates accounts. | |
| [19:08] <umeshs> ok. and sorry for wrong info | |
| [19:08] <chandankumar> there are different system defined users for different processes. | |
| [19:08] <chandankumar> next | |
| [19:08] <batul> No one is in queue. | |
| [19:08] <dhritishikhar_> ! | |
| [19:08] <titli> ! | |
| [19:08] <chandankumar> next | |
| [19:08] <batul> dhritishikhar_ please ask your question.. titli you are next. Get ready with your question. | |
| [19:08] <dhritishikhar_> what is the use of those users present in /etc/passwd? | |
| [19:08] <donniezazen> abhiram_rk: It may or may not need a user. But yes mysql will have one. | |
| [19:09] <chandankumar> dhritishikhar_, those others users are for performing and executing different processes. | |
| [19:10] <abhiram_rk> donniezazen: If that's the case why is my VLC or gedit not shown? Aren't those applications too? | |
| [19:10] <chandankumar> every process is associated with an user and an user has multiple process associated with it. | |
| [19:11] <chandankumar> try command top | |
| [19:11] <donniezazen> abhiram_rk: VLC or gedit run as your user. They aren't running any process in background. VLC gets quit as soon as you click quit. | |
| [19:11] <chandankumar> and press arrow keys, you can lots of users | |
| [19:11] <abhiram_rk> donniezazen: got it. | |
| [19:11] <Mactoc_> http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/ | |
| [19:12] <chandankumar> you can find lightdm user | |
| [19:12] <chandankumar> which is associated for running systemd command | |
| [19:13] <CuriousLearner> root | |
| [19:13] <silentSae> ! | |
| [19:13] <chandankumar> root is the super user and he has lots of process associated with it. | |
| [19:13] <chandankumar> next | |
| [19:13] <batul> titli please ask your question.. silentSae you are next. Get ready with your question. | |
| [19:13] <titli> does each user is related to different ports like mail, ftp etc? | |
| [19:14] <chandankumar> titli, good question | |
| [19:14] <chandankumar> an user is not associated with port. | |
| [19:15] <chandankumar> a service like ftp or httpd is associated with the ports | |
| [19:15] <chandankumar> next | |
| [19:15] <batul> silentSae please ask your question. | |
| [19:15] <silentSae> first line of top shows "1 user". Does that refer to the user that is using top? | |
| [19:15] <titli> chandankumar, ok. | |
| [19:16] <chandankumar> silentSae, yes | |
| [19:16] <chandankumar> next | |
| [19:16] <batul> No one is in queue. | |
| [19:16] <silentSae> chandankumar, I strangely don't see lightdm | |
| [19:16] <chandankumar> silentSae, it is running in my system | |
| [19:17] <chandankumar> silentSae, any other user you see in your system. | |
| [19:17] <silentSae> is it possible that it's not there as I'm using ubuntu? | |
| [19:17] <silentSae> yes I see root, rkkit and amir | |
| [19:17] <silentSae> <eof> | |
| [19:18] <titli> chandankumar, but I am watching that most of the users are related to some certain protocol . | |
| [19:18] <donniezazen> silentSae: lightdm is a login manager. It might be normal that it is not running or not showing up in top. | |
| [19:19] <chandankumar> silentSae, http://postimg.org/image/oos6hz37h/ | |
| [19:20] <chandankumar> titli, can you protocol? | |
| [19:20] <chandankumar> titli, *can you define protocol? | |
| [19:21] <chandankumar> silentSae, yes | |
| [19:21] <titli> chandankumar, yes protocols are like defined rules to execute processes. | |
| [19:22] <-- ramsan ([email protected]) has left this server (Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140608211622]). | |
| [19:22] <chandankumar> titli, so protocols are used by a service and service is dependent on a user. | |
| [19:22] <chandankumar> let us take an example of ftp. | |
| [19:23] <chandankumar> for FTP, we need a service that provides ftp should be running. | |
| [19:23] <chandankumar> and for transfer for data there must be a port associated with it | |
| [19:24] <chandankumar> and flow of data depends upon the protocol. | |
| [19:24] <Poornima_> sorry i joined very late due network issue can someone share me todays session discussion ? :( | |
| [19:25] <titli> chandankumar, ok so whenever an application provides services it needs a user. Now I get that. | |
| [19:25] <chandankumar> for a user who wants to transfer data he needs to used the ftp sevice which is associated with work , in order to execute it successfully we need to follow protocol. | |
| [19:25] <chandankumar> any questions till now? | |
| [19:26] <titli> chandankumar, no. It is clear. | |
| [19:26] <chandankumar> command to list all connected device ? | |
| [19:26] <donniezazen> Poornima_: http://fpaste.org/119526/95097514/ | |
| [19:26] <CuriousLearner> lsw | |
| [19:26] <CuriousLearner> chandankumar, ^^ | |
| [19:27] <iamviknesh> cat /proc/devices , not sure though :P | |
| [19:27] <donniezazen> lsusb for usb devices | |
| [19:27] <Poornima_> donniezazen, thanks alot ! | |
| [19:27] <chandankumar> iamviknesh, not such file or directory found | |
| [19:28] <chandankumar> sorry | |
| [19:28] <chandankumar> iamviknesh, yes | |
| [19:28] <chandankumar> all are right | |
| [19:28] <abhiram_rk> lsusb too? | |
| [19:28] <chandankumar> it is better to use lsusb | |
| [19:28] <iamviknesh> chandankumar: so , am i right ? | |
| [19:28] <chandankumar> yes | |
| [19:28] <abhiram_rk> +1 | |
| [19:29] <iamviknesh> but lsusb displays only usb port connected | |
| [19:29] <chandankumar> you all have studied file FHS? | |
| [19:29] <sivteck> yes | |
| [19:29] <chandankumar> ok | |
| [19:30] <abhiram_rk> ! | |
| [19:30] <chandankumar> next | |
| [19:30] <batul> abhiram_rk please ask your question. | |
| [19:30] <abhiram_rk> FHS as in Filesystem Hierarchy Standard? | |
| [19:30] <chandankumar> next question was command to kill a process. | |
| [19:30] <chandankumar> abhiram_rk, yes | |
| [19:30] <abhiram_rk> chandankumar: +1 | |
| [19:30] <chandankumar> can anyone provide the answer of my question? | |
| [19:30] <donniezazen> kill pidof($process) | |
| [19:31] <silentSae> kill pid | |
| [19:31] <abhiram_rk> kill -9 pid | |
| [19:31] <chandankumar> good | |
| [19:31] <iamviknesh> ps aux | grep <process_name> | kill -9 (or) killall -9 <process_name> | |
| [19:31] <chandankumar> there are two things. | |
| [19:32] <chandankumar> you can kill a process by using pid or its name. | |
| [19:32] <chandankumar> pkill is used to kill process by its name | |
| [19:32] <chandankumar> suppose you have opened multiple windows of firefox. | |
| [19:32] <chandankumar> you call kill easily by pkill firefox. | |
| [19:32] <donniezazen> iamviknesh: you might like pgrep <process_name> | |
| [19:33] <chandankumar> but suppose you have started a program and it is not terminating by pressing CTRL +C | |
| [19:33] <chandankumar> that time we can use kill command | |
| [19:33] <-- zishan ([email protected]) has left this server (Read error: Connection reset by peer). | |
| [19:34] <donniezazen> ! | |
| [19:34] <chandankumar> next | |
| [19:34] <batul> donniezazen please ask your question. | |
| [19:34] <iamviknesh> donniezazen: oh thanks :) that was awesome | |
| [19:34] <donniezazen> xkill comes pretty handy when killing gui programs | |
| [19:34] <chandankumar> donniezazen, never tried | |
| [19:35] <chandankumar> donniezazen, i have learned a new command | |
| [19:35] <chandankumar> xkill | |
| [19:35] <donniezazen> chandankumar: It's funny too it create a skull what you could left click on misbehaving program to kill. | |
| [19:36] <chandankumar> donniezazen, yes | |
| [19:36] <Poornima_> ! | |
| [19:36] <chandankumar> next | |
| [19:36] <batul> Poornima_ please ask your question. | |
| [19:37] <chandankumar> now we are going to learn some commands used by us daily. | |
| [19:37] <Poornima_> does xkill kill all the X sessions | |
| [19:37] <chandankumar> donniezazen, ^^ | |
| [19:37] <donniezazen> Poornima_: It kill whatever gui program you left-click on and not the X-session. | |
| [19:38] <donniezazen> Open a terminal type xkill | |
| [19:38] <donniezazen> it will show you a red skull (at least it does that on my KDE box) | |
| [19:38] <iamviknesh> xkill looks good :-D | |
| [19:38] <donniezazen> Then left-click on the same terminal | |
| [19:38] <Poornima_> like ctrl+alt + backspace does kills all the x and restarts the Xserver | |
| [19:39] <donniezazen> that teminal should be now killed. | |
| [19:39] <dhritishikhar_> donniezazen, it doesnot show any red skull. where? | |
| [19:39] <donniezazen> ctrl+alt+backspace? Does that even work now a days. | |
| [19:39] <-- Poornima_ ([email protected]) has left this server (Remote host closed the connection). | |
| [19:39] <donniezazen> dhritishikhar_: Your cursor turns into a skull. | |
| [19:39] <donniezazen> It might be different on different desktop environments. | |
| [19:40] <dhritishikhar_> donniezazen, it doesnot. Mine is just a simple "x". :( | |
| [19:40] <-- thejaman ([email protected]) has left this server (Read error: Connection reset by peer). | |
| [19:40] <dhritishikhar_> ok | |
| [19:40] <chandankumar> Now some home task: explain your committed script in your blog. | |
| [19:40] <rahulmishra> donniezazen: a "cross" for ubuntu i guess. :( | |
| [19:41] <iamviknesh> dhritishikhar in ubuntu its X | |
| [19:41] <chandankumar> and after explaining add your bitbucket hometask link below. | |
| [19:41] <dhritishikhar_> I am using fedora (cinnamon). | |
| [19:41] <chandankumar> lets try some more commands. | |
| [19:42] <umeshs> dhritishikhar does fedora comes with cinnamon preinstalled? | |
| [19:42] <Poornima_> donniezazen, yes to restart X server you can use ctrl+alt+ Backspace keys | |
| [19:42] <Poornima_> yup xkill is client so it is good command | |
| [19:43] <dhritishikhar_> Umeshs, Yes. You just need to choose the desktop environmnt. | |
| [19:43] <chandankumar> you can watch the last's user activity in your system. -- using last command | |
| [19:43] <umeshs> ok. Thanks. | |
| [19:43] <chandankumar> try it. | |
| [19:43] <donniezazen> http://imgur.com/LWq1sbY This is how it looks on KDE. | |
| [19:44] <Poornima_> chandankumar, where we are suppose to add the home task links ? | |
| [19:44] <donniezazen> ! | |
| [19:44] <dhritishikhar_> Poornima_, What do we use ctrl+alt+Backspace keys? When i do it, nothing happens. | |
| [19:44] <chandankumar> next | |
| [19:44] <batul> donniezazen please ask your question. | |
| [19:45] <chandankumar> dhritishikhar_, follow the rules. | |
| [19:45] <Poornima_> dhritishikhar_, which OS you are using | |
| [19:45] <donniezazen> I am not sure what I am seeing here "still logged in" or "still running". | |
| [19:45] <dhritishikhar_> chandankumar, sorry. | |
| [19:45] <chandankumar> right now you are logged in | |
| [19:45] <donniezazen> dhritishikhar_: I don | |
| [19:45] <dhritishikhar_> Poornima_, Fedora (cinnamon) | |
| [19:45] <chandankumar> donniezazen, try last <username> | |
| [19:46] <Poornima_> dhritishikhar_, pm ? | |
| [19:46] <chandankumar> if you have two users in your system | |
| [19:46] <chandankumar> or more than that, you can check their activity. | |
| [19:47] <donniezazen> ah okay it's a list of logged in users. | |
| [19:47] <chandankumar> donniezazen, log out and login through root | |
| [19:47] <chandankumar> and then try | |
| [19:47] <chandankumar> last <username> | |
| [19:48] <chandankumar> we can also find lists of all opened files | |
| [19:48] <silentSae> ! | |
| [19:48] <chandankumar> lsof | |
| [19:48] <chandankumar> next | |
| [19:48] <batul> silentSae please ask your question. | |
| [19:48] <silentSae> that's the output of 'last' on my system http://tinypic.com/r/wus7s4/8 | |
| [19:49] <silentSae> I'm unable to understand it even after reading the man page, please explain it. | |
| [19:49] <silentSae> <eof> | |
| [19:50] <chandankumar> silentSae, right now it is showing only when your system is rebooted. | |
| [19:50] <silentSae> chandankumar, why so? | |
| [19:50] <chandankumar> silentSae, login as a user and try last <current username> | |
| [19:51] <donniezazen> silentSae: If I do "last donnie | head" it prints something like "donnie pts/2 :0 Mon Jul 21 19:49 still logged in" which makes sense as I am still logged in. | |
| [19:51] <chandankumar> you will understand. | |
| [19:51] <silentSae> I'm logged in as amir | |
| [19:51] <umeshs> ! | |
| [19:52] <chandankumar> next | |
| [19:52] <batul> umeshs please ask your question. | |
| [19:52] <umeshs> Isn't it wrong that a user is able to see other user's login time for security? | |
| [19:52] <silentSae> donniezazen, I get wtmp begins Tue Jul 1 02:50:05 2014 on "last amir | head" | |
| [19:53] <chandankumar> only a root (super user) can see the activity of other's user. | |
| [19:53] <chandankumar> a normal user cannot. | |
| [19:54] <chandankumar> umeshs, try creating two normal accounts and do something | |
| [19:54] <chandankumar> and then check the output | |
| [19:54] <chandankumar> by logging as a root user. | |
| [19:55] <umeshs> Ok. | |
| [19:55] <chandankumar> You can check the a line description of a command | |
| [19:55] <chandankumar> whatis <command name> | |
| [19:55] <chandankumar> you can also find where a unix command exits using | |
| [19:55] <chandankumar> whereis <command> | |
| [19:56] <chandankumar> done? | |
| [19:56] <chandankumar> like | |
| [19:56] <chandankumar> try | |
| [19:56] <chandankumar> whatis ls | |
| [19:56] <silentSae> yes | |
| [19:56] <chandankumar> and | |
| [19:56] <magzter> got it | |
| [19:56] <chandankumar> whereis ls | |
| [19:56] <silentSae> ! | |
| [19:56] <chandankumar> next | |
| [19:56] <batul> silentSae please ask your question. | |
| [19:56] <donniezazen> done | |
| [19:56] <CuriousLearner> ! | |
| [19:57] <umeshs> done | |
| [19:57] <abhiram_rk> ! | |
| [19:57] <chandankumar> one question from you all , how to create nested directories? | |
| [19:58] <abhiram_rk> chandankumar: from or for? | |
| [19:58] <bnprk> mkdir -p | |
| [19:58] <chandankumar> good | |
| [19:58] <chandankumar> next | |
| [19:58] <batul> CuriousLearner please ask your question.. abhiram_rk you are next. Get ready with your question. | |
| [19:58] <CuriousLearner> for cd command, whatis shows "cd (1) - bash built-in commands, see bash(1)" rather than description like the ls command. Why so? | |
| [19:58] <silentSae> I tried logging in as testacc and saw the results of last which were very different but when I logged back in amir and did "last amir" I again got the same results which only show boots | |
| [19:58] <chandankumar> silentSae, are you on fedora or ubuntu? | |
| [19:58] <silentSae> can't understand it still, please help me with it. <eof> | |
| [19:58] * abhiram_rk has the same question as CuriousLearner | |
| [19:58] <silentSae> ubuntu | |
| [19:59] <-- rahulmishra ([email protected]) has left this server (Read error: Connection reset by peer). | |
| [19:59] <chandankumar> silentSae, will check after the class for ubuntu. | |
| [19:59] <chandankumar> next | |
| [19:59] <batul> abhiram_rk please ask your question. | |
| [20:00] <abhiram_rk> whatis on cd gives nothing appropriate on Ubuntu | |
| [20:00] <stguin> abhiram_rk: +1 | |
| [20:00] <CuriousLearner> chandankumar, answer to my question? | |
| [20:01] <chandankumar> CuriousLearner, sorry missed | |
| [20:01] <CuriousLearner> chandankumar, for cd command, whatis shows "cd (1) - bash built-in commands, see bash(1)" rather than description like the ls command. Why so? | |
| [20:02] <chandankumar> CuriousLearner, whatis displays manual pages description of a command | |
| [20:03] <chandankumar> CuriousLearner, sometimes a command have more than one manual pages | |
| [20:03] <chandankumar> so during that time it shows all of them. | |
| [20:03] <chandankumar> next | |
| [20:03] <batul> No one is in queue. | |
| [20:03] <CuriousLearner> ok, thanks :) | |
| [20:04] <chandankumar> now create a nested directory | |
| [20:04] <iamviknesh> abhiram_rk: seems like a bug https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/1097911 | |
| [20:04] <abhiram_rk> iamviknesh: I see. Okay. | |
| [20:04] <chandankumar> mkdir -p /my/nested/directory | |
| [20:05] <chandankumar> *mkdir -p my/nested/directory | |
| [20:05] <chandankumar> and after that run tree my/ | |
| [20:05] <-- stguin (0e8bdd12@gateway/web/cgi-irc/kiwiirc.com/ip.14.139.221.18) has left this server (Excess Flood). | |
| [20:06] <chandankumar> first will create a nested directory and other will show tree structure of a directory | |
| [20:06] <chandankumar> done? | |
| [20:06] <CuriousLearner> yup | |
| [20:06] <abhiram_rk> installing tree | |
| [20:06] <iamviknesh> yeah | |
| [20:06] <chandankumar> abhiram_rk, ok | |
| [20:06] <titli> yes. | |
| [20:06] <chandankumar> good | |
| [20:06] <silentSae> yes | |
| [20:06] <Prash_542> yes | |
| [20:06] <surabhi> done | |
| [20:06] <chandankumar> Now we are going to compress that directory in terminal | |
| [20:07] <Sparking> yes | |
| [20:07] <magzter> yes | |
| [20:07] <donniezazen> done | |
| [20:08] <chandankumar> create any directory named test | |
| [20:09] <chandankumar> and command the directory using | |
| [20:09] <chandankumar> tar -cvf <directory to compress> <name of the tar file>.tar.gz | |
| [20:10] <stguin> can you please repeat the steps from tree /my | |
| [20:10] <chandankumar> sorry | |
| [20:10] <CuriousLearner> error | |
| [20:10] <stguin> actually i was disconnected from the channel | |
| [20:11] <chandankumar> tar -cvf <name of the tar file>.tar.gz <directory to compress> | |
| [20:11] <CuriousLearner> Done | |
| [20:11] <chandankumar> tree command is used to see the tree structure view of a directory | |
| [20:11] <chandankumar> and we can extract that directory using | |
| [20:12] <donniezazen> ! | |
| [20:12] <sivteck> chandankumar: i think it is tar -czvf to compress | |
| [20:12] <sivteck> for gunzip | |
| [20:13] <chandankumar> tar -xvf <directory name> <file to extract> | |
| [20:13] <sivteck> tar -cvf just creates an archive | |
| [20:13] <chandankumar> sivteck, yes | |
| [20:14] <donniezazen> sivteck: works fine without -z | |
| [20:14] <chandankumar> sivteck, there are lots of tool to compress in different format. | |
| [20:14] <sivteck> donniezazen: but not compressed | |
| [20:14] <lixxz> donniezazne, it will not compress | |
| [20:14] <chandankumar> next | |
| [20:14] <batul> donniezazen please ask your question. | |
| [20:15] <chandankumar> sivteck, try 7zip | |
| [20:15] <donniezazen> Sorry. No question. | |
| [20:15] <chandankumar> last command of today's class | |
| [20:15] <sivteck> chandankumar: you told to use tar -cvf to compress the directory. ;o | |
| [20:15] <iamviknesh> donniezazen: it just creates a archive , wont compress | |
| [20:15] <sivteck> chandankumar: ok | |
| [20:16] <chandankumar> tail will print first 10 lines of a file | |
| [20:16] <chandankumar> try tail /etc/passwd | |
| [20:16] <silentSae> ! | |
| [20:16] <chandankumar> next | |
| [20:16] <batul> silentSae please ask your question. | |
| [20:16] <silentSae> http://pastebin.com/JWSe6hhk | |
| [20:17] <silentSae> I get this error trying to create an archive | |
| [20:17] <chandankumar> silentSae, the command is tar -cvf <name of the tar file>.tar.gz <directory to compress> | |
| [20:17] <sivteck> silentSae: flip the args | |
| [20:18] <silentSae> sorry | |
| [20:18] <chandankumar> you can use tailf <log file name > to see contents of a log file in real time | |
| [20:18] <chandankumar> i hope everybody have got the homework. | |
| [20:18] <azharh> chandankumar, first or last 10 lines (with tail) ? | |
| [20:19] <chandankumar> azharh, yes | |
| [20:19] <lixxz> azharh, last 10 | |
| [20:19] <lixxz> head is for first 10 | |
| [20:19] <abhiram_rk> last 10 | |
| [20:19] <-- stguin (0e8bdd12@gateway/web/cgi-irc/kiwiirc.com/ip.14.139.221.18) has left this server (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client). | |
| [20:19] <chandankumar> azharh, first 10 lines | |
| [20:19] <silentSae> chandankumar, please provide it to me. I had to attend to some emergency the other day. | |
| [20:20] <chandankumar> sorry tail is for last 10 lines | |
| [20:20] <chandankumar> lixxz, thanks | |
| [20:20] <lixxz> chandankumar, :) | |
| [20:21] <chandankumar> Home work: Write a blog and explain about your committed scripted in bitbucket form the last home work. | |
| [20:21] <chandankumar> Roll Call | |
| [20:21] <bnprk> Binay Pareek | |
| [20:21] <CuriousLearner> Sanyam Khurana | |
| [20:21] <iamviknesh> Vikneshwar | |
| [20:21] <lixxz> Yasharth | |
| [20:21] <eeshangarg> Eeshan Garg | |
| [20:21] <azharh> Azhar Hussain | |
| [20:21] <surabhi> Surabhi | |
| [20:21] <silentSae> amir | |
| [20:21] <abhiram_rk> Abhiram Ravikumar | |
| [20:21] <Sparking> Bhargav Patel | |
| [20:21] <Poornima_> Poornima Kshirsagar | |
| [20:21] <heena> Heena Kaushar | |
| [20:21] <sivteck> Sivaram Balakrishnan | |
| [20:21] <Prash_542> Prashant Surya | |
| [20:21] <kanika04> kanika narang | |
| [20:21] <shilpi> shilpi shukla | |
| [20:22] <magzter> Mahendra Yadav | |
| [20:22] <harsha> Harsha | |
| [20:22] <chandankumar> please add your script bitbucket link in your blog. | |
| [20:22] <thejaman> Thejazeto | |
| [20:22] <chandankumar> we can check the blogs on planet.dgplug.org/summer <whose blogs are added there> | |
| [20:22] <chandankumar> <------ SESSION ENDED-------> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment