Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
30 views
Chapter4 Creating Viewing and Editing Text Files
Uploaded by
Hassan Mohamed
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
Download
Save
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
30 views
Chapter4 Creating Viewing and Editing Text Files
Uploaded by
Hassan Mohamed
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
Carousel Previous
Carousel Next
Save
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 1
Search
Fullscreen
Standard input, standard output, and standard error:
[root@master ~]# date > /tmp/saved-timestamp
[root@master ~]# tail -n 100 /var/log/dmesg > /tmp/last-100-boot-messages
[root@master ~]# cat file1 file2 file3 file4 > /tmp/all-four-in-one
[root@master ~]# ls -a > /tmp/my-file-names
===============================================
Append output to an existing file:
[root@master ~]#echo "new line of information" >> /tmp/many-lines-of-information
[root@master ~]# find /etc -name passwd 2> /tmp/errors
[root@master ~]# find /etc -name passwd > /tmp/output 2> /tmp/errors
[root@master ~]# find /etc -name passwd > /tmp/output 2> /dev/null
[root@master ~]# find /etc -name passwd &> /tmp/save-both
[root@master ~]# find /etc -name passwd >> /tmp/save-both 2>&1
===============================================
Constructing pipe lines:
[root@master ~]# ls -l /usr/bin | less
[root@master ~]# ls | wc -l > /tmp/how-many-files
[root@master ~]# ls -t | head -n 10 > /tmp/ten-last-changed-files
[root@master ~]# ls -l | tee /tmp/saved-output
[root@master ~]# ls -l | tee /dev/pts/0 | mail -s subject
===============================================
Editing files with Vim:
[root@master ~]# vim file1
===============================================
Editing files with gedit:
Applications > Accessories > gedit
[root@master ~]# gedit file1
===============================================
Editing files with nano:
[root@master ~]# nano file1
===============================================
Best wishes
Abeer :)
You might also like
Fedora Terminal Commands
PDF
No ratings yet
Fedora Terminal Commands
17 pages
Replit Ubuntu 20 Enabler
PDF
75% (4)
Replit Ubuntu 20 Enabler
4 pages
RHCSA 9 Notes
PDF
No ratings yet
RHCSA 9 Notes
7 pages
Linux - Abeer Commands
PDF
100% (1)
Linux - Abeer Commands
58 pages
Chapter4 Creating Viewing and Editing Text Files
PDF
No ratings yet
Chapter4 Creating Viewing and Editing Text Files
1 page
Filters & Redirection.docx
PDF
No ratings yet
Filters & Redirection.docx
6 pages
Linux Lab3
PDF
No ratings yet
Linux Lab3
5 pages
File Editing, Redirection
PDF
No ratings yet
File Editing, Redirection
3 pages
37. Zip Archive
PDF
No ratings yet
37. Zip Archive
8 pages
Lab10 Working With Text
PDF
No ratings yet
Lab10 Working With Text
11 pages
Linux Command by NischalTechSupport
PDF
No ratings yet
Linux Command by NischalTechSupport
4 pages
SA1-CHAPTER-5
PDF
No ratings yet
SA1-CHAPTER-5
9 pages
SA1-CHAPTER-3
PDF
No ratings yet
SA1-CHAPTER-3
21 pages
Linux Lab Record
PDF
No ratings yet
Linux Lab Record
48 pages
List of Important Debian Commands
PDF
No ratings yet
List of Important Debian Commands
40 pages
Chapter2 Managing Files From The Command Line
PDF
No ratings yet
Chapter2 Managing Files From The Command Line
2 pages
Linuk Command
PDF
No ratings yet
Linuk Command
27 pages
10. User Creation
PDF
No ratings yet
10. User Creation
12 pages
Lab 7 - Working With Text (1)
PDF
No ratings yet
Lab 7 - Working With Text (1)
26 pages
Linux Theory Day3
PDF
No ratings yet
Linux Theory Day3
6 pages
Unix Material
PDF
No ratings yet
Unix Material
74 pages
Bash Cheat Sheet
PDF
No ratings yet
Bash Cheat Sheet
7 pages
Bash Cheat Sheet
PDF
No ratings yet
Bash Cheat Sheet
7 pages
Unix Shell Scripts
PDF
No ratings yet
Unix Shell Scripts
57 pages
Root 2
PDF
No ratings yet
Root 2
4 pages
Post Exploit
PDF
No ratings yet
Post Exploit
22 pages
Rhcsa Full Doc CSL
PDF
100% (1)
Rhcsa Full Doc CSL
134 pages
Linux Notes
PDF
No ratings yet
Linux Notes
4 pages
Laboratory Lecture 1
PDF
No ratings yet
Laboratory Lecture 1
15 pages
Unix Commands
PDF
No ratings yet
Unix Commands
5 pages
linux_common_commands
PDF
No ratings yet
linux_common_commands
30 pages
Chapter1 Accessing The Command Line
PDF
100% (2)
Chapter1 Accessing The Command Line
2 pages
Basic Commands
PDF
No ratings yet
Basic Commands
7 pages
101 Unix Commands
PDF
100% (1)
101 Unix Commands
4 pages
(Linux) - Unix/Linix Commands
PDF
No ratings yet
(Linux) - Unix/Linix Commands
15 pages
Redhat
PDF
No ratings yet
Redhat
119 pages
Linux Pocket Reference For System
PDF
No ratings yet
Linux Pocket Reference For System
143 pages
Mastery On Linux
PDF
No ratings yet
Mastery On Linux
6 pages
Linux Commands Handbook
PDF
No ratings yet
Linux Commands Handbook
22 pages
Linux Terminal Cheat Sheet
PDF
No ratings yet
Linux Terminal Cheat Sheet
7 pages
Terminal Cheat Sheet V5
PDF
100% (2)
Terminal Cheat Sheet V5
7 pages
249个即用shell脚本
PDF
No ratings yet
249个即用shell脚本
147 pages
Chee T Sheet
PDF
No ratings yet
Chee T Sheet
2 pages
LinuxFilters
PDF
No ratings yet
LinuxFilters
11 pages
Linux Based Commands
PDF
No ratings yet
Linux Based Commands
17 pages
Function:: UNIX Shells
PDF
No ratings yet
Function:: UNIX Shells
10 pages
Random Idea
PDF
No ratings yet
Random Idea
4 pages
F5 Scipt
PDF
No ratings yet
F5 Scipt
9 pages
02 134172 159 7036657417 25062020 100054pm
PDF
No ratings yet
02 134172 159 7036657417 25062020 100054pm
5 pages
Linux Bash Shell Cheat Sheet: Basic Commands Basic Terminal Shortcuts Basic File Manipulation
PDF
No ratings yet
Linux Bash Shell Cheat Sheet: Basic Commands Basic Terminal Shortcuts Basic File Manipulation
6 pages
TP DNS
PDF
No ratings yet
TP DNS
4 pages
package_management-4
PDF
No ratings yet
package_management-4
5 pages
RHCSA Commands
PDF
No ratings yet
RHCSA Commands
16 pages
Bash & Shell Programming Basics
PDF
No ratings yet
Bash & Shell Programming Basics
2 pages
Linux Basic Commands
PDF
No ratings yet
Linux Basic Commands
19 pages
Unix Scripts
PDF
No ratings yet
Unix Scripts
3 pages
Red Hat Linux Parveen Suryan
PDF
No ratings yet
Red Hat Linux Parveen Suryan
39 pages
UNIXLInux For Oracle DBAMustKnow-libre
PDF
No ratings yet
UNIXLInux For Oracle DBAMustKnow-libre
17 pages
CS3461-OS Labmanual
PDF
No ratings yet
CS3461-OS Labmanual
67 pages
Bash Command Line Pro Tips
From Everand
Bash Command Line Pro Tips
Jason Cannon
4.5/5 (8)
Chapter7 Monitoring and Managing Linux Processes
PDF
No ratings yet
Chapter7 Monitoring and Managing Linux Processes
3 pages
MTA Vs Biodentin
PDF
No ratings yet
MTA Vs Biodentin
19 pages
Kavvadia 26 01 PDF
PDF
No ratings yet
Kavvadia 26 01 PDF
7 pages
2018 IJPD Volume 28 Issue 4 July
PDF
No ratings yet
2018 IJPD Volume 28 Issue 4 July
12 pages
Primary Teeth Caries Removal Using The Carisolv Chemomechanical Method: A Clinical Trial
PDF
No ratings yet
Primary Teeth Caries Removal Using The Carisolv Chemomechanical Method: A Clinical Trial
7 pages
Minimally Invasive Caries Treatment: Distributed by Straumann
PDF
No ratings yet
Minimally Invasive Caries Treatment: Distributed by Straumann
8 pages
L5 Exo in Ortho 2020
PDF
No ratings yet
L5 Exo in Ortho 2020
9 pages
Corrective Phase of Periodontal Therapy (Surgical Phase)
PDF
No ratings yet
Corrective Phase of Periodontal Therapy (Surgical Phase)
12 pages
Dietary Counseling in Dental Practice: Prevention - 5 Class Lect 17
PDF
No ratings yet
Dietary Counseling in Dental Practice: Prevention - 5 Class Lect 17
6 pages
Diet and Dental Caries: Prevention - 5 Class
PDF
No ratings yet
Diet and Dental Caries: Prevention - 5 Class
6 pages
Documents
Computers