task based on both linux(part1 &part)

task based on both linux(part1 &part)


Answers:

1.1)Create a file via touch and update that file and also verify the timestamp and output will be redirected to another file.

Sol:

  • touch narmada.txt

No alt text provided for this image


  • vim narmada.txt

No alt text provided for this image

.cat narmada.txt

No alt text provided for this image
No alt text provided for this image

  • ls -la
  • ls -al > new
  • cat new

No alt text provided for this image

 2) Add some of the data as per your choice and append that data via echo command in the same file

Step1:redirect....echo "hiii everyone!!!" > narmada.txt

step2:append...echo "from Narmada side...." >> narmada.txt

No alt text provided for this image

 3) Install httpd and set up your own web server.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

 4)Copy some files from one Linux host to another Linux host via SCP.

Sol:

• First Make a os Clone

• Host1: # vim tranf_file.txt

# scp tranf_file.txt root@192.168.43.192:/tmp

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

 5)Create another VM and setup password less authenticatication.

Sol:

• ssh-keygen

• ssh-copy-id root@192.168.43.192

No alt text provided for this image
No alt text provided for this image

task completed!!!!!!






















To view or add a comment, sign in

More articles by Narmada P

Explore content categories