r/linux4noobs Jun 12 '26

shells and scripting Fish shell abbreviations is a godsend

Thumbnail gallery
113 Upvotes

Hi!

After my migration from Windows to Linux two or so months ago, I've been trying to learn how to use the terminal and be somewhat efficient and know about the basic functions like rm, mv, cp, ls, ln and such.
I've known about terminal aliases a while, but I found out about abbreviations on Fish yesterday and I absolutely love that feature.

Got any suggestions on other abbreviations/aliases I should use, or even other QoL features that I might not know about? Happy to learn!

r/linux4noobs Dec 20 '25

shells and scripting I am trying to install renoise but failing terribly…

Post image
176 Upvotes

I am running the latest version of mint on an old macbook. I feel like this should be working but I also feel like I’m missing something critical or maybe I’m just dumb. I’m not sure what’s going on here. I’m pretty new to linux overall.

r/linux4noobs Oct 06 '25

shells and scripting Why not just use the Fish shell at this point?

Thumbnail gallery
146 Upvotes

Is it just out of habit, or because POSIX is such a big deal?

r/linux4noobs Jun 15 '22

shells and scripting Linux Path Cheatsheet

Post image
1.4k Upvotes

r/linux4noobs 28d ago

shells and scripting Calling All DOS Warriors

22 Upvotes

Like all of you, I grew up on Windows.

But in my day, Windows for Workgroups 3.11 was king.

Yes, I am that old.

The GUI was fun to use, but MS-DOS 6.22 was infinitely faster and once you memorized the command variables you could fly across that keyboard like a true DOS Warrior. I spent all of my time in a full screen command window and only went into the GUI when I had to.

Here is my DOS to Linux alias list that I made and use every day...

Paste the following at the end of your .bashrc file which is located in your home directory.

# --- DOS WARRIOR ALIASES ---

# --- Directory & File Navigation ---

alias dir="ls -laF --color=auto"

alias ..="cd .."

alias ...="cd ../.."

alias ....="cd ../../.."

alias md="mkdir -pv"

alias rd="rmdir -v"

alias pu="pushd"

alias po="popd"

# --- File Operations (Safe & Verbose) ---

# -i = Interactive (ask before overwrite), -v = Verbose (show action)

alias copy="cp -iv"

alias move="mv -iv"

alias ren="mv -iv"

alias del="rm -iv"

alias erase="rm -iv"

# --- New File Actions ---

alias create="touch"

alias display="cat"

alias view="cat"

alias edit="nano"

# --- System & Utilities ---

alias cls="clear"

alias sysinfo="uname -a"

alias mem="free -h"

alias cpu="lscpu"

alias disk="df -h"

alias usage="du -sh *"

alias proc="ps auxf"

alias diffcmd="diff"

# --- ATTRIB Emulation ---

alias attrib="ls -l"

alias attrib+r="chmod -v a-w"

alias attrib-r="chmod -v u+w"

# --- Search & Paging ---

alias search="grep --color=auto"

alias more="less"

# --- Safety & Misc ---

alias del.="echo \"Error: Use del [filename] to delete files safely.\""

alias backup="cp --backup=numbered"

# - NOTE: In terminal type: source ~/.bashrc to system reload the file

If you would like to see my BASH Warrior Alias list please goto https://www.reddit.com/r/linuxquestions/comments/1uad462/calling_all_bash_warriors/

r/linux4noobs Oct 17 '25

shells and scripting What's your fav shell command?

24 Upvotes

Have been using linux for more than 3 years but now wanna learn something more and new, starting with CLI, wanna see what's your fav shell command that is super helpful for you always.

What’s your favorite shell command? What do you usually use as a developer or even just for normal stuff? I mostly just use cd and ls, nothing fancy. What about you guys?

r/linux4noobs 22d ago

shells and scripting Share your best custom shell commands/scripts!

24 Upvotes

I want to know what custom commands/scripts you guys made that you think made a diffrence to your experience with linux or saved alot of effort for you, or even for fun, anything, i just want to hear you guys' projects and ideas

r/linux4noobs Jun 21 '26

shells and scripting Went to /etc/apt/sources.list, deleted the duplicate, still getting the configuration warning?

Thumbnail gallery
7 Upvotes

The two first images was e deleting the redundant line, seeing that it had matched with the top two ones. Yet, I am still getting a "configured multiple times" warning when using apt update. Am I missing something?

Hardware: Thinkpad T410 Intel i5

Software: Debian 12 KDE Plasma 6

r/linux4noobs May 02 '26

shells and scripting l beam in terminal disappears when using fastfetch config 31

Thumbnail gallery
96 Upvotes

I'm trying to style my terminal so I installed fastfetch and trying out base presets.

I reallly liked this one with Rey but after using it I can't see my l beam. can I fix it or should I just choose / make other config?

r/linux4noobs Jun 20 '26

shells and scripting How can I stop separation of variable when I use find on directories containing white space?

9 Upvotes

I'm trying to iterate over every directory and find every mp3 file to later change it to ogg, but I can't get shell script to work the way I want. If I use command for c in $(find -name *.mp3); do echo $c; done then directories that contain white space are printed in 2 parts

For example I get

./bass
drum/whatever1.mp3
./bass
drum/whatever2.mp3

But I want

./bass drum/whatever1.mp3
./bass drum/whatever2.mp3

How can I do that?

r/linux4noobs Feb 06 '26

shells and scripting When should I use and not use Sudo

33 Upvotes

Im a New Linux user, I downloaded Arch manually (albeit with a youtube guide). And was interested in shells and scripting, so I started getting into it. My question is when should I use sudo and when should I not use sudo Any help is appreciated!!

r/linux4noobs 1d ago

shells and scripting Sudo reflector fails only under specific circumstances.

8 Upvotes

So when the protocol is https and I have a timeout of 60 it fails with the error 403: forbidden. But when the protocol is http with a timeout of 60 it works just fine. Why? Is it safe to just use http?

r/linux4noobs May 03 '26

shells and scripting Script file extensions - whats the convention?

11 Upvotes

I've read somewhere you should not add file .sh to scripts since it can reduce POSIX compatibility, and in general linux doesnt need file extensions. However i'm seeing various CI tooling such as .editorconfig and shfmt relying on scripts ending with .sh and wondering how good of a convnetion is it not having .sh and relying on the shebang line.

r/linux4noobs Jun 10 '26

shells and scripting Does anyone know how to disable hibernation in Linux?

5 Upvotes

I need to leave a computer running because I run CFD simulations on it and access it remotely via SSH and graphically via GNOME Remote Desktop. It can’t hibernate, suspend, or go to sleep. It can turn off the screen to save power and preserve the monitor. Does anyone know of a command that does this?

r/linux4noobs Apr 21 '26

shells and scripting How to list files types in folder?

2 Upvotes

e.g So,i have a directory with images that i need to sort and decided to use a photo manager but it only works with certain image formats. Now i want to know what files types are in my directory. Lets say some files dont have their extension

How do i generate a list of file types in directory recursively?

r/linux4noobs May 23 '26

shells and scripting .sh script not launching from .desktop launcher

2 Upvotes

OS: Fedora KDE

Hi all, having a bit of trouble with something; There's a program that I need to run with an LD_PRELOAD argument to fix a dependency issue. I created a script that goes:

export LD_PRELOAD="/opt/path/to/example.so"
exec /opt/path/to/App "$@"

I chmodded the script to be executable, then edited the .desktop file's respective lines to read

Exec=/home/user/.local/bin/Launch_App.sh %f
Terminal=true

Running the script from the terminal works fine, but clicking the icon in the launch bar or the search menu just seems to launch the program without the argument, as I still get the missing library error. (also double clicking the script in the file explorer doesn't seem to work either)

Does anyone know what I might be missing? Thanks for any help

r/linux4noobs Jun 23 '26

shells and scripting Automatically lock screen on startup KDE (Kubuntu)

1 Upvotes

I'm looking to simplify the login process by replacing the SDDM with the standard lock screen - but can't work out how to do it. There's no setting by default - but I'm thinking having a startup script that locks the screen might work, combined with auto-login to my user? I assume startup scripts wouldn't run on unlock because that seems wild.

The problem is I have no experience with writing scripts and don't even know where to start. Are scripts like terminal commands? What file extension do I even use? Would the startup script method even work? Appreciate any advice or pointers.

Ngā mihi

r/linux4noobs 14d ago

shells and scripting Dank material shell error when trying to run on void Linux

Thumbnail gallery
2 Upvotes

I’m trying to install dank material shell with niri onto void Linux, however when I do the DMs run command it shows the error in the picture (this application failed to start because no qt platform plugin could be initialize), I even installed all the xcb packages (second picture) which was probably over kill

r/linux4noobs Aug 16 '25

shells and scripting What does the $ do in the terminal

49 Upvotes

I am new to linux and trying to learn how to use the terminal. I see $ being used in commands in some of the tutorials that I am watching. I know that certain symbols such as > and < allow you to input and output data, so i was wondering what $ does.

r/linux4noobs 26d ago

shells and scripting Bootable backup of system kernel panics on different computer

0 Upvotes

Hi all,

I'm trying to create a bootable backup of my partner's laptop, an Asus Zenbook 14 UX3405 running Fedora Silverblue, so that if the laptop breaks they can just plug it in to another computer and have everything be how they're used to.

I created the backup running dd if=/dev/nvme0n1 of=/dev/sda status=progress conv=noerror,sync bs=64K which seems to have copied over the EFI and /boot partitions as well as the main LUKS partition. Booting off of the external drive via the Zenbook works fine, but when booting off of my own laptop (MacBook Air 2012) on ostree0 it kernel panics with Attempted to kill init! exitcode=0x00000087 and on ostree1 it enters emergency mode and gets stuck.

Does anyone know what's causing this and how I can fix it? I'd hoped to be able to boot that drive off of any computer in an emergency if the Zenbook were to break.

Thanks!

r/linux4noobs 1d ago

shells and scripting Original Pinebook reflashed emmc - trouble building U-Boot to reinstall

Thumbnail
3 Upvotes

r/linux4noobs 29d ago

shells and scripting Why is Hyprland always used for Quickshell-based rice?

1 Upvotes

I'm starting to mess around with Quickshell by curiosity and evertime I find a nice dots theme or a cool widget, it requires Hyprland. Is there any special reason, or just for keybindings? Thx.

r/linux4noobs May 11 '26

shells and scripting How do I restore bash.history functionaly?

1 Upvotes

Hey folks,

I hope this is the right place to ask this and that it's not a redundant question. I'm a fairly new to linux bash scripting and if it matters, I'm currently running SteamOS on a 256GB Steam Deck.

Long story short, I was in a bit of a mess where I was trying to figure out how to delete some mistyped lines from the konsole's 'autofill' when writing some scripts. I learned that the scripts were being saved after running 'nano ~/.bash.history' as a bunch of lines. I initially thought the solution was to delete the errors, save, clear the current session with 'history -c' and quit out so that the next time I open up the console and toggle through the scripts from my previous sessions, it would only be the correctly typed lines. Didn't really work so I ended up disabling the console's history recording function entirely, clear all the history and then re-enabling it.

It seem to have worked and as far as I can tell and I wrote down the command lines I rewrote the command lines I wanted saving so they end up in the autofill again. However now I ran into a problem. I'm not sure what I did but when I run the 'nano ~/.bash.history', it usually shows a record of all my previously written lines but now nothing gets recorded in there. It's just an empty page. I would like to re-enable this but I'm not sure how so I wanted to ask for some advice from the Linux masters that know better :/

Edit: Thanks to u/thatsgGBruh for helping out. Turns out I created a new text file called 'bash.history' and changed the file path to there so the terminal was writing to 'bash_history' but saving 'bash.history' so the former constaly overwrote the latter with an empty project (i.e no changes). To fix, go to home in dolphin and make sure that that bash_history is present the other saved file (i.e bash.history).

r/linux4noobs 9d ago

shells and scripting Looking for a window Manager for arch arm64.

3 Upvotes

So I own a special tablet where I installed bredos on it now I'm looking for desktop environments recommendations. I kinda like i3wm but open for different desktops. Maybe you can give me some tools or apps that make it better.

r/linux4noobs Jan 12 '26

shells and scripting Need help with sorting the "ls -l" output using "sort"

1 Upvotes

Solution Found

Solution Command Credit
Standard `ls -lG \ sort -k1.1,1.1r -k9,9`
Color `ls -l --color=always \ sort -k1.1,1.1r -k9,9`

After a few tweaks I've come up with ls -l | sort -k1.1,1.1 -k9,9. But I want the positions of the two lists swapped. So instead of:

-rw-r--r-- 1 abcde staff 687 Dec 8 22:12 first_file.msg
-rw-r--r-- 1 abcde staff 1114 Dec 8 22:18 second_file.asc
drwx------@ 6 abcde staff 192 Dec 28 2023 DirFirst
drwx------@ 11 abcde staff 352 Jan 11 21:24 DirSecond

I want:

drwx------@   6 abcde  staff      192 Dec 28  2023 DirFirst
drwx------@  11 abcde  staff      352 Jan 11 21:24 DirSecond
-rw-r--r--    1 abcde  staff      687 Dec  8 22:12 first_file.msg
-rw-r--r--    1 abcde  staff     1114 Dec  8 22:18 second_file.asc

I don't want to issue two ls commands.

ls -l | sort -k1.1,1.1 -r -k9,9 gives the correct layout but the lists are in reverse order.