Very good primer!
I can also get along without electricity too. And refrigeration.
bkmk
I knew most of those.
The terminal is only extremely useful because of The ‘Net and
Search Engines...[along with cut and paste and editing capabilities].
Jus’ sayin’...
I use Yakuake terminal. It runs all the time and when you hit F12 and it pops down from the top of the screen. I’ve got it set to be 60% of the screen width and centered horizontally. I don’t have to wonder where the terminal will open or how small it will be.
Now, you can run multiple things at once by putting a running command into the background. I'm a bash guy so this is what I know:
./some_command &
./some_other_command
This will start some_command and immediately return control to the shell, where you can start some_other_command and both will run simultaneously.
A couple of other really handy tricks involves piping. Say the some_command program was going to dump a lot of text to the screen. It's going to scroll by fast...or you can pipe that into one of two programs, more or less. Yes, that is their names.
./some_command | more
The vertical bar is the pipe symbol. All the standard output from some_command gets piped into the input of the more program - which shows you a few lines at a time and allows you to page through it at your own pace. Less works similarly, no I really haven't bothered to find out why we have two nearly identical utilities.
There are also 'head' and 'tail' programs similar to more and less that, as the names imply, show you merely the head (first few lines) or tail (last few lines) of the text.
One other good trick is redirecting to a file. Suppose some_command generates a lot of text and you want to save it to look at later:
./some_command > foo.txt
Will dump the standard output of some_command into a file called foo.txt. Or you can get fancy and do:
./some_command > foo.txt
./some_other_command >> foo.txt
This puts the output of some_command into foo.txt, then it appends the output of some_other_command to foo.txt - so you can later read it all.
Ok, enough geeking out for one afternoon.
Why does the title say “every Ubuntu user should know”?
Is this a way if saying “every n00b should know”?
Because AFAICT none of this is unique to Ubuntu.
Oh man... Another “Too techy for you” Linux post. My friend... Are you trying to discourage the use of Linux when there are now full point and click GUI desktops?
Here is a counter argument to terminal “Dependency”...
Aside from the totally capable GUI interfaces most distros have now, I am running into very useful apps but they have no GUI Icon launch access supplied, only terminal commands to start them. Found that it is easy to create a launch shortcut and icon that will automatically perform the launch command for you without needing to put the commands in the terminal. I am going to use Cinnamon as the example but in the link below are the instructions how to do it with other desktops.
For Cinnamon, Xfce, And LXDE, first find and make note of where the launch file for the application is located in your directory. You can find this with a search of your directory using the application name. Or it can usually be found in system files/user/bin/. Or just use the terminal launch command supplied with the app if you have it.
You can then create an application launcher by right-clicking on the desktop background, and selecting +Create Launcher menu. Click on the Create Short cut icon and it will give you a menu of icon types to choose from. Then fill in the app type, app name, terminal command, the location of the app in your file directory using the “Browse” dropdown menu, and then any additional note you want as meta data when you hover your mouse cursor over the icon.
We have a Linux mainframe. It’s basically all I do sometimes. crontab -e
Meanwhile, how many Windows users have even run dxdiag in the Run command?
Excellent post.
flr
I use a Linux app called “easystroke” (horrible name lol), and I have the terminal set to open with a mouse gesture (a “lesser than” symbol <) makes it super quick to open, and the “greater than” symbol > for close)
Another easy tip is that if you type a long command with something wrongmin it, and you get an error, instead of typing the whole,thing over again, use your “up arrow”,to select the previous command you typed, then use your left arrow to move the cursor to the right spot to correct the mistake (which is usually just a wrong letter, or symbol or somethjng)