Closed manishawsdevops closed 1 year ago
Assignment: Linux Command Line Proficiency
Task 1: File Manipulation
file1.txt
file2.txt
file3.txt
ls
newfile.txt
file1_copy.txt
Task 2: Directory Operations
cd
Documents
Pictures
Music
Task 3: File Viewing and Text Editing
sample.txt
echo
cat
head
tail
nano
vim
Task 4: Permissions and Ownership
ls -l
adduser
su
Task 5: Searching and Archiving
Task 6: SSH Communication
Submission Please provide a report that includes the following:
Assignment: Linux Command Line Proficiency
Task 1: File Manipulation
file1.txt
file2.txt
file3.txt
ls
command to list the files in the "LinuxAssignment" directory.file2.txt
tonewfile.txt
.newfile.txt
to a subdirectory called "docs" within "LinuxAssignment."newfile.txt
is now in the "docs" subdirectory.file1.txt
and name itfile1_copy.txt
in the "LinuxAssignment" directory.file3.txt
from the "LinuxAssignment" directory.Task 2: Directory Operations
cd
command.Documents
Pictures
Music
Task 3: File Viewing and Text Editing
sample.txt
inside the "LinuxAssignment" directory.echo
command to add the text "Hello, Linux!" tosample.txt
.sample.txt
using thecat
command.sample.txt
without overwriting the existing content.sample.txt
using thehead
command.sample.txt
using thetail
command.sample.txt
in a text editor (e.g.,nano
orvim
) and make some changes to the text. Save and exit the text editor.sample.txt
again to verify your changes.Task 4: Permissions and Ownership
ls -l
command.sample.txt
so that only the owner can read and write to it.adduser
command.su
command.sample.txt
. Observe the results.Task 5: Searching and Archiving
Task 6: SSH Communication
Submission Please provide a report that includes the following: