Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view a file on PuTTY? [closed]

Tags:

ssh

putty

I opened a file in PuTTY and I need the file .flag, how do I open it?

I have tried

vi index.flag

and

cp index.flag
like image 746
Katherine Gerot Avatar asked Dec 10 '22 20:12

Katherine Gerot


1 Answers

To list all files in a directory with their permissions run

ls -la

Make sure your user have at least read permission on the file you need to open

open the file using vi editor (assuming the file you want to open is called .flag)

vi .flag

you can also use the cat command to just to view the contents of a file

cat .flag
like image 77
Achintha Gunasekara Avatar answered Dec 21 '22 16:12

Achintha Gunasekara