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)
42 views
1 page
Chapter4 Creating Viewing and Editing Text Files
Uploaded by
Hassan Mohamed
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download
Save
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
42 views
1 page
Chapter4 Creating Viewing and Editing Text Files
Uploaded by
Hassan Mohamed
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Chapter4_Creating_Viewing_and_Editing_Text_Files For Later
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
Linux Common Commands
PDF
No ratings yet
Linux Common Commands
30 pages
RHCSA Cheatsheet
PDF
No ratings yet
RHCSA Cheatsheet
21 pages
Medium Linux Shellscript
PDF
No ratings yet
Medium Linux Shellscript
22 pages
Operations Deployment
PDF
No ratings yet
Operations Deployment
172 pages
Linux Shell Tutorial
PDF
No ratings yet
Linux Shell Tutorial
18 pages
Linux Command Examples Updated
PDF
No ratings yet
Linux Command Examples Updated
12 pages
Linux Manual
PDF
100% (1)
Linux Manual
55 pages
Linux Notes
PDF
No ratings yet
Linux Notes
16 pages
DevOps Assign 2 (SP22-BSE-055)
PDF
No ratings yet
DevOps Assign 2 (SP22-BSE-055)
11 pages
OS Code
PDF
No ratings yet
OS Code
5 pages
Unit 2 Linux
PDF
No ratings yet
Unit 2 Linux
49 pages
File and Directory Management LINUX
PDF
No ratings yet
File and Directory Management LINUX
4 pages
Shell Commands Sept4Update
PDF
No ratings yet
Shell Commands Sept4Update
66 pages
Operating System Lab Manual
PDF
No ratings yet
Operating System Lab Manual
65 pages
OSY MP
PDF
No ratings yet
OSY MP
12 pages
Unix Programs 2
PDF
100% (5)
Unix Programs 2
59 pages
Linux Command
PDF
No ratings yet
Linux Command
6 pages
Useful Linux Bash Commands: The Bash Terminal Window
PDF
No ratings yet
Useful Linux Bash Commands: The Bash Terminal Window
8 pages
Basic Linux Commands
PDF
No ratings yet
Basic Linux Commands
26 pages
23BCP119 Os Lab File
PDF
No ratings yet
23BCP119 Os Lab File
32 pages
Terminals
PDF
No ratings yet
Terminals
4 pages
Chapter4 Creating Viewing and Editing Text Files
PDF
No ratings yet
Chapter4 Creating Viewing and Editing Text Files
1 page
OS Lab Assignment No 1
PDF
No ratings yet
OS Lab Assignment No 1
3 pages
Linux Commands - Imran
PDF
No ratings yet
Linux Commands - Imran
10 pages
Linux - Commands
PDF
No ratings yet
Linux - Commands
7 pages
Linux Cmds
PDF
No ratings yet
Linux Cmds
5 pages
LINUX
PDF
No ratings yet
LINUX
26 pages
Linux Commands: Ex:No:1 Man, CD, CD .,CD ..,LS, Ls-A, PWD Commands
PDF
No ratings yet
Linux Commands: Ex:No:1 Man, CD, CD .,CD ..,LS, Ls-A, PWD Commands
58 pages
Experiment 4 HSIS Lab
PDF
No ratings yet
Experiment 4 HSIS Lab
15 pages
Linux
PDF
No ratings yet
Linux
9 pages
Linux Commands
PDF
No ratings yet
Linux Commands
9 pages
M.A.M. School of Engineering: Siruganur, Trichy - 621 105
PDF
No ratings yet
M.A.M. School of Engineering: Siruganur, Trichy - 621 105
78 pages
Lec - Unit 7 - Standard IO and Pipes
PDF
No ratings yet
Lec - Unit 7 - Standard IO and Pipes
14 pages
Basic Commands
PDF
No ratings yet
Basic Commands
1 page
CS558 Lab 1
PDF
No ratings yet
CS558 Lab 1
10 pages
Linux Cheat Sheet
PDF
No ratings yet
Linux Cheat Sheet
42 pages
Linux Cheatsheets (MSG)
PDF
No ratings yet
Linux Cheatsheets (MSG)
23 pages
Commands For Unix/Linux Operating Systems and Their Syntax: Filesystem Informational Text Filtering / Mutative
PDF
No ratings yet
Commands For Unix/Linux Operating Systems and Their Syntax: Filesystem Informational Text Filtering / Mutative
1 page
Linux Cheatsheet
PDF
No ratings yet
Linux Cheatsheet
1 page
Linux Commands-2
PDF
No ratings yet
Linux Commands-2
17 pages
Linux Essential Commands Cheat Sheet
PDF
No ratings yet
Linux Essential Commands Cheat Sheet
22 pages
Linux Commands Cheat Sheet
PDF
No ratings yet
Linux Commands Cheat Sheet
6 pages
Filters & Redirection
PDF
No ratings yet
Filters & Redirection
6 pages
BSC CS Shell Programming
PDF
No ratings yet
BSC CS Shell Programming
33 pages
Some Importantes Commands Linux
PDF
No ratings yet
Some Importantes Commands Linux
4 pages
Linux Essentials For DevOps
PDF
No ratings yet
Linux Essentials For DevOps
3 pages
Redhat Adminexported
PDF
No ratings yet
Redhat Adminexported
2 pages
Linuxlmsem 5
PDF
No ratings yet
Linuxlmsem 5
40 pages
Cheatsheet2 0
PDF
No ratings yet
Cheatsheet2 0
1 page
The 5-Minute Essential Shell Tutorial - Linux Mint Community
PDF
No ratings yet
The 5-Minute Essential Shell Tutorial - Linux Mint Community
4 pages
Redhat Linux Essential
PDF
No ratings yet
Redhat Linux Essential
16 pages
Openvms Commands With Unix Equivalents: Vms Command
PDF
No ratings yet
Openvms Commands With Unix Equivalents: Vms Command
8 pages
Linux and Unix Commands
PDF
No ratings yet
Linux and Unix Commands
8 pages
The Basic Linux Commands: Mkdir - Make Directories
PDF
No ratings yet
The Basic Linux Commands: Mkdir - Make Directories
8 pages
Learn UNIX in 10 Minutes
PDF
No ratings yet
Learn UNIX in 10 Minutes
19 pages
Linux Directory Structure
PDF
No ratings yet
Linux Directory Structure
7 pages
Corrective Phase of Periodontal Therapy (Surgical Phase)
PDF
No ratings yet
Corrective Phase of Periodontal Therapy (Surgical Phase)
12 pages
Diet and Dental Caries: Prevention - 5 Class
PDF
No ratings yet
Diet and Dental Caries: Prevention - 5 Class
6 pages
Cli Wallpaper v2
PDF
No ratings yet
Cli Wallpaper v2
1 page
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
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
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
2018 IJPD Volume 28 Issue 4 July
PDF
No ratings yet
2018 IJPD Volume 28 Issue 4 July
12 pages
Chapter1 Accessing The Command Line
PDF
100% (2)
Chapter1 Accessing The Command Line
2 pages
Kavvadia 26 01 PDF
PDF
No ratings yet
Kavvadia 26 01 PDF
7 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
Chapter2 Managing Files From The Command Line
PDF
No ratings yet
Chapter2 Managing Files From The Command Line
2 pages
Bash Command Line Pro Tips
From Everand
Bash Command Line Pro Tips
Jason Cannon
4.5/5 (8)
Configuration of a Simple Samba File Server, Quota and Schedule Backup
From Everand
Configuration of a Simple Samba File Server, Quota and Schedule Backup
Dr. Hedaya Alasooly
No ratings yet
Profound Linux For Developers
From Everand
Profound Linux For Developers
Onder Teker
No ratings yet
Documents
Computers