A
A
Alex vak2017-07-25 15:36:09
linux
Alex vak, 2017-07-25 15:36:09

How to mount folders in Linux terminal and then view them with vi?

How to mount folders in Linux terminal and then view them with vi?
As I understand it, to mount, you need to know the mount point using the df command.
The situation is this. It is shown in the video below. In short, I go under su and have an answer folder.
Then I do df. I see the mount point. You need to mount the answer folder and then look at its insides with vi - how to do this?
0VM84JYdH0.gif

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Zhurkin, 2017-07-25
@Itmoing100

How to mount folders in Linux terminal and then view them with vi?

Not like. At least I don't quite understand what you mean by viewing them ?
They may contain files. Then we write vim /home/user/answer/desired file.txt
If we are talking about mounting, then in general, yes. You need to know what we are mounting and, most importantly, where.
The mount command is responsible for mounting, an example of its work is a wagon and a cart.
The situation is this. It is shown in the video below. In short, I go under su and have an answer folder.
Then I do df. I see the mount point. You need to mount the answer folder and then look at its insides with vi - how to do this?

But was there any thought to see if the folder is mounted?
just the mount command will show whatever is currently mounted on the system.
Yes, in addition to df, you can use blkid.
You need to look at the insides of the folder through ls, but open the file through vi.
Just read how to exit the vi editor :) otherwise it will spoil everything and beep.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question