RH033读书笔记(3)-Lab 4 Browsing the Filesystem
Lab 4 Browsing the Filesystem
Sequence 1: Directory and File Organization
1. Log in as user student with the password student.
2. [student@stationX ~]$ pwd
/home/student
3. ls
ls -a
ls -al
-a option includes files whose names begin with a period and used for storing configuration information
The fifth column of ls -l's output displays the file's size.
4. [student@stationX ~]$ touch {report,graph}_{jan,feb,mar}
5. [student@stationX ~]$ ls
6. Make directory
[student@stationX ~]$ mkdir Projects
[student@stationX ~]$ mkdir Projects/graphs
[student@stationX ~]$ cd Projects
[student@stationX Projects]$ mkdir reports
[student@stationX Projects]$ cd reports
[student@stationX reports]$ mkdir ../Backups
[student@stationX reports]$ cd
[student@stationX ~]$ ls -l
[student@stationX ~]$ ls Projects
7. Move files
[student@stationX ~]$ mv graph_jan Projects/graphs
[student@stationX ~]$ mv graph_feb graph_mar Projects/graphs
[student@stationX ~]$ ls -l Projects/graphs/
8. Move the files in one command:
[student@stationX ~]$ mv report_jan report_feb Projects/reports
[student@stationX ~]$ ls -l Projects/reports
9. Remove the remaining report file:
[student@stationX ~]$ rm report_mar
[student@stationX ~]$ ls
10. Copy one using an absolute pathname and the other using a relative pathname:
[student@stationX ~]$ cd Projects/Backups
[student@stationX Backups]$ pwd
[student@stationX Backups]$ cp ../reports/report_jan .
[student@stationX Backups]$ cp /home/student/Projects/graphs/graph_jan .
[student@stationX Backups]$ ls -l
11. exit
Sequence 2: Managing Files with Nautilus
1. If you have not already, log into the graphical environment.
2. Double-click on the student's Home icon on your desktop.
3. Double-click on Projects, then graphs.
4. With the graphs window selected, press Ctrl-Shift-w to close the parent directory windows.
5. Press Ctrl-a to select all three graphs.
6. Press Ctrl-c to copy the files.
7. Press Ctrl-l (the letter l, not the number 1) to display the Open Location dialog. Type /tmp
(note that you can use tab-completion) and press Enter to open a new window displaying /
tmp.
8. Press Ctrl-Shift-n or right-click on the window background and select Create Folder to
create a new directory.
9. Type in Stuff_for_Bob as the new directory's name and double-click the directory to
open it
10. Press Ctrl-v to paste your graphs into /tmp/Stuff_for_Bob.
11. Press Ctrl-q to close all Nautilus windows
Sequence 3: Backing-up your system configuration
1. Log in on tty1 as user root with the password of redhat.
2. [root@stationX ~]# mkdir ~/backups
3. recursively copy
cp -rpv /etc/sysconfig ~/backups/sysconfig-20071231
cp -av /etc/sysconfig ~/backups/sysconfig-20071231
4. cp -av /etc/sysconfig ~/backups/sysconfig-20071231
~/backups/sysconfig-20071231/sysconfig/
5. cp -av /etc/sysconfig ~/backups/sysconfig-20071231
be prompted for confirmation before overwriting
RH033读书笔记(3)-Lab 4 Browsing the Filesystem的更多相关文章
- RH033读书笔记(15)-Lab 16 The Linux Filesystem
Lab 16 The Linux Filesystem Goal: Develop a better understanding of Linux filesystem essentials incl ...
- RH033读书笔记(2)-Lab 3 Getting Help with Commands
Lab 3 Getting Help with Commands Sequence 1: Using the Help Tools 1. man -f keyword whatis keyword l ...
- RH033读书笔记(5)-Lab 6 Exploring the Bash Shell
Lab 6 Exploring the Bash Shell Sequence 1: Directory and file organization 1. Log in as user student ...
- RH033读书笔记(4)-Lab 5 File Permissions
Lab 5 File Permissions Sequence 1: Determining File Permissions 1. What is the symbolic representati ...
- RH033读书笔记(7)-Lab 8 Introduction to String Processing
Lab 8 Introduction to String Processing Sequence 1: Exercises in string processing 1. Other than the ...
- RH033读书笔记(6)-Lab 7 Standard I/O and Pipes
Lab 7 Standard I/O and Pipes 1. [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo 2. [student@st ...
- RH033读书笔记(8)-Lab 9 Using vim
Lab 9 Using vim Sequence 1: Navigating with vim 1. Log in as user student 2. [student@stationX ~]$ c ...
- RH033读书笔记(10)-Lab 11 Process Control
Lab 11 Process Control Sequence 1: Job Control 1. [student@stationX ~]$ su - 2. Begin some jobs in t ...
- RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools
Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...
随机推荐
- 【从0到1学Web前端】CSS伪类和伪元素
1.CSS中的伪类 CSS 伪类用于向某些选择器加入特殊的效果. 语法: selector : pseudo-class {property: value} CSS 类也可与伪类搭配使用 select ...
- 超人学院Hadoop大数据技术资源分享
超人学院Hadoop大数据技术资源分享 http://bbs.superwu.cn/forum.php?mod=viewthread&tid=807&fromuid=645 很多其它精 ...
- cocos2d-js-v3.0-rc0 下 pomelo-cocos2d-jsb native web 配置
一.基本步骤 注意:pomelo-cocos2d-jsb 没实用 https://github.com/NetEase/pomelo-cocos2d-jsb,原因这个不是最新版,另外,componen ...
- Selenium执行测试脚本稳定性的一些经验分享交流
Selenium执行测试脚本稳定性的一些经验分享交流 公司的自动化WEB测试框架IATA已上线运行了一段时间,期间发现一些脚本稳定性的问题,与大家分享一下. CASE执行游览器:ie firefox ...
- poj3259(spfa判负环)
题目连接:http://poj.org/problem?id=3259 题意:John的农场里N块地,M条路连接两块地,W个虫洞,虫洞是一条单向路,会在你离开之前把你传送到目的地,就是当你过去的时候时 ...
- [leetcode]3 Sum closest
问题叙述性说明: Given an array S of n integers, find three integers in S such that the sum is closest to a ...
- poj3264(线段树区间求最值)
题目连接:http://poj.org/problem?id=3264 题意:给定Q(1<=Q<=200000)个数A1,A2,```,AQ,多次求任一区间Ai-Aj中最大数和最小数的差. ...
- Knockout应用开发指南 第三章:绑定语法(3)
原文:Knockout应用开发指南 第三章:绑定语法(3) 12 value 绑定 目的 value绑定是关联DOM元素的值到view model的属性上.主要是用在表单控件<input&g ...
- java文件创建、删除、读取、写入操作大全
一.获得控制台用户输入的信息 public String getInputMessage() throws IOException...{ System.out.println("请输入您的 ...
- 关于identifier was truncated to '255' characters
学习c++过程中,遇到在VC中使用set时DEBUG模式出现的警告 identifier was truncated to '255' characters in the debug informat ...