Hey Luke, I really appreciate how you target these videos to everyone from beginners to advanced users. Your videos are very approachable and I always learn something new.
For those who are wondering: /etc = Et cetera (latin for "and the rest") - so "etsy" would be a correct pronounciation /usr = UNIX System Resources (and not "user"... that's what your home directory is for)
You’re assuming the Romans spoke Latin the way G̶e̶o̶r̶g̶e̶ ̶W̶ ̶B̶u̶s̶h̶ an American speaks Spanish. In that case ‘et cetera’ would be pronounced et seetuhray. Thing is, nobody really knows how the Romans pronounced their Latin (liturgical Latin b.t.w. Is not the same), although it’s generally assumed the c would have been hard (like in cat); e.g kaisar (caesar). But hey, since nobody really knows I guess anything goes eh...
No, /usr really meant user home directories and user resources in original old UNIX Sys3 and SysV file systems, it is short for "user" as it was the directory of users. Only later did /home or /users become the default directory for user home directories. I dealt in SysV on a 3B2/600 and early Xenix systems before Linus ever did his thing, they all defaulted to /usr for user home directories.
Luke, recommend to try bat. And a tip for your alias: try to figur out how to antialias a command after hit space like in zsh. Its better for your history 🤓
0:56 Just a note that bashrc is only automatically invoked by non-login shells, so it’s either-or: either the new shell will run the profile, or the rc, not both. I find this annoying, so the best thing perhaps is to have the profile do little or nothing apart from automatically sourcing the rc, so you get the same definitions available either way.
was surprised to see such a small .bashrc, I really thought it was going to be +1000 lines. I have a terrible memory so I prefer having all my favorite aliases in there and then just running a search bash alias [sb] if I forget.
Pretty much all of the aesthetic hacks in his bashrc is built into fish shell. U get some really sexy command completion there as well by default. I don't think I've tweaked my fish config one line other than the login script and color scheme, which really speaks for the sensible defaults that fish has
6:08 zsh is the default shell in SystemRescueCD, and I discovered that it has one irritating habit: stripping off the trailing ”/” from a directory name *after you have typed it.* This causes problems when trying to do an rsync, since the behaviour is slightly different depending on whether the source directory ends with a “/” or not.
Then you probably turned that option on without realizing when you copied someone's ZSH config. (Been there, done that) I use ZSH and I don't have this issue. The closest would be that when autocompleteting it will render a trailing slash that isn't there and is removed of you press space or something rather than typing it out yourself first. But you said that you wrote it and it's still stripped off.
Does it not bring trouble using /home/luke as home directory for root? If you create files, they are owned by root:root which you cannot conveniently move/ delete without another step. Or do you have a smart workaround for that?
Hi. Just checking your video now (From France !!) and I'm interested in your .profile file. Do you ahev a git with it ? Can you source things that are common to all the shells ? (like aliases, exports, prompts ?)
Hi, I am a Linux noob, I don't understand which type of terminal are you using? How do you quickly open new windows nicely docked in their place? Also these terminals seem to be borderless? How can I get these? Please tell me.
Not watched this video fully yet but one of the main reasons I use oh-my-zsh is so I can use the arrow blocky things that are in some of the themes. And I changed it so that if I'm root then it changes the background color of a couple of different blocks. One thing I'm not a huge fan of about The omz is because I have a lot of the additional blocks. There's is a delay when it builds the PS1. Also I have battery life information on there because it builds the PS1 after each command if I haven't run a command in a while it will show the wrong batter information.
My favourite evil thing to put in someone's profile or bashrc is `yes >> .bashrc' It's not usually destructive, just quite funny, and it looks quite unassuming
You should be able to use su with your /home dotfiles. Here's the option: -m, -p, --preserve-environment Preserve the entire environment, i.e. it does not set HOME, SHELL, USER nor LOGNAME. This option is ignored if the option --login is specified.
Regarding your syntax highlighting, you should checkout sharkdp's bat. It's a clone of cat that implements syntax highlighting as well as git diffs. It's written in rust.
I alias 'pacget' to 'sudo pacman -S' and 'pacupgrade' to 'sudo pacman -Syyu'. And 'pacs' to 'pacman -Ss'. Does that make me a noob? I also know the actual commands. And how to navigate the man page quickly when necessary..
Yes, as long as 1. the two distros use the same commands to be aliased: for example, in Ubuntu the install command is `sudo apt-get install`, in Arch is something like `sudo pacman -S[something else I don't know because I don't use Arch] 2. and also the same config configuration in things different distros can have different, like use /sbin to separate super user binaries or just /bin for every binary (probably they won't change THIS, but some other maybe confusing scheme in these not-children-of-home folders). But this should be counter-compatible as long as you're not messing (or even care) about this sort of folders
Hi Luke was wondering if your still running Void Linux on one of your laptops. I watched your video on it and was thinking of giving it a try. I'm a long time Gentoo user who switched to Arch about a year ago and wanted to try something else without systemd.
Instead of setting root's homedir to your user's homedir and instead of aliasing "sudo edit", use the command `sudoedit`, it runs your editor as your user and thus uses your .vimrc and then save it as root,
I'm pretty sure it was in this channel I learn about a useful command to watch a file/folder and do something else upon any change. I can't remember that command. I think it was three letters... Couldn't found on duckduckgo/apropos so far.
Luke I'm using your neomutt wizard and whenever gnupg timesout I have to re enter my password manually each time to get a notification regarding new mails. Is there anyway to fix this behaviour?
@@dhiegov oh I am so sorry dhiego, I was talking about the letters on top of the basrc file that said bashrc with special characters.. and actually I figured it out. Thanks for responding anyways.
@@_SkyEye 😂😂 I was talking about using bash in vim mode. As opposed to the standard emacs mode. If you do end up learning vim, look it up, it helps you use the same muscle memory on your bash prompt. Ctrl-L and Ctrl-D still work with default bash. Try them out!
@@alkeryn1700 True. I tried fish when it came out a couple years back but I remember it being kinda funny. Seems much more stable now. I still haven't run into anything weird yet. Will chsh to default once I feel it's decent. Zsh is still default for now.
@@Pichelinou Not my case, zsh have some great autocompletion and suggestions, help menus so you don't need to use -h on commands or read manuals most of the time Also you can have way more customed prompt and generally your zsh can behave exactly like you want it to
[Bash-it](github.com/Bash-it/bash-it) bridges the gap between zsh and bash quite nicely. I mean its not complete drop in replacement, but its quite close. I like bash because its everywhere. I can ssh into any of my servers and be sure bash will be there. not so much for zsh. And I don't like the idea of using one thing on local and another on remote.
Hi luke. I've been investigating for a couple of days now on how to make a usb from which i can simply plug it on to my Macbook and use arch linux as the OS but tutorials and the archwiki never really specify whether what they are showing is exactly what i want and I'm afraid of erasing my MacOS system. Im not a total begginner on linux but im just scared. To sum up, i Want a usb that contains a totally configured and working desktop enviroment to build my own custom rice :). Hope to hear from you soon, thanks
What you are seeking is a `live distro` or `live medium`: one that you can boot and run normally from a USB drive. As far as I know, you can do that only by booting from your pendrive at start up, which you configure by pressing some function keys (f1-12) (varies depending on your computer manufacturer) on you computer start-up.
On the topic of security giving your root user the same dot files as your main user is generally pretty insecure because if i can exploit your main user I can easily privesc using some code in the dot files. If root calls a shell for some reason (for example running a script in a cron job) it will execute whatever is in that dot file - which can be some nasty shit. you're probs OK since this is a home PC and not a server but just FYI.
hi, my terminal is gone. all I can see is : "Last login: Tue May 5 08:29:01 on ttys007 [İşlem tamamlandı]". (it means "job completed") I was making sth about bash profile and trying to save sth, I think i did sth wrong and terminal is not responding now, whatever I push. how can I fix it. even apple doesnt know, I called them. how can I fix it. On the top, its written that " Terminal -- java_home --bash 80X24".. thank you..
Since you mentioned highlight, have you ever tried bat. It is a replacement for cat written in Rust, but it is so much better. you can find it here: github.com/sharkdp/bat