课程: Learning Linux Command Line
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Create and share a file
(upbeat music) - Let's take a look at how I solve this challenge. First, in order to create a file, I wrote vi, and I created a file called my new file. Then in vi, I used the lowercase i key to move into insertion mode and I typed some text. When I finished that, I pressed escape colon, WQ to save the file. The second part of the challenge was to ensure that anyone that uses the system can read and write this file. So to get started working on that, I took a look at the current permissions of this file. With stat, my new file. And here I found that the access was 664 or, read write for the user, read write for the group and read only for everyone else. In order to allow any user to read and write this file, I'll need to change the permissions. I can do that with chmod a for all users, + to add and RW for read write. And then I'll provide the name of my file. Taking a look at the file again with stat,…
内容
-
-
-
-
-
-
The Unix philosophy2 分钟 29 秒
-
(已锁定)
Use pipes to connect commands together2 分钟 41 秒
-
(已锁定)
View text files with cat, head, tail, and less4 分钟 44 秒
-
(已锁定)
Search for text in files and streams with grep4 分钟 30 秒
-
(已锁定)
Manipulate text with awk, sed, and sort6 分钟 50 秒
-
(已锁定)
Edit text with Vim4 分钟 35 秒
-
(已锁定)
Edit text with nano2 分钟 49 秒
-
(已锁定)
Working with tar and zip archives8 分钟 17 秒
-
(已锁定)
Challenge: Create and share a file28 秒
-
(已锁定)
Solution: Create and share a file1 分钟 48 秒
-
(已锁定)
Output redirection5 分钟 11 秒
-
(已锁定)
Exploring environment variables and PATH3 分钟 54 秒
-
(已锁定)
Challenge: Extract information from a text file1 分钟 8 秒
-
(已锁定)
Solution: Extract information from a text file3 分钟 28 秒
-
-
-