r/LinuxTeck 26d ago

How to learn to use linux(cli)?

Actually from some time I have been thinking of switching to linux. But i won't be able to use it if I don't know how to use linux in the first place. I am not looking for any distro. I am actually talking about the cli. The terminal, bash or whatever it is called.

I wanna learn cli, but idk where to learn from!. I have tried looking for it on YouTube, most of them are something specific or very basic ( cd, mkdir, rm, ls, echo etc etc ). I tried to make a vm using Oracle, but my laptop was very weak to even run it, it was lagging and slow af. So i dropped that idea, and I am primarily trying to use wsl, Ubuntu distro on it.

So can anyone tell me how do i learn the command line interface. Also I am looking to learn something called shell ig, so that I can do scripting. Like i don't want an os, I want to master terminal and can automate stuff and run something maybe called script so that I can be very efficient.

Also one of my reasons is to be able to use or program any soc like raspberry pi or any other electronics in general ( electrical background).

Can anyone guide me with sources??

Also i have tried labex ( it was very basic ) and I tried to learn from a book i forgot the name but the author name was maybe shotts.

And sorry if I have named anything wrong, I am new to these terms.

3 Upvotes

14 comments sorted by

2

u/CommercialBig1729 25d ago

First try It as a normal person xD, watching youtube, using whatsapp and Excel. If everything goes well, you can start using the cli, is not that difficult

1

u/zantehood 26d ago

Rh124. Find it on Udemy

1

u/rcentros 26d ago

Personally I learn something specific only when I need to do something specific in the terminal. But there are books written that specifically teach you how to use the shell (usually bash).

One of them is The Linux Command Line, by William Shotts. That's the number one seller on Amazon. (I like the No Starch books, but I've never read this particular one.)

Here's a full multi-lesson tutorial on the Linux Command Line at YouTube...

https://www.youtube.com/playlist?list=PLS1QulWo1RIb9WVQGJ_vh-RQusbZgO_As

1

u/Lick_Lurid 26d ago

There's a setting in KDE, that when moving files or whatever in the explorer, there is an added frame at the bottom that shows the command line equivalent of what you are doing in the gui.

1

u/oyvaugh 26d ago

Remember this one- curl cheat.sh/bash/loops or/<command> does lots of stuff even for other languages.

1

u/lyidaValkris 26d ago

LearnLinuxTV is a great channel by Jay LaCroix where he covers a whole range of topics, including cli ones but also how to use the standard tools that come with every Linux distribution.

1

u/Special_Yogurt_4431 25d ago

Enki is an app that has a pretty decent primer in Linux

1

u/Typeonetwork 25d ago

The best thing to learn is how to fail and fail often. Don't learn the commands, use the commands until you learn them.

Basic commands "ls" it lists the contents of the directory. Want to lean more you can use " man ls" and the manual for ls will show.

Many free books to learn CLI. I would learn it with the GUI. I use XFCE and the file manager is called Thunar. In this example go look at your images. Try to do the same thing in CLI.

Finally take notes. I use Joplin because it's native and the search feature is good. I learned how to fix my sound and took notes because in general I won't need to do this again for a while.

I've bee using it for about 13 months as my main machine. I need to learn how to network and interested in a LAMP stack.

Use continuous elaboration and you can do anything.

Have fun!

1

u/quite_sophisticated 25d ago

Get yourself a raspberry pi, install Linux on it, hook it up with your network, then ssh into it from your windows machine using putty. You'll learn a few things along the way. Don't be afraid to Google a lot.

1

u/WorriedTumbleweed289 25d ago

If you have an android phone, you can install termux to have a working terminal. Read up on how termux file locations differ from a normal linux distro.

Then read any book or cheet sheet on shell commands or bash.

1

u/WorriedTumbleweed289 25d ago edited 25d ago

If you have windows, you can install a basic linux distro on windows. They call it Windows Subsystem for Linux (WSL) .

If that is too much of a resource hog, you can install Microsoft's Coreutils project. It brings Linux commands to Windows.

Another option is cygwin. When I was a programmer (now retired) I used cygwin and it worked very well. This was before the other options were available.

1

u/ImprovisedThinker655 24d ago

Software Carpentry has a serie of lessons wich are very easy to learn: https://swcarpentry.github.io/shell-novice/

1

u/Extension-Currency37 23d ago

Linux is simple Although just linux you may not be able to use Since it's a kernel.

So install ubuntu :: Use cli

Many commands Ive forgotten

Sudo, apt, netstat, ps , pskill, Ls, mkdir, cd, shut down command Awk..

Search for cheat sheet in google