Task 7 - An Introduction to Shell Operators

If we wanted to run a command in the background, what operator would we want to use? & If I wanted to replace the contents of a file named "passwords" with the word "password123", what would my comma

Task 7 An Introduction to Shell Operators

If we wanted to run a command in the background, what operator would we want to use?

Reveal Flag ๐Ÿšฉ

๐Ÿšฉ&

If I wanted to replace the contents of a file named "passwords" with the word "password123", what would my command be?

HINT: echo <content> > <filename>

Reveal Flag ๐Ÿšฉ

๐Ÿšฉecho password123 > passwords

Now if I wanted to add "tryhackme" to this file named "passwords" but also keep "passwords123", what would my command be

HINT: echo <content> >> <filename>

Reveal Flag ๐Ÿšฉ

๐Ÿšฉecho tryhackme >> passwords

Now use the deployed Linux machine to put these into practice

No answer needed

Last updated