When an alias overrides an existing command you can bypass the alias by escaping the command. I too have alias df='df -h' If I want to run the alias I enter "df" If I want the command I enter "\df"
a good alias is the following alias rm='rm -i' this little nugget will force the rm command (remove) to inquire "Are you Sure...?" this has been a lifesaver for a friend of mine
As a new user Linux and Ubuntu I’d like to express my sincere thanks for the many tutorials you have made clearly detailing the use and power of the Terminal etc. Do hope your cold gets better soon, try a mild warm saline solution as a nasal wash it's an old remedy works wonders for most folks.
Thank you again Joe! I just added your "update" script to my .bashrc file. Works perfect! (but you knew that already lol). I have played in the Linux world before but didn't stay there, I am back and still have ALOT to learn. I am concentrating on learning bash. For the record, I LOVE Linux Mint. I used Cinnamon and MATE before, (mostly MATE) but am now running the KDE desktop on Mint 18.2. KDE is great! P.S. You are my number one channel for learning Linux. The way you explain things makes it easy for me to follow.
maybe its just me, but Im using manjaro and I've had to open the terminal probably every hour, so as user friendly as it is, the terminal is still a huge part of the OS
So, firstly great job as usual. secondly, new linux doesn't require an equal sign. So the alias date and time should be written as: alias time-date 'date && cal' That's all folks.
If you have an alias set as 'df -h' you can still run df -k to get it in KiloBytes. The second option is to type the full path to the command like '/usr/bin/df'. The third option is to run 'unalias df' which will remove the alias for that session.
Hi Joe thank you for making all your Linux how-to video tutorials. I've learned a great deal of useful Linux skills from your RU-vid channel. Many thanks.
You can still run the original command by referencing it's location. In the example of 'df' you can type '/bin/df' and that will run the un-aliased version. you can get the location of the program by typing 'whereis df'.
agreed, but as you said for the few edge cases where you have to do it, it's only a few more characters. I should say your videos are well done and I'm glad to see someone taking the time to explain this stuff to people that don't know. I don't want to sound like I'm nitpicking. I just wanted to share some knowledge.
Fantastic video - the syncit script is the thing i was most interested in as that was what I was thinking bout when I asked for a link to the video where you set up Cindy's laptop. This is why Linux is so awesome, because you can do all-sorts so customisations (if you want to) or not.
You can put scripts and code you compile yourself into /usr/local/bin and it will become a system-wide command. You can also create a /bin directory in your home folder and put your scripts in there. Ubuntu systems will automatically add the /bin directory in your home folder to your path statement. Whichever works best for you. :)
BASH is relevant if running MS Windows 10 with the WSL installed then you can install the whole of UBUNTU Unity Desktop inside of BASH but the windows version of the X.ORG Xwindows Server needs to be replaced with the UBUNTU version of X.ORG Xwindows Server, Joe you know all of this this is targeted at other people watching this, I love these blogs thank you.
You should know that any changes made in /etc/skel directory are going to be copied to every new user account you create in the system. Don't put your private aliases/functions in the skel directory.
Joe another super excellent video. My Linux life is a blessing bestowed by you. I was so afraid of alias and you made it so simple. Ironically DF and LS led to my first scripts. After your sshfs talk more scripts. Now after seeing this I need to rework it all. I just have a couple of questions. Why not work wakeonlan into your scripts just in case one of the others are suspended? Does your update script automatically perform kernel updates? God bless you Joe you're a good man.
not all newbies are afraid of terminal...I started using linux last december and 2 weeks ago i installed arch linux only using a terminal i mean THE ARCH WAY....
Ahmed Omar you know how to spot another arch user? He will tell your about it ;) I really think that this way of installing is a ton of fun! I use arch btw! ;)
Great video ! -- I'm always in search of some beautiful styles themes. So may I ask you where have you got this theme of xed, please ? These orange fonts of commands on a dark blue background, nice... I only know, in the editor you have to go to settings, then themes, and then via the +-sign import the new theme... But whiche style name is it. Thank you very much.
Is the terminal on Mac the same as that on Linux? I am using a mac and was wondering whether I can use the linux based video tutorials regarding terminal interface. Thank you.
Scaring off new users with a terminal... the 'terminal' is about power and new users shouldn't be afraid. What they're REALLY afraid of is the challenge of learning it.
If you gave all your machines symbolic names in /etc/hosts, then you wouldn't need to maintain 192.168.0.X in all your scripts and aliases. You could just reference the symbolic names and then update the single place in /etc/hosts that defines them if your router changes.
That only works if you setup static IP's and/or have a host name server running. In my case, I setup static IP's and use an alias so I type in the specific number of the machine. Works fine... :)
Hi, noob here. Following on Joe's tutorials, I tried to write a script with nano using the alias command. Alias works fine if I execute it right away from the terminal but doesn't work when executed from a script. Does it just work like this or am I missing something?
make video about truncating very long folder names with PS1, I want to it truncated to max 8 chars with color indicatin symbol that it has been truncated, ty!
i must have something broke after i put in my psswd for a command I get error unauthorized or some other kind of error oh and i want to tell you that you sold me on Linux just wish that could get it to work right ??
Joe, I know this is way off subject but, have yo seen this with using Firefox? I am using Ubuntu Mate and this morning I got the following which is hard to get past.
Hello Joe , good work... A little Bit fast for me as a "re-bie" aka "iveputmynoseintolinuxstuffalongtimeagoanddecidedtotrieitagainguy", but i've enjoyed watching this... Is it possible to get a Copy of your .bashrc to get an Overview of all the stuff you put in there? It would help me a lot. ;-):-)
Great video, I'm using the sshin alias now. I have a question though, I can ssh like crazy as long as I'm under the router, but I want to ssh to my home computer from the outside? I've tried and tried to do this and I just can't. I've tried to ssh to default gateway, but how can I make the router know to go to 192.168.1.2 ? Sure would appreciate some advice? Thanks!
That can be tricky. Here's a nice overview of what's going on and how you might be able to do it: juliansimioni.com/blog/howto-access-a-linux-machine-behind-a-home-router-with-ssh-tunnels/
Sir your tax is hiding the command line so plz take care of it when u are typing at lower part of screen plz make clear screen so we can see the command too. I m beginner. Each and every step u do i want to see.
At 25:25, where you had cp .bashrc .bashrc.bak if someone did mess up and wanted to revert to the backed up file, would he mv .bashrc.bak .bashrc or cp .bashrc.bak .bashrc Is there a difference?
And if you want to be really nerdy, you'll use 'cp .bashrc{,.bak}' and 'cp .bashrc{.bak,}' respectively. Can save you a lot of typing, when the paths and/or filenames are longer.
I am trying to create a function that will change the directory and display every item inside it. A combination of cd and ls. It's not working though, and i'm not sure why. I'm using this function: go () { cd ls return } export -f go
the cd command doesn't know what to do... Try this: go () { cd "$1" ls return } export -f go At the command line you'd type 'go /etc' for example. The first argument is stored in a variable called $1 so anything you type after 'go' will; be fed to the cd command. I wrote this up in a script and it works fine. :)
Don't get to excited. There's another problem. It won't change the directory and stray there. So, it will ls it but it won't go to it for some reason. Therefore, it's the equivalent of just plain old ls... Thi is a head scratcher. Damn. LOL :)