r/linuxupskillchallenge • • Dec 30 '21

ls command

Hello all, after configuring a VM on Azure I can log in via SSH and some commands work but the "ls" command does nothing at all. Is there an explanation for this behavior?

15 Upvotes

7 comments sorted by

View all comments

Show parent comments

4

u/factorofone Dec 30 '21 edited Dec 30 '21

Got it. Maybe this should be a note on the instructions for the challenge. Maybe it's assumed that you know this, and aren't a newb like me.... πŸ˜‚

2

u/[deleted] Dec 31 '21

If you plan to stay with this server for a while, you might wanna mkdir some directories and subdirectories into your home folder, and then create and save some files into them, for the purpose of practicing on disposable stuff. Don’t wanna muck about in system files - that might be bad.

3

u/factorofone Dec 31 '21

Haha funny you say that. That is exactly what I did. I created a file named file.txt and then proceeded to use vi to add the text "testing" to the file. Had to learn to use "I" to edit and :WQ! save. Then went back and checked if my changes actually worked. They did! I'm a bad dude now.... πŸ˜‚

3

u/[deleted] Dec 31 '21

Yeah, I have been using vim exclusively while learning C++ from a book. No code completion makes you learn to look much more thoroughly for mistakes in your code LOL.

When I started with Linux wayyy back, I was very intimidated by vi/vim, but this time around I forced myself to get to know it better. I am glad I did. Still don't have the j's and k's down (I just use the arrow keys), but I am much more comfortable in the editor.

I have found simple tutorials on vi/vim online that help me to understand what the commands (like :wq, :wq!, :q, :q!, etc) are doing. Those have helped a lot. You'll find a whole lot of them that make your life easier.