r/archlinux • • 24d ago

QUESTION Terminal Commands

Hello members of the r/archlinux community. I thought this would be an appropriate place to share my experiences as a relatively new Arch Linux user. Over the past few weeks, I have been using Arch-based distributions, and while it has been a significant transition from more user-friendly distros, the process has been quite positive. I have began to value the terminal rather than feeling intimidated by it. I am reaching out to see if anyone could recommend websites or provide a list of helpful terminal commands that might help me in working more efficiently. I would greatly appreciate any guidance or resources you could provide, and thank you in advance!

2 Upvotes

22 comments sorted by

2

u/Necessary-Iron-4882 24d ago

Hello, you can use this to navigate through you file system
pwd - tell you what directory you currently in
ls - shows what's in that directory
cd - opens folder and makes it your current directory, e.g cd ~/Downloads
cat - shows what specific file contains
These commands may be useful if you work from tty

-2

u/[deleted] 24d ago

Thank you!

0

u/PovUsuario 23d ago

Si quieres que ls y cat se vean mejor te recomiendo los paquetes lsd y bat y creas un alias en el rc de tu shell (zshrc/bashrc) ls = lsd y asi

2

u/K1logr4m 23d ago

Here are the coreutils. I recommend focusing on the Essentials. You can use the man command to read the manual of another command. Example: man ls.

1

u/chikamakaleyley 23d ago

tldr is a useful tool to get some quick/common CLI usage for a lot of your installed CLI

0

u/PovUsuario 23d ago

La he usado pero no me gusto mucho ya que no muestra todos los comandos y algunas flags

1

u/YourLittleMindhive 23d ago

Honestly just reading the Arch Wiki. It hyperlinks to documentation of every command listed on it. If you want to learn formatting and disk management as well as learning how your OS is put together. I highly recommend following the arch install guide. Its also extremely helpful to know how to do file management in the terminal and is way quicker than using a file browser. You can try switching disabling the service for your DE session and play around without a GUI. The best way to think of the terminal is the beating heart of your OS with the desktop environment being a tool to do actions done by the terminal without touching the terminal. Many many different ways to learn.

1

u/epluchette_de_banane 22d ago

https://m.youtube.com/watch?v=ZKJ3_UIqMlM Bread on Penguins - good channel. Distrotube has a good intro to the terminal video as well.

1

u/TheLightIsLeavingUs 20d ago

As fellow beginner, what's been clutch for me is installing the Claude app on my desktop. I do as much as I can myself then let AI help with the more complicated or labor intensive tasks or troubleshoot errors. For me, this is a non-critical laptop so if anything were to go wrong with the AI, I can just wipe it. There's also the risk of prompt injections if you let it run completely wild. But honestly I'm probably the biggest threat to the system.

1

u/Itsme-RdM 18d ago

And no one mentioned tha famous Arch Wiki ? Really

-7

u/[deleted] 24d ago

Hello, I am the original poster. Since I am unable to find the edit function for reddit posts, I have decided to provide some additional details about my journey in the hope that others might offer helpful advice or techniques. I would sincerely appreciate any help you can provide, and I have listed my questions below:

  • In what scenarios is cding into directories useful, and should I be doing this more frequently?
  • Why do certain commands for installing applications fail even when I provide the correct package name?

6

u/bikes-n-math 24d ago

You cd into a directory to change your current working directory. Not sure what else there is to say about it. I cd probably hundreds of times per day.

What commands? What packages? Can't help you without context.

1

u/DaedricPants 24d ago

About the last one, I've had that issue sometimes and updating everything with pacman -Syu before generally fixes it. Probably something to do with the mirrors

1

u/xXBongSlut420Xx 24d ago

no one can help you with 2 unless you say HOW it's failing. "it's broken" without further details is less than useless.

as far as 1, it's mostly about convenience and saving typing strokes. If you are going to be working on a bunch of shit in a directory, it makes more sense to just cd in there so you aren't typing the fully qualified path all the time. even with tab completion this will still save you time. Certain cli programs, like `git`, expect you to be in the directory of the corresponding git repo, and most of it's subcommands will only work if you're in the directory you want to operate on. There might be a way to provide a path to it, but no one does this. There's plenty of other cli programs that also expect you to be in the directory you want to work on.

0

u/[deleted] 24d ago

[deleted] — view deleted comment

0

u/[deleted] 23d ago

Fully updated system, yet certain applications refuse to install even with a valid package name.

0

u/[deleted] 23d ago

[deleted] — view deleted comment

-1

u/[deleted] 23d ago

I would have to double check, but I would be inclined to say no.

-7

u/[deleted] 24d ago

[removed] — view removed comment

1

u/[deleted] 24d ago

I have learned that nukes your entire system. Would not recommend.

-4

u/un-important-human 24d ago

you sound just like my local clanker, you are that llm, i am supervising you. Do you understand my instruction?

3

u/[deleted] 24d ago

Beep Berp Boop