Ninguem,
@Ninguem@lemmy.pt avatar

Someone already mentioned The art of command-line. It’s a start.

And just use it… you’ll get better at it with time and practice.

Also, make sure your use of the CLI enhances your workflow, or it won’t work.

bzImage,

When i first started woking at a Unix maker… my task for my first 2 months was to know and document every file in /etc, /usr/bin/ and /bin…

After that month, my mentor ask me …

what /usr/bin/ldd does ? and show me an example.

BendyLemmy,
@BendyLemmy@lemmy.ml avatar

This is a bit of a pointless question. Also, not quite making sense… because ‘workflow’ can mean absolutely anything.

I enjoy using Dolphin (KDE) because I have a terminal window at the bottom (F4 toggles it) which is tied to the GUI - so if I do ‘zi’ to jump to one of my video, or document folders, then the GUI follows… best of both worlds… and it means I can manage almost as well without the GUI, though not quite so well without the terminal.

You should aim to do things the most efficient way, without predetermined ideas about whether to use GUI or terminal. I use terminal to listen to radio, but not to edit pictures or videos.

When you get to your desktop, certainly start with a terminal open… I like Kitty - easy tabbing and splitting means I can do tons of stuff in the one window.

You learn by using, researching, and learning. That’s how you can get better. You can also do a lot by trying different shells - for example, I run Konsole (with ZSH) and Kitty with FISH - so they’re quite different to use, and each has benefits.

kool_newt,

I recommend making a project for yourself, maybe start out with a trivial script, and move on to something with control structures (e.g. if this then that) and variables, and tests, e.g. VALUE=8; [[ 8 -eq $VALUE ]] && echo 'they are equal'.

qjkxbmwvz,

First thing I'd do is ditch the GUI file manager: get comfortable with cd, ls, mv, rm, etc.

After that, maybe start with basic text manipulation, like grep, awk, sort, uniq, etc. This ties in nicely with IO redirection, which is essential for a "CLI based workflow." Get comfortable with pipes and file redirection, it's extremely powerful!

Writing shell scripts is another super useful exercise: any time you find yourself running the same set of commands multiple times, think about making it a shell script. You may end up with some really useful little custom tools that way.

nyan,

Switch to Gentoo. Either your command-line abilities will improve, or you will run screaming into the night before you manage to get X (or Wayland) up and running. 😜

kool_newt,

Trial by fire!

bionicjoey,

Linuxcommand.org is a great start

mim,

Lots of people are suggesting using TUI applications.

While I don't disagree that will make you more comfortable spending time in the terminal, you're not really getting better at the command line (CLI).

I recommend you learn the basics of how the shell works. This is a good resource: https://effective-shell.com/

user_disagreement,

I recommend replacing GUI apps that you use one by one with CLI apps, I started by changing my file manager to ranger. Don’t rush or you may get overwhelmed and don’t interrupt your workflow too much. Next I started using media players, video editors, and even steamcmd to launch games, try to find a replacement for GUI apps searching online. This list is a good place to start;

https://github.com/agarrharr/awesome-cli-apps

Presi300,
@Presi300@lemmy.world avatar

Just... Use it more, really the only way to get better at something is to do it more.

Cyfress,

Focus maybe on some CLI tools, like text editor. I use Vim, it was pain to learn but been worth it, since you don't have to leave the keyboard for anything. Once you learn the layout you can use it in other IDEs that also, many have plugins or built in support for Vim layout (JetBrains IDEs do) so I can use the same key map in desktop apps to do C# and C++, etc..
Also use Vim Mode that mode in the https://obsidian.md/. Which is great since you can also use Vim in the CLI to edit the Markdown Files.
Good Vim Cheat Sheet, bit confusing but as you get use to VIM it makes more sense.
http://materials.ucsd.edu/doc/vim_cheat_sheet_for_programmers_screen.pdf

Also this book is pretty handy, the 3rd edition dropped GUI apps and focuses 100% on CLI.
https://linuxpocketguide.com/
Handy if you have a Steam Deck also.

Crow,
@Crow@lemmy.world avatar

The trick is to xdotool the cursor around the screen and to simulate keystrokes.

steph,

Unplug your mouse. Seriously. Do it. It might sound like the "kicking and screaming" method but you'll learn to rely on your keyboard even for GUI tools and you'll vastly improve how fast you navigate your computer. You should find yourself more and more in the terminal, obviously, but you may learn also some nice tricks with everything else.

Cyfress,

Solid advice.

iso,

what do you mean with "CLI based workflow"? If it's about not using the gnome utilities like wifi, just check the arch wiki, pretty much everything is explained in there

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines