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 [email protected]:/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 [email protected]

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

task completed!!!!!!






















Akash Kola

DevOps Engineer Excels in Linux, Jenkins, Cloud, Docker, Kubernetes, and Full Stack Development, Proficient in Golang, Java8, Python3, DotNet, ASP, JavaScript, React, and React Native

3 年

Nice ??????

要查看或添加评论,请登录

Narmada P的更多文章

社区洞察

其他会员也浏览了