title
Vim for Editing Files in Linux

description
Info Level: Beginner Presenter: Eli the Computer Guy Date Created: September 14, 2010 Length of Class: 35 Minutes Tracks Linux Prerequisites Introduction to Linux Installing Linux Basic Linux Tasks Purpose of Class This class teaches students how to edit configuration files in Linux using the text editor VIM. Topics Covered Starting VIM Editing Files Searching in Files Opening, Saving and Exiting Files Class Notes Introduction No .txt -- no file association Starting VIM Sudo vim XXX (opens a file, or creates file) Sudo -- sometimes you need, sometimes not... if you use it it will always work... To change ownership of a file (Sometimes needed to edit .ini and configuration files)- Sudo chown user file Editing and Navigating a = insert, esc = exit insert :/ = find (use wildcards) :/? = Find backward n = next Exiting and Saving :q = quit :q! = quit no save :wq = save and quit :e = open file :w = save as Final Thoughts... Very complicated... Lots of options... these are good enough to start with.... Resources Vim Website: http://www.vim.org/ Vim Manual: http://vimdoc.sourceforge.net/vimum.html

detail
{'title': 'Vim for Editing Files in Linux', 'heatmap': [{'end': 703.596, 'start': 638.532, 'weight': 0.732}, {'end': 753.628, 'start': 724.691, 'weight': 0.889}], 'summary': "'vim for editing files in linux' covers the importance of editing configuration files in linux systems, linux configuration editors like vim, basics of file editing and configuration in vim, linux command line operations, searching and navigating in linux files, and vim file editing basics for efficient file customization and software functionality.", 'chapters': [{'end': 48.745, 'segs': [{'end': 48.745, 'src': 'embed', 'start': 6.257, 'weight': 0, 'content': [{'end': 16.403, 'text': "Hello again, as you know I am Eli the Computer Guy over here for Everyman IT and today's class is Vim for File Editing, of course within Linux.", 'start': 6.257, 'duration': 10.146}, {'end': 23.647, 'text': 'So when you are dealing with Linux systems, editing configuration files is a very, very important thing.', 'start': 16.563, 'duration': 7.084}, {'end': 28.87, 'text': 'If you want a piece of software to do something specific, if you want to customize something,', 'start': 24.147, 'duration': 4.723}, {'end': 39.698, 'text': "you almost always have to open up a little configuration file and actually go in and edit that configuration file whether it's php.ini,", 'start': 29.17, 'duration': 10.528}, {'end': 47.564, 'text': "whether it's a password file, what we'll talk about in another class with user accounts and passwords and all that, whether it's the.", 'start': 39.698, 'duration': 7.866}, {'end': 48.745, 'text': 'htaccess file.', 'start': 47.564, 'duration': 1.181}], 'summary': 'Eli the computer guy teaches vim for file editing within linux, emphasizing the importance of editing configuration files in linux systems.', 'duration': 42.488, 'max_score': 6.257, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE6257.jpg'}], 'start': 6.257, 'title': 'Vim for linux file editing', 'summary': 'Introduces the importance of editing configuration files in linux systems, emphasizing the need for file customization and specific software functionality, with examples including php.ini and .htaccess files.', 'chapters': [{'end': 48.745, 'start': 6.257, 'title': 'Vim for linux file editing', 'summary': 'Introduces the importance of editing configuration files in linux systems, emphasizing the need for file customization and specific software functionality, with examples including php.ini and .htaccess files.', 'duration': 42.488, 'highlights': ['The importance of editing configuration files in Linux systems is highlighted, emphasizing its relevance for customizing software and achieving specific functionality.', 'Examples of configuration files such as php.ini and .htaccess are mentioned, showcasing their significance in Linux file editing.', 'The instructor, Eli the Computer Guy, introduces the Vim for File Editing class within the context of Linux, emphasizing its relevance for efficient file editing and system customization.']}], 'duration': 42.488, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE6257.jpg', 'highlights': ['The importance of editing configuration files in Linux systems is highlighted, emphasizing its relevance for customizing software and achieving specific functionality.', 'Examples of configuration files such as php.ini and .htaccess are mentioned, showcasing their significance in Linux file editing.', 'The instructor, Eli the Computer Guy, introduces the Vim for File Editing class within the context of Linux, emphasizing its relevance for efficient file editing and system customization.']}, {'end': 253.441, 'segs': [{'end': 99.243, 'src': 'embed', 'start': 49.205, 'weight': 0, 'content': [{'end': 58.993, 'text': 'Basically, all the configurations in a Linux system are held within simple text files that you have to edit in order to make the system do different.', 'start': 49.205, 'duration': 9.788}, {'end': 67.675, 'text': 'things Now, there are a lot of different editors out there that many people use to edit configuration files within Linux.', 'start': 59.053, 'duration': 8.622}, {'end': 71.977, 'text': 'We are going to be talking about them today, VIM.', 'start': 68.176, 'duration': 3.801}, {'end': 78.198, 'text': "There's also V, there's also just, there's a ton of different editors that you can use.", 'start': 72.277, 'duration': 5.921}, {'end': 84.28, 'text': "With editors in Linux, it's kind of like antivirus software in the Windows world.", 'start': 79.519, 'duration': 4.761}, {'end': 87.061, 'text': 'Everybody has their own opinion.', 'start': 84.66, 'duration': 2.401}, {'end': 90.301, 'text': 'Everybody believes that their opinion is absolutely correct.', 'start': 87.501, 'duration': 2.8}, {'end': 95.422, 'text': 'And everybody believes that anybody who uses something else is just a retard.', 'start': 90.361, 'duration': 5.061}, {'end': 99.243, 'text': 'So just understand that with the Linux world.', 'start': 95.582, 'duration': 3.661}], 'summary': 'Linux configuration files are edited using various editors like vim, v, and others, with strong opinions on preferences.', 'duration': 50.038, 'max_score': 49.205, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE49205.jpg'}, {'end': 145.558, 'src': 'embed', 'start': 120.828, 'weight': 2, 'content': [{'end': 130.17, 'text': 'Now, one of the big things that you have to understand since I understand most of you are coming from the Windows world is that in Linux there are no file associations.', 'start': 120.828, 'duration': 9.342}, {'end': 138.234, 'text': 'What I mean by this is in Windows you have the file name and then there is always a period and then there is something called a file association.', 'start': 130.651, 'duration': 7.583}, {'end': 143.016, 'text': "So it'll be like word document.txt or .", 'start': 138.274, 'duration': 4.742}, {'end': 144.057, 'text': 'doc or .', 'start': 143.016, 'duration': 1.041}, {'end': 145.558, 'text': 'pdf, etc.', 'start': 144.057, 'duration': 1.501}], 'summary': 'In linux, there are no file associations like in windows.', 'duration': 24.73, 'max_score': 120.828, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE120828.jpg'}, {'end': 201.34, 'src': 'embed', 'start': 170.336, 'weight': 4, 'content': [{'end': 172.984, 'text': "And now you may be asking how do you know if it's a text file??", 'start': 170.336, 'duration': 2.648}, {'end': 174.228, 'text': "How do you know if it's a document file??", 'start': 173.024, 'duration': 1.204}, {'end': 175.953, 'text': "How do you know if it's a picture file?", 'start': 174.268, 'duration': 1.685}, {'end': 183.746, 'text': "Now, that's a weird thing in Linux, is they expect you, as a system administrator, to know what that file is?", 'start': 176.721, 'duration': 7.025}, {'end': 190.051, 'text': "So if you're going in to modify text files, understand that they're not going to have .", 'start': 184.087, 'duration': 5.964}, {'end': 191.152, 'text': 'txt at the end of it.', 'start': 190.051, 'duration': 1.101}, {'end': 192.653, 'text': 'It will simply be the file name.', 'start': 191.272, 'duration': 1.381}, {'end': 201.34, 'text': 'So you will have to understand what file it is you need to modify and then you just use the Vim piece of software to modify the file.', 'start': 192.673, 'duration': 8.667}], 'summary': "In linux, file types don't rely on extensions. system admins need to recognize file types for modifications.", 'duration': 31.004, 'max_score': 170.336, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE170336.jpg'}, {'end': 235.326, 'src': 'embed', 'start': 206.884, 'weight': 3, 'content': [{'end': 216.753, 'text': 'The big thing with Vim for file editing is, again, everybody who uses Linux, they all like whatever editor they use.', 'start': 206.884, 'duration': 9.869}, {'end': 220.576, 'text': "We are using Vim just because it's what I'm comfortable with, what I'm comfortable teaching you with.", 'start': 216.913, 'duration': 3.663}, {'end': 228.582, 'text': 'All the configuration files in Linux have to be edited using an editor.', 'start': 221.738, 'duration': 6.844}, {'end': 235.326, 'text': "So if you don't understand how to edit documents or text in Linux, you're not going to get anywhere.", 'start': 228.642, 'duration': 6.684}], 'summary': 'Vim is crucial for linux editing; understanding it is essential for progress.', 'duration': 28.442, 'max_score': 206.884, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE206884.jpg'}], 'start': 49.205, 'title': 'Linux configuration and file associations', 'summary': 'Discusses linux configuration editors including vim, and emphasizes the need for system administrators to understand file associations in linux for efficient file editing.', 'chapters': [{'end': 120.388, 'start': 49.205, 'title': 'Linux configuration editors: vim and others', 'summary': 'Covers the various editors used to edit configuration files in linux, with a focus on vim, highlighting the diversity of available editors and the subjective nature of preferences in the linux community.', 'duration': 71.183, 'highlights': ['Editors in Linux are diverse and subjective, with individuals having their own strong opinions on the best software to use.', 'Configuration files in a Linux system are held within simple text files and can be edited using various editors such as VIM.', 'The subjective nature of preferences in the Linux community is likened to the diversity of antivirus software in the Windows world.']}, {'end': 253.441, 'start': 120.828, 'title': 'Understanding file associations in linux', 'summary': 'Explains the absence of file associations in linux, emphasizing the need for system administrators to identify file types without file extensions, and the importance of using editors like vim for file editing in linux.', 'duration': 132.613, 'highlights': ['The absence of file associations in Linux requires system administrators to identify file types without file extensions, emphasizing the need for understanding file types and using an editor like Vim for file editing.', 'In Linux, configuration files have to be edited using an editor, highlighting the importance of understanding how to edit documents or text in Linux for system administrators.', 'Contrasting the Windows world, Linux lacks file associations, which means files are opened based on their names without any specified file association, requiring the user to understand the file type and use appropriate editing software.', 'System administrators in Linux need to be aware of the file types they are working with as there are no file extensions to indicate the file type, underlining the responsibility of the user to know the type of file being modified.']}], 'duration': 204.236, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE49205.jpg', 'highlights': ['The subjective nature of preferences in the Linux community is likened to the diversity of antivirus software in the Windows world.', 'Configuration files in a Linux system are held within simple text files and can be edited using various editors such as VIM.', 'Contrasting the Windows world, Linux lacks file associations, which means files are opened based on their names without any specified file association, requiring the user to understand the file type and use appropriate editing software.', 'The absence of file associations in Linux requires system administrators to identify file types without file extensions, emphasizing the need for understanding file types and using an editor like Vim for file editing.', 'System administrators in Linux need to be aware of the file types they are working with as there are no file extensions to indicate the file type, underlining the responsibility of the user to know the type of file being modified.', 'Editors in Linux are diverse and subjective, with individuals having their own strong opinions on the best software to use.']}, {'end': 765.859, 'segs': [{'end': 392.629, 'src': 'embed', 'start': 362.533, 'weight': 0, 'content': [{'end': 366.538, 'text': 'So opening files and creating files uses the exact same command.', 'start': 362.533, 'duration': 4.005}, {'end': 368.901, 'text': 'sudo them file name.', 'start': 367.018, 'duration': 1.883}, {'end': 375.126, 'text': 'Now for some of you guys that have experience with other versions of Linux.', 'start': 369.401, 'duration': 5.725}, {'end': 381.532, 'text': "there's some of you guys you may notice that you can run the vim command without sudo.", 'start': 375.126, 'duration': 6.406}, {'end': 392.629, 'text': "Here's the problem, at least in the Ubuntu world, if you try to run Vim without sudo, sometimes it'll work right and sometimes it won't.", 'start': 383.024, 'duration': 9.605}], 'summary': 'In ubuntu, running vim without sudo can be inconsistent.', 'duration': 30.096, 'max_score': 362.533, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE362533.jpg'}, {'end': 463.129, 'src': 'embed', 'start': 435.27, 'weight': 1, 'content': [{'end': 440.996, 'text': 'So even with vim, even with file editing, I would suggest you do sudo vim and the file name.', 'start': 435.27, 'duration': 5.726}, {'end': 450.646, 'text': "Now, the final thing that we're going to have to talk about is since we're using Vim to edit configuration files,", 'start': 441.436, 'duration': 9.21}, {'end': 453.647, 'text': "we're not using Vim to write a research paper.", 'start': 450.646, 'duration': 3.001}, {'end': 456.888, 'text': "We're not using Vim to write the next great American novel.", 'start': 453.707, 'duration': 3.181}, {'end': 461.649, 'text': 'We are using Vim to edit the PHP.ini files or the .', 'start': 457.308, 'duration': 4.341}, {'end': 463.129, 'text': 'htaccess files.', 'start': 461.649, 'duration': 1.48}], 'summary': 'Use sudo vim for file editing, vim is for editing configuration files, not for writing papers or novels.', 'duration': 27.859, 'max_score': 435.27, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE435270.jpg'}, {'end': 703.596, 'src': 'heatmap', 'start': 638.532, 'weight': 0.732, 'content': [{'end': 647.015, 'text': "Now, if I am trying to create a file, like I say, all you have to do is type in sudo vim and whatever file name you'd like to create.", 'start': 638.532, 'duration': 8.483}, {'end': 651.436, 'text': "So sudo vim, and then I'll just call it new file.", 'start': 647.095, 'duration': 4.341}, {'end': 656.056, 'text': 'And now we are inside Vim.', 'start': 653.795, 'duration': 2.261}, {'end': 659.858, 'text': 'So this is inside Vim, the text editor.', 'start': 656.116, 'duration': 3.742}, {'end': 661.759, 'text': 'And this is a completely new file.', 'start': 660.058, 'duration': 1.701}, {'end': 667.401, 'text': 'So I can start typing, hello, my name is Eli.', 'start': 661.839, 'duration': 5.562}, {'end': 671.223, 'text': 'So I am typing this inside the file.', 'start': 668.622, 'duration': 2.601}, {'end': 673.964, 'text': "You don't have to understand how to insert stuff right now.", 'start': 671.983, 'duration': 1.981}, {'end': 675.425, 'text': "We're going to teach that a little bit later.", 'start': 674.044, 'duration': 1.381}, {'end': 677.106, 'text': 'So that is how you create a new file.', 'start': 675.505, 'duration': 1.601}, {'end': 681.728, 'text': 'And I save and quit out of this.', 'start': 677.966, 'duration': 3.762}, {'end': 685.245, 'text': 'and that new file exists.', 'start': 683.584, 'duration': 1.661}, {'end': 696.171, 'text': 'So now, in order to reopen that new file, so before new file, the file new file did not exist, I created new file by doing sudo vim new file.', 'start': 685.805, 'duration': 10.366}, {'end': 703.596, 'text': 'So now I can reopen new file by using, again, sudo, sudo space vim.', 'start': 696.612, 'duration': 6.984}], 'summary': 'Creating and editing a new file using sudo vim in linux.', 'duration': 65.064, 'max_score': 638.532, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE638532.jpg'}, {'end': 753.628, 'src': 'heatmap', 'start': 724.691, 'weight': 0.889, 'content': [{'end': 726.332, 'text': "And so we'll quit out of this.", 'start': 724.691, 'duration': 1.641}, {'end': 733.236, 'text': 'To show you how this works on normal configuration files that you may be dealing with, we can go to sudo vim.', 'start': 726.873, 'duration': 6.363}, {'end': 740.904, 'text': 'The password file is a file that deals with all the user accounts on your system.', 'start': 736.482, 'duration': 4.422}, {'end': 752.708, 'text': "And so, if we open it up, this here actually shows you all your users' accounts right now root, bin, sys, eli, what the common name is,", 'start': 741.844, 'duration': 10.864}, {'end': 753.628, 'text': 'root path and all that.', 'start': 752.708, 'duration': 0.92}], 'summary': 'Demonstrating how to access and view user accounts in the password file using sudo vim.', 'duration': 28.937, 'max_score': 724.691, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE724691.jpg'}], 'start': 253.821, 'title': 'Using vim in linux', 'summary': "Covers basics of file editing and configuration in vim, emphasizing 'sudo' command usage, and file ownership changes in ubuntu linux.", 'chapters': [{'end': 435.25, 'start': 253.821, 'title': 'Vim for file editing', 'summary': "Covers the basics of opening and creating files using vim, emphasizing the use of 'sudo' command for proper file handling in ubuntu linux.", 'duration': 181.429, 'highlights': ["Using 'sudo vim' followed by the file name opens a file in Vim, ensuring proper access and editing capabilities, essential for Ubuntu Linux.", "Creating a new file using Vim is also achieved by 'sudo vim' followed by the new file name, streamlining the process for both opening and creating files.", "Running Vim without 'sudo' in Ubuntu Linux can lead to inconsistencies in file editing capabilities, emphasizing the necessity of 'sudo' for proper file handling."]}, {'end': 765.859, 'start': 435.27, 'title': 'Using vim for linux configuration', 'summary': 'Demonstrates using vim to edit configuration files in linux, highlighting the importance of using sudo for file editing, changing ownership of configuration files, and creating and opening files with sudo vim.', 'duration': 330.589, 'highlights': ['Using sudo for file editing is crucial when dealing with root-owned configuration files, such as PHP.ini and .htaccess files. Emphasizes the importance of using sudo for file editing, especially when dealing with root-owned configuration files like PHP.ini and .htaccess files.', "Changing ownership of configuration files using 'sudo chown' is essential to avoid permission issues and enable editing. Stresses the significance of changing ownership of configuration files using 'sudo chown' to avoid permission issues and enable editing.", "Creating and opening files with 'sudo vim' is demonstrated, showcasing the process of creating and reopening files using sudo for file management. Demonstrates the process of creating and reopening files using 'sudo vim' for file management, emphasizing the use of sudo for these operations."]}], 'duration': 512.038, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE253821.jpg', 'highlights': ["Using 'sudo vim' followed by the file name opens a file in Vim, ensuring proper access and editing capabilities, essential for Ubuntu Linux.", 'Using sudo for file editing is crucial when dealing with root-owned configuration files, such as PHP.ini and .htaccess files.', "Creating and opening files with 'sudo vim' is demonstrated, showcasing the process of creating and reopening files using sudo for file management."]}, {'end': 1016.671, 'segs': [{'end': 869.772, 'src': 'embed', 'start': 789.004, 'weight': 0, 'content': [{'end': 794.808, 'text': 'In order to clear the screen, you just type in C-L-E-A-R when you want to get rid of all that other garbage.', 'start': 789.004, 'duration': 5.804}, {'end': 796.309, 'text': 'So we clear the screen.', 'start': 795.589, 'duration': 0.72}, {'end': 799.552, 'text': "Now, let's change the ownership of something.", 'start': 796.51, 'duration': 3.042}, {'end': 804.976, 'text': "So right now, let's say I did not own the file, new file.", 'start': 799.632, 'duration': 5.344}, {'end': 807.638, 'text': "Let's say that was a configuration file.", 'start': 805.016, 'duration': 2.622}, {'end': 811, 'text': "I would do PHP.ini, but it's not installed on the system.", 'start': 807.978, 'duration': 3.022}, {'end': 815.704, 'text': 'So in order to change the ownership of a file, all you do is you do sudo.', 'start': 811.301, 'duration': 4.403}, {'end': 822.443, 'text': 'change owner, C-H-O-W-N.', 'start': 818.962, 'duration': 3.481}, {'end': 825.665, 'text': 'Then you say who you want to change the ownership to.', 'start': 823.264, 'duration': 2.401}, {'end': 828.286, 'text': "So let's say with new file, I'm actually going to change it to root.", 'start': 825.765, 'duration': 2.521}, {'end': 829.426, 'text': 'So R-O-T.', 'start': 828.446, 'duration': 0.98}, {'end': 834.969, 'text': "So I'm going to make root the owner of new file, space, and then the file name, new file.", 'start': 829.446, 'duration': 5.523}, {'end': 839.591, 'text': 'And now the owner is root.', 'start': 836.91, 'duration': 2.681}, {'end': 841.812, 'text': 'New file is now owned by root.', 'start': 839.891, 'duration': 1.921}, {'end': 842.512, 'text': "It's that simple.", 'start': 841.892, 'duration': 0.62}, {'end': 846.754, 'text': 'So if I want to change it back to myself, pseudos, okay, Eli.', 'start': 842.572, 'duration': 4.182}, {'end': 848.633, 'text': 'New file.', 'start': 848.072, 'duration': 0.561}, {'end': 851.74, 'text': 'And now I am back to being owner.', 'start': 850.177, 'duration': 1.563}, {'end': 856.351, 'text': "Like I say, this really, like mostly the text files, it doesn't matter.", 'start': 852.101, 'duration': 4.25}, {'end': 862.809, 'text': "What's going to matter is once you start installing servers, like I say, these configuration files, .", 'start': 856.806, 'duration': 6.003}, {'end': 869.772, 'text': 'htaccess files, php.ini files, conf files, those many times in the Ubuntu world.', 'start': 862.809, 'duration': 6.963}], 'summary': "Demonstration of changing file ownership using 'chown' and 'sudo' commands.", 'duration': 80.768, 'max_score': 789.004, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE789004.jpg'}, {'end': 996.887, 'src': 'embed', 'start': 945.468, 'weight': 2, 'content': [{'end': 950.971, 'text': 'So in order to enter the insert mode in Vim, you simply type the letter A.', 'start': 945.468, 'duration': 5.503}, {'end': 956.556, 'text': 'So you type in A and that will now put you in the insert mode.', 'start': 952.412, 'duration': 4.144}, {'end': 960.919, 'text': 'You can now use the arrow keys to navigate around to wherever you need to edit.', 'start': 956.856, 'duration': 4.063}, {'end': 962.721, 'text': 'You can backspace and delete.', 'start': 961.26, 'duration': 1.461}, {'end': 965.523, 'text': 'You can add new words, whatever.', 'start': 963.101, 'duration': 2.422}, {'end': 969.086, 'text': 'But the first thing that you have to do is type the letter A.', 'start': 965.804, 'duration': 3.282}, {'end': 971.028, 'text': 'That puts you into the insert mode.', 'start': 969.086, 'duration': 1.942}, {'end': 979.575, 'text': "Now, when you're done making your modifications to the file, all you do to get out of the insert mode is hit the escape key.", 'start': 971.609, 'duration': 7.966}, {'end': 985.655, 'text': 'So A gets you into insert mode, escape key gets you out of insert mode.', 'start': 980.362, 'duration': 5.293}, {'end': 987.765, 'text': 'really simple.', 'start': 987.065, 'duration': 0.7}, {'end': 993.126, 'text': 'Again, with Linux, all this stuff is really simple if you know what to type in.', 'start': 988.285, 'duration': 4.841}, {'end': 996.887, 'text': "If you don't know what to type in, it's just a horrible, horrible, insane mess.", 'start': 993.346, 'duration': 3.541}], 'summary': 'To enter insert mode in vim, type a. use arrow keys to navigate and hit escape to exit insert mode.', 'duration': 51.419, 'max_score': 945.468, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE945468.jpg'}], 'start': 765.859, 'title': 'Linux command line and vim editing in ubuntu', 'summary': 'Covers basic linux command line operations, such as clearing the screen and changing file ownership using sudo and chown. it also discusses vim editing and file ownership in ubuntu, emphasizing the simplicity of tasks if the correct commands are known.', 'chapters': [{'end': 841.812, 'start': 765.859, 'title': 'Linux command line operations', 'summary': "Demonstrates basic command line operations on linux, including clearing the screen and changing file ownership using sudo and chown, resulting in the 'new file' being owned by 'root'.", 'duration': 75.953, 'highlights': ["Changing file ownership using sudo and chown, resulting in 'new file' being owned by 'root'.", "Clearing the screen by typing 'C-L-E-A-R' command."]}, {'end': 1016.671, 'start': 841.892, 'title': 'Vim editing and file ownership in ubuntu', 'summary': 'Discusses changing file ownership to edit configuration files in ubuntu, explaining the process and importance of entering insert mode in vim, and emphasizing the simplicity of these tasks in linux if the correct commands are known.', 'duration': 174.779, 'highlights': ['Changing file ownership allows for easier editing of configuration files in Ubuntu, simplifying the process for server management. The chapter explains the importance of changing file ownership to edit configuration files in Ubuntu, such as .htaccess, php.ini, and conf files, making server management tasks simpler.', "Entering insert mode in Vim is crucial for modifying files, requiring the 'A' key to enter and the escape key to exit, making file editing straightforward. The chapter emphasizes the significance of entering insert mode in Vim by typing the letter 'A' to begin editing and using the escape key to exit, simplifying the file modification process.", 'The simplicity of file management and editing in Linux is highlighted, with the caveat that knowledge of commands is essential for successful execution. The chapter underscores the simplicity of file management and editing in Linux, provided the user is familiar with the required commands, emphasizing the straightforward nature of these tasks.']}], 'duration': 250.812, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE765859.jpg', 'highlights': ["Changing file ownership using sudo and chown, resulting in 'new file' being owned by 'root'.", "Clearing the screen by typing 'C-L-E-A-R' command.", "Entering insert mode in Vim is crucial for modifying files, requiring the 'A' key to enter and the escape key to exit, making file editing straightforward.", 'The chapter explains the importance of changing file ownership to edit configuration files in Ubuntu, such as .htaccess, php.ini, and conf files, making server management tasks simpler.', 'The simplicity of file management and editing in Linux is highlighted, with the caveat that knowledge of commands is essential for successful execution.']}, {'end': 1261.705, 'segs': [{'end': 1083.403, 'src': 'embed', 'start': 1058.154, 'weight': 0, 'content': [{'end': 1069.499, 'text': "But now what this does is it looks from the place that you're at all the way through the rest of the document to see if this word shows up.", 'start': 1058.154, 'duration': 11.345}, {'end': 1071.06, 'text': 'so it does max show up.', 'start': 1069.499, 'duration': 1.561}, {'end': 1078.722, 'text': 'Now, the important thing with searching is that you can put in wildcard characters and, as I say, Linux is a bit quirky.', 'start': 1071.54, 'duration': 7.182}, {'end': 1083.403, 'text': "I'm horrible with a keyboard, so one of the things I always do is whatever I'm looking for.", 'start': 1078.722, 'duration': 4.681}], 'summary': 'Search function looks for word throughout document, allows wildcard characters in linux.', 'duration': 25.249, 'max_score': 1058.154, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1058154.jpg'}, {'end': 1150.86, 'src': 'embed', 'start': 1108.795, 'weight': 1, 'content': [{'end': 1115.162, 'text': "So what I would say is you use the wildcard, you do star whatever it is you're looking for, star.", 'start': 1108.795, 'duration': 6.367}, {'end': 1119.213, 'text': "And that will make sure that whatever it is you're looking for will show up.", 'start': 1115.463, 'duration': 3.75}, {'end': 1124.988, 'text': 'Now, colon, forward slash, will search down the file.', 'start': 1119.774, 'duration': 5.214}, {'end': 1130.17, 'text': "If you're trying to search up the file, let's say you've gone all the way to the end of the file and you're like, I don't know where it is.", 'start': 1125.068, 'duration': 5.102}, {'end': 1136.893, 'text': "What you do is you do colon, forward slash, question mark, space, and then what you're looking for.", 'start': 1130.671, 'duration': 6.222}, {'end': 1139.875, 'text': 'This is what will search up the file.', 'start': 1136.913, 'duration': 2.962}, {'end': 1145.197, 'text': "So if you're at the top of the file, you do colon, forward slash, and that searches down the file.", 'start': 1139.955, 'duration': 5.242}, {'end': 1150.86, 'text': "If you're at the bottom of the file, colon, forward slash, question mark, and that goes up the file.", 'start': 1145.337, 'duration': 5.523}], 'summary': 'Using wildcard (*) and colon (/) for efficient file search and navigation.', 'duration': 42.065, 'max_score': 1108.795, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1108795.jpg'}, {'end': 1202.601, 'src': 'embed', 'start': 1175.44, 'weight': 4, 'content': [{'end': 1179.145, 'text': "So it'll go down, it'll find something, and you go, nah, that's not what I'm looking for.", 'start': 1175.44, 'duration': 3.705}, {'end': 1180.807, 'text': "N, it'll go to the next.", 'start': 1179.625, 'duration': 1.182}, {'end': 1181.968, 'text': "N, it'll go to the next.", 'start': 1181.247, 'duration': 0.721}, {'end': 1182.97, 'text': "N, it'll go to the next.", 'start': 1182.269, 'duration': 0.701}, {'end': 1190.394, 'text': 'See how easy that is? So navigating and editing in Vim is really, really easy.', 'start': 1183.51, 'duration': 6.884}, {'end': 1194.797, 'text': 'When you find whatever it is you want to edit, you hit A.', 'start': 1191.255, 'duration': 3.542}, {'end': 1196.778, 'text': 'That puts you into the insert mode.', 'start': 1194.797, 'duration': 1.981}, {'end': 1199.7, 'text': 'You then type in whatever it is you want to type in.', 'start': 1197.138, 'duration': 2.562}, {'end': 1202.601, 'text': "When you're done typing, you hit Escape.", 'start': 1200.16, 'duration': 2.441}], 'summary': 'Navigating and editing in vim is easy, hit a to insert and escape to finish.', 'duration': 27.161, 'max_score': 1175.44, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1175440.jpg'}], 'start': 1017.192, 'title': 'Searching and navigating in linux files', 'summary': "Covers how to search for specific content in linux files using commands like 'colon forward slash space' and wildcards, as well as the usage of wildcards for file navigation in vim, with practical examples provided.", 'chapters': [{'end': 1108.735, 'start': 1017.192, 'title': 'Searching in linux files', 'summary': "Explains how to search for specific content in linux files using the commands 'colon forward slash space' and the wildcard character, highlighting the importance of case sensitivity and demonstrating a practical example.", 'duration': 91.543, 'highlights': ["The command 'colon forward slash space' can be used to search for specific content within a file, while taking into account the case sensitivity in Linux.", 'Using wildcard characters, such as placing a star before and after the search term, allows for a broader search to encompass variations in the text, ensuring comprehensive results.']}, {'end': 1150.86, 'start': 1108.795, 'title': 'Using wildcards and file search', 'summary': 'Explains the usage of wildcards and file search in navigating a file, including using asterisks for wildcard searches and colons for searching up and down the file.', 'duration': 42.065, 'highlights': ["Using '*' as a wildcard allows any characters to be matched, aiding in finding specific content within a file.", "The technique of using ':/' enables searching down the file, while ':/?' allows searching up the file, providing efficient navigation within the document."]}, {'end': 1261.705, 'start': 1151.34, 'title': 'Vim search and edit basics', 'summary': 'Discusses vim basics, highlighting the ease of navigation and editing in vim using commands like n for find next, a for insert mode, and the usage of wildcard characters for searching.', 'duration': 110.365, 'highlights': ['The chapter explains how to navigate and edit in Vim, emphasizing the ease of use and efficiency in finding and editing text within a file, using commands like N for find next and A for insert mode.', 'It highlights the usage of wildcard characters for searching, recommending the use of asterisks before and after the search term for easier and more accurate results.', 'It emphasizes the simplicity of Vim search and edit functionalities, making it easier for users to navigate and edit large configuration files efficiently.', 'The chapter provides specific commands for searching down and up the file in Vim, emphasizing the use of colon, forward slash, and question mark, followed by space and the search term.']}], 'duration': 244.513, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1017192.jpg', 'highlights': ['Using wildcard characters, such as placing a star before and after the search term, allows for a broader search to encompass variations in the text, ensuring comprehensive results.', "The command 'colon forward slash space' can be used to search for specific content within a file, while taking into account the case sensitivity in Linux.", "Using '*' as a wildcard allows any characters to be matched, aiding in finding specific content within a file.", "The technique of using ':/' enables searching down the file, while ':/?' allows searching up the file, providing efficient navigation within the document.", 'The chapter explains how to navigate and edit in Vim, emphasizing the ease of use and efficiency in finding and editing text within a file, using commands like N for find next and A for insert mode.']}, {'end': 2122.308, 'segs': [{'end': 1333.807, 'src': 'embed', 'start': 1262.565, 'weight': 0, 'content': [{'end': 1265.266, 'text': 'This is all it takes to edit files in Vim.', 'start': 1262.565, 'duration': 2.701}, {'end': 1269.366, 'text': "Like I said, it's very, very, very simple as long as you understand the keys.", 'start': 1265.326, 'duration': 4.04}, {'end': 1274.267, 'text': "Let's go over to the Linux box and I'll show you how this actually works.", 'start': 1269.866, 'duration': 4.401}, {'end': 1278.188, 'text': "So now we're back at the Ubuntu server.", 'start': 1275.987, 'duration': 2.201}, {'end': 1287.249, 'text': "I have installed PHP 5 now because the php.ini file, the configuration file for PHP is such a monstrosity that it's a great little learning tool.", 'start': 1278.408, 'duration': 8.841}, {'end': 1289.83, 'text': "So let's go into the php.ini file.", 'start': 1287.749, 'duration': 2.081}, {'end': 1296.903, 'text': 'So all we do is we type in sudo Then we do vim for the file editor, and then php.ini.', 'start': 1289.89, 'duration': 7.013}, {'end': 1306.445, 'text': 'Now, this php.ini, if you have a web server, you probably have PHP on it, and PHP controls almost everything you do.', 'start': 1298.083, 'duration': 8.362}, {'end': 1312.247, 'text': 'Like I say, if you have a Drupal website, if you have a WordPress website, et cetera, they all rely on PHP.', 'start': 1306.545, 'duration': 5.702}, {'end': 1317.068, 'text': "And so if your PHP isn't set up correctly, it's just nothing works right.", 'start': 1312.767, 'duration': 4.301}, {'end': 1320.964, 'text': 'So now we are in the php.ini file.', 'start': 1317.943, 'duration': 3.021}, {'end': 1323.905, 'text': 'So if we want to change anything with PHP, we have to change this.', 'start': 1320.984, 'duration': 2.921}, {'end': 1329.786, 'text': 'And as you can see, it is a long, horrible, hideous text file that can be a real pain in the butt to get around.', 'start': 1324.065, 'duration': 5.721}, {'end': 1333.807, 'text': "So we need to search for what it is we're looking for.", 'start': 1330.306, 'duration': 3.501}], 'summary': 'Editing files in vim is simple, demonstrated on ubuntu server and php.ini file for php configuration with potential impact on web server functionality.', 'duration': 71.242, 'max_score': 1262.565, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1262565.jpg'}, {'end': 1803.726, 'src': 'embed', 'start': 1776.649, 'weight': 2, 'content': [{'end': 1782.052, 'text': 'All you do is, again, colon, you see down in the lower left-hand corner, and then E.', 'start': 1776.649, 'duration': 5.403}, {'end': 1786.395, 'text': 'Then you type in what file you want to open or what file you want to create.', 'start': 1782.052, 'duration': 4.343}, {'end': 1790.178, 'text': 'So we do php.ini and hit Enter.', 'start': 1786.435, 'duration': 3.743}, {'end': 1795.602, 'text': 'We have now opened the php.ini file from within Vim.', 'start': 1790.899, 'duration': 4.703}, {'end': 1798.803, 'text': "Now, if we're looking through this, you know we're scrolling down.", 'start': 1796.222, 'duration': 2.581}, {'end': 1801.925, 'text': "we're reading, reading, reading.", 'start': 1798.803, 'duration': 3.122}, {'end': 1803.726, 'text': "you know we don't find what we want.", 'start': 1801.925, 'duration': 1.801}], 'summary': 'Using vim, open and read php.ini file.', 'duration': 27.077, 'max_score': 1776.649, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1776649.jpg'}, {'end': 1954.319, 'src': 'embed', 'start': 1921.893, 'weight': 3, 'content': [{'end': 1924.395, 'text': 'Colon W, Q, writes and quits.', 'start': 1921.893, 'duration': 2.502}, {'end': 1926.777, 'text': 'Colon E, opens a file.', 'start': 1925.115, 'duration': 1.662}, {'end': 1931.541, 'text': 'And of course, colon W is write, or basically save as.', 'start': 1926.957, 'duration': 4.584}, {'end': 1933.05, 'text': "It's all pretty simple.", 'start': 1932.125, 'duration': 0.925}, {'end': 1935.966, 'text': "So let's go back out to the real world and finish this class.", 'start': 1933.07, 'duration': 2.896}, {'end': 1945.373, 'text': "So that's all there is for Vim for file editing.", 'start': 1942.031, 'duration': 3.342}, {'end': 1954.319, 'text': 'Again, like I say, in the Linux server world especially, editing files is a very, very, very, very important thing.', 'start': 1945.894, 'duration': 8.425}], 'summary': 'Vim is a simple text editor for file editing, crucial in linux servers.', 'duration': 32.426, 'max_score': 1921.893, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1921893.jpg'}, {'end': 2081.708, 'src': 'embed', 'start': 2054.929, 'weight': 1, 'content': [{'end': 2062.915, 'text': 'I showed you Vim, how you need to know it, the basic layout so that you can edit and create files.', 'start': 2054.929, 'duration': 7.986}, {'end': 2068.098, 'text': 'Vim is actually a very, very powerful, sophisticated piece of software.', 'start': 2063.475, 'duration': 4.623}, {'end': 2074.583, 'text': 'If you go in and you look at all the options you can do, it is absolutely amazing.', 'start': 2068.679, 'duration': 5.904}, {'end': 2081.708, 'text': 'Also, if you like, Vim, if you want to do more stuff, please open the man pages and go and look at the documentation,', 'start': 2074.862, 'duration': 6.846}], 'summary': 'Vim is a powerful software for editing and creating files, with extensive options and documentation available.', 'duration': 26.779, 'max_score': 2054.929, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE2054929.jpg'}], 'start': 1262.565, 'title': 'Vim file editing basics', 'summary': 'Explains vim basics for file editing, covering opening, editing, and saving files, with examples of command usage and procedures. it also emphasizes the importance of file editing in the linux server world.', 'chapters': [{'end': 1381.821, 'start': 1262.565, 'title': 'Editing php configuration in vim', 'summary': 'Demonstrates how to edit the php.ini file in vim to configure php settings, emphasizing the importance of php in web servers and the complexity of the php.ini file, while also showcasing a specific search function in vim to modify file upload settings.', 'duration': 119.256, 'highlights': ['Importance of PHP in web servers PHP controls almost everything in web servers, including popular platforms like Drupal and WordPress, making it crucial for proper server functionality.', 'Complexity of php.ini file The php.ini file is described as long, horrible, and hideous, emphasizing its complexity and potential difficulty to navigate.', 'Demonstration of search function in Vim The chapter showcases a specific search function in Vim using wildcard characters to find and modify specific settings in the php.ini file.']}, {'end': 2122.308, 'start': 1381.841, 'title': 'Vim file editing basics', 'summary': 'Explains the basics of vim for file editing, including commands for opening, editing, and saving files, with examples of command usage and procedures. it also emphasizes the importance of file editing in the linux server world.', 'duration': 740.467, 'highlights': ['The process of opening, exiting, and saving files within Vim is explained, with commands such as colon e for opening a file, colon q for quitting Vim, and colon wq for saving and quitting, simplifying the file editing process.', 'The importance of understanding file editing in the Linux server world is emphasized, highlighting the significance of editing configuration files and the necessity to learn Vim for this purpose.', 'The significance of Vim for file editing in the Linux server environment is stressed, with an emphasis on its powerful and sophisticated capabilities, as well as the recommendation to explore additional functionality through the man pages and documentation.']}], 'duration': 859.743, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/ImK_dHPOTIE/pics/ImK_dHPOTIE1262565.jpg', 'highlights': ['The importance of understanding file editing in the Linux server world is emphasized, highlighting the significance of editing configuration files and the necessity to learn Vim for this purpose.', 'The significance of Vim for file editing in the Linux server environment is stressed, with an emphasis on its powerful and sophisticated capabilities, as well as the recommendation to explore additional functionality through the man pages and documentation.', 'Demonstration of search function in Vim The chapter showcases a specific search function in Vim using wildcard characters to find and modify specific settings in the php.ini file.', 'The process of opening, exiting, and saving files within Vim is explained, with commands such as colon e for opening a file, colon q for quitting Vim, and colon wq for saving and quitting, simplifying the file editing process.', 'Importance of PHP in web servers PHP controls almost everything in web servers, including popular platforms like Drupal and WordPress, making it crucial for proper server functionality.', 'Complexity of php.ini file The php.ini file is described as long, horrible, and hideous, emphasizing its complexity and potential difficulty to navigate.']}], 'highlights': ['The importance of editing configuration files in Linux systems is highlighted, emphasizing its relevance for customizing software and achieving specific functionality.', 'Examples of configuration files such as php.ini and .htaccess are mentioned, showcasing their significance in Linux file editing.', "Using 'sudo vim' followed by the file name opens a file in Vim, ensuring proper access and editing capabilities, essential for Ubuntu Linux.", 'Using sudo for file editing is crucial when dealing with root-owned configuration files, such as PHP.ini and .htaccess files.', "Changing file ownership using sudo and chown, resulting in 'new file' being owned by 'root'.", "The command 'colon forward slash space' can be used to search for specific content within a file, while taking into account the case sensitivity in Linux.", "The technique of using ':/' enables searching down the file, while ':/?' allows searching up the file, providing efficient navigation within the document.", 'The importance of understanding file editing in the Linux server world is emphasized, highlighting the significance of editing configuration files and the necessity to learn Vim for this purpose.', 'The significance of Vim for file editing in the Linux server environment is stressed, with an emphasis on its powerful and sophisticated capabilities, as well as the recommendation to explore additional functionality through the man pages and documentation.']}