I am a beginner in learning Linux and other computer stuff. At first, I thought "why somebody is taking 34 minutes to tell about just 10 commands of Linux?" But it is really informative. Each minute of video is worth concentrating.
As Joe explains, when you use the 'touch' command without any options it will set the time of the file you give as an argument to the current time. But it's good to note that you can use 'touch' to set the time of a file to anything you want with the -d option. This option will even understand a bit of natural language, for example "touch -d yesterday file" will set the time of "file" 24 hours in the past.
My 3 most useful at the moment: 1) sudo sysctl -w vm.drop_caches=3 Reclaims free memory, avoid hang ups 2) chmod +x /path/path/filename Makes a file executable (only local disk) 3) sudo apt clean Clean apt cache
As much as I hate coding and boring letter stuff-- guess it's time I learned some of the basic commands at least.. and I wanted to learn from you-- YOU make more sense teaching things...and there's no wasted fluff!!!
Just subscribed. Finally someone who can explain Linux without putting me to sleep or pissing me off with goofy nerd trying to be cool humor or lack of.
You can also search inside of less with "/". "-i" will toggle case sensitivity (though if your pattern has caps it will still assume case sensitivity. "n" for next, "b" for back. Very useful for large text files.
I click on random links about Linux. Just to learn something new, or keep me refresh on commands I already know. That touch timestamp, I really didn't know that one. And will keep that fresh in my mind. That command can come in handy at times. Really like this video. So thumbs up.
Instead of doing: cat file.txt | less you can do: less file.txt Thanks for the which tip, been using linux cli for over ten years and I didn't know this.
Just a little thing with the whole 'less' & 'more' scrolling thing. You can also set buttons to scroll either a half-page or a full page. ex: my half page is 'Shift + Down', scroll full page down 'Shift + Alt + Down'. So if I want to be scrolling half pages I just push shift then the desired direction. For full-page scrolling, do shift+alt then up or down for faster scrolling works great for me!
Great "Linux Level 2" video - once we've gotten past cd, mv, ls, rm, and so on, we now have some cool commands that make life easier for us. In particular, I didn't know you could use shutdown -h as a kind of reverse alarm clock. Also, I find blkid useful for detecting USB drives. Thanks!
Being pedantic again, sorry: strictly speaking, `cd` is a shell command, not a system command, which is why it doesn't have it's own manpage. You can actually find it with `man bash`. But don't do that. Use Bash's `help cd` command, instead. Oh, and also you can `help help`. (Also as a scripter, I went ahead and downloaded the Bash documentation to my local hard drive so that I can study it in a browser.)
I know this is being picky, but sda1, sda2, sdb1, sdb2, etc are PARTITIONS, not drives. sda1 is partition 1 on physical drive sda, and sdb2 is a partition on physdical drive sdb. I think it's important to use the correct terminology, especially for the audience you're trying to reach. I enjoy your videos, though. Keep up the great work !! :-)
I’m glad to see you becoming more for Milyer with the technical aspects of Lenix. Much better than just installing different distributions and playing with different desktops.
"Shutdown -t 2" is useful for updating before bed. It'll finish the update and shutdown. For large updates I recommend "Shutdown -t 5" or 10 depending on the size of the update.
Great video. I just want to add a thing: 'cat' (abbreviation of concatenate) is actually used to concatenate (merge) two or more files. For example: cat file1.txt file2.txt file3.txt file_n.txt We can also redirect the output to, for instance, a file, like this: cat file1.txt file2.txt file3.txt > file_1_2_3.txt file_1_2_3.txt will consist of the contents of file1.txt, file2.txt and file3.txt Again, great video. Keep em coming.
Top 2 commands I suggest first to learn. #1 ' man intro ' #2 ' vimtutor '. If you use those to commands, and read everything contained in those commands, then you wont need to ask for help... for a long while.
Some alternatives of some commands in this video for productivity killall -> xkill ls -l -> la (in some distroes) clear -> Ctrl + L ctrl + alt +f7 back to GUI from tty
CTRL-ALT-T : usually 'open a new terminal', on most linux gui desktops. CTRL-D : how I usually close a terminal (on a blank line. It's the 'end of file' character, which tells bash that it's done, and it can shut itself down) cd : just cd by itself -> it's a shortcut which takes you to your home. No need to type 'cd ~' CTRL-Q ( if you accidentally hit CTRL-S when reaching for CTRL-D, it'll seem like it's frozen... because that's what CTRL-S does.... CTRL-Q tells it to continue) TAB : by far the most useful key, safe to press randomly / multiply. Will try to finish typing filenames or directories, but only as far as it can before there's a choice to make... double-TAB will make it display what choices there are -- type one more letter, then hit tab again. This last one makes the command line nice to use, because you won't have to be touch-typing perfectly all the time. Once you get used to it, the way tab-completion works on windows will annoy -- it's not nearly as nice to you, forcing you to sit there and hit it over and over again while it trys one file after another... So stupid! But that's the biggest difference between Linux and Windows. Annoying things aren't welcome.
The clear command only clears commands from the screen. But if you use history -c, the c option means clear. this will clear everything you typed when you opened the terminal. But if you never use this command before and you think all the commands you have typed are gone by using the clear command then you are wrong. There is this file that keeps all the commands that you have used. This file is called .bash_histor. But that's when you exit the terminal. All the commands will save.
9:50 The WHICH command relies on the PATH variable, it totally ignores other copies of the same executable file on your computer, if not specified in PATH. Actually, nobody says that the paths in your PATH variable actually exist. The main reason to use WHICH is when you have multiple copies of a same-named executable spread out over different structures (path). But, also having those paths in the PATH variable. The order determines which one is used.
10:15 to 10:26.. if it's native windows program or game..here's one way you can do that. right click on your mint desktop..select " Create a launcher" in the command field type the following info below at the beginning. wine start /unix note the one spacebar press between /unix and the exact path of the .exe file ans ensure one space bar press between wine and start .so an example could be wine start /unix '/home/WhatINamedThisPc/.wine/drive_c/Program Files (x86)/amnesia/rest/Launcher.exe' the exact path of that .exe could need either apostrophes or quotations depending on if it lives ín the same drive as Linux Mint...OR if it is a completely separate physical drive. cheers
soooo sooooo useful thanks a lot man I have an exam tomorrow . before I listened to this vidio I have zero idea about this freaking commands 😹😸 but now I'm a professional in 34min 😎💪 isn't it looks so great.
165 haters saw this video 😂 Been a power user for many many years while these videos are aimed at new users I always learn or remember something I forgot. 165 haters 165 dislikes. I don't get it, Joe is very clear on his videos even a noob can get it witch is awesome! We need this MS and Apple are too nosey and downright intrusive on our data. More people need to use linux or bsd. Joe is doing community service here. No matter what the video I always leave a like.
Thanks a lot really appreciate it, outstanding tutorial. One question I am using centoOS however I forgot my root password how can I reset it please, Thanks
I love the entomology of sayings. I have always wondered where the saying " more than one way to skin a cat " came from. Seems brutal, or is it just me? And does anyone else visualize the cat as still being alive? Maybe that is why I see it as brutal. Good stuff. Your bash playlist is the best on the web. Thanks a bunch.
It's late to tell you, but man is only for 'transient' commands. cd is an internal command inside bash (the shell). Help for internal commands of the shell is availlable with -> help so for your 'cd' command you would type -> help cd, and voila: there is the description of the command cd including all options ;) Additional info: cd without any 'arguments' puts you in your home directory, so it's not needed to type cd ~. cd on it's own is enough for going home ;)
My favorite use of touch is to match timestamps with other files: touch -r otherfile.txt And, there are reasons to get pedantic about the three different kinds of time stamps at the more advanced levels: ctime, mtime, and atime.
I might be wrong, but you could actually run 'touch {file1,file2,file3,etc}.txt' and it would create all the files separated by coma with the .txt at the end. Saves a whole bunch of time.
"mkdir -p" is great for ensuring that a path exists in a script, because if any of the parent directories are missing it'll create them for you as well.
Very good tutorial! I'm a long time Linux user and just wanted to check out your lessons. I will definitely recommend you to some of my students who are looking to learn about Linux commands. Aloha!
As for "which" command, I didn't know that one but I use "whereis" This command will not just tell you where the launch file is but will tell you where all the files related to the program are. It will often give multiple directories for libraries and other related files.
to copy from terminal use ctrl+ shift+ c, to paste use ctrl+ shift+ v to open a new tab in terminal use ctrl+shift+t. to close a terminal tab use ctrl+ shift+ w.
One thing I do with timed shutdowns is initiate a long download (say, a new Linux iso from somewhere) before going to sleep, look at the expected completion time, add a little for fudge factor, and tell the machine to 'shutdown -h' plus that amount of time. I also like +0 as faster typing than "now".
I do that also on torrents. So it gets some seed time also on the distro iso and if it didn't finish, my download would just resume when I go back into the application.
+Joe Collins Cool. I see. The Linux Foundation offers training courses. I audited the SysAdmin "Introduction To Linux" course and it was very good. They offer Programming and Engineering courses as well It's a good place to start. www.linux.com
In addition to these, I find top (which you briefly mentioned), kill, ps, and fg very useful. If you make a sequel video to this, I would suggest those as possible commands.
The ctrl alt F4 real terminal has been a saver for me although on a serious hang the TTY has been slow to process the login before I'm able to type "reboot." I only learned recently that ctrl alt F4 followed by ctrl alt del cuts out the authentication and its wait to give a clean shutdown/reboot
Very gud. Presently i am working to take my Linux knowledge to the next level so hopefully this time next year i too will be capable of making videos like this!
With the terminal in live boot I was able to remove a couple of files in my Pop-os install where I accidentally filled up the place with virtual disks of several GB and stopped the system with 0 bytes of free space. The startup worked after that. 7-8 GB of free space was required to show me a login. It's complicated to make oneself root/admin in Linux and give permission to be all over the place, but it worked and was funny to try and solve something like that. I think most terminal commands are well explained on the internet now.
Man, Puppy Linux is weird. One thing it does is opens a browser when you use the "man" command. I'm always root, unless I choose to be "Spot" (it says somewhere why, but I'll have to read up on that again). This is all so cool, though. Two months into playing around with Linux! I'm only mad at myself for not playing with it years ago.
One command I find odd that isn't installed is traceroute (I know there is a package you can install). That along with the ping tool are very much needed to find a fault in a connection to a server. It can tell where the "break" is. It's helped me on Windows systems to find out that a local server was down. (Corporate server in another location). The fix was to force a reroute to a backup server. The reason it wasn't automatic was because the other server was 3000 miles away and didn't have everything that was needed. It was better to see it down so that it could be fixed quickly.
Don't scare DOS people by talking about touch command! :D Well, IMHO it's most useful to test inside .BAT file (:D) if you have write permission to file/directory . I love shell scripts. Had to install WSL to my windows-PC at work to write script. And to compile some C. Of course I installed Linux on virtualbox (and other instance into real partition (and after that claimed to boss that I really need new SSD because I am running out of disk space) to feel as I were home. (Linux user since 1995. Yes, I am old). But I need to use f*king Autodesk apps at work, so windows is going to stay at that computer:( Cheese... starting to be too much drunk and hating windoze. Why not. Edit: Nice video. Satisfied my daily Linux needs. Subscribed. PS: Please do video about awk. That will really make GUI people go nuts!
I learned the which command. I had always used the Find / -executable -name file.ext. Debian is the root operating system that many of the others are derived like ubuntu and mint. I also use apt-get and dpkgs for installing and removing packages.
Hey Joe what do you think is best Linux mint or Ubuntu, I used to use mint as main os for a while, I felt like there was a lack of support and help for newbies and people where not very friendly in forums etc so i went back to win 7. I find your videos very helpful I'm itching to try Linux again.
First thing should have been " how to open my terminal other than going into the menu, looking for the command and executing it". I use shift T or K for Terminal or Konsole, pretty sure there's a better way though?
Typical of Linux, I can not find the keycombination anywhere. Not in any step by step guide of opensuse, nor any forum, I spent 30 minutes googling it. T y p i c a l and quite enraging. A keyboard environment that relies on the mouse :p
Sounds like your distro didn't enable it. Search in your menu for 'keyboard shortcuts' and open it. Scroll down the list to 'run terminal' or 'open terminal' select that line and press control-alt-t. It should show up in the command column. Save the setting. Now it shoudl work.
I agree, looks more for beginners but that is fine. You gotta start some place and the CL gives you options and is very powerful tool in Linux. Don't be intimidated, learn these and then keep adding new ones...8-)
To kill FF while retaining all tabs, "killall -9 firefox" is helpful. Chromium is a bit trickier, though. This is what I do: alias kill_chromium='kill -9 `pgrep chromium`' which(1) says where *in your search path* the file is, not where it is. You need find(1) or locate(1) for that. I like mtr(1) instead of ping, because some sites block ICMP echo. What about "more longfile.txt"? "su - cindy" brings you to her $HOME, and in her context. "cd" is built into bash, so you type "help cd".
Want to clear some kernels. Space? Sound (dummy terminal ). Desktop. Audio card analoge stereo. Have to show where sound is by unplugging and plugging.
The job is programming based. Mapping, controlling datasets and data statistical analysis. But understanding linux is a prereq, just don't know what I should begin to learn/experience about linux, other than just being a user.
Hi Joe, I have a simple problem, if it's in Windows, it wouldn't be a problem. I use Linux Mint 18.1 and this is the scenerio: Nautilus told me I have an internal drive name ABC and a USB drive named DEF. I would like to copy file from drive ABC to drive DEF, how would I issue the command in Terminal??? Please help me! I am a Linux neubie. Thanks a lot, Joe.
what reason would there be for 'which' not returning me anything, no matter where I am or what I'm searching for? it's the only command I've come across that doesn't do what it's supposed to. Also, when I run any of the shutdown variations, I get System has not been booted with systemd as init system (PID 1). Can't operate.
You don't have to "cat" a file to the "more" command on Linux/UNIX: more [options] [file_name] That was a requirement for the DOS "more" command. It is often useful to pipe the output from another command to less/more.
This was amazing! I just subscribed. I had to listen to the first minute for a few times to make sure you weren't T.J. Miller, and I'm still not convinced...
ok, interesting, i usually want to kill just one tree of processes. killing other peoples processes would cause problems. I would first, of course use ps -ef | grep (process name) | more to find the process i want to kill@@EzeeLinux
export PAGER=less The man command, among others uses this. Most Linux systems have it set this way, but you might find that it's something else on some systems. Also, I always thought it was funny that AIX hardware techs would use the really primitive pg command, which still exists, and is useful when working at the really, really low levels that hardware people often do.
I am a beginner in learning Linux and other computer stuff. At first, I thought "why somebody is taking 34 minutes to tell about just 10 commands of Linux?" But it is really informative. Each minute of video is worth concentrating.
As Joe explains, when you use the 'touch' command without any options it will set the time of the file you give as an argument to the current time. But it's good to note that you can use 'touch' to set the time of a file to anything you want with the -d option. This option will even understand a bit of natural language, for example "touch -d yesterday file" will set the time of "file" 24 hours in the past.
really??? if so than its coolllllllll
Good to know. =)
My 3 most useful at the moment:
1) sudo sysctl -w vm.drop_caches=3 Reclaims free memory, avoid hang ups
2) chmod +x /path/path/filename Makes a file executable (only local disk)
3) sudo apt clean Clean apt cache
As much as I hate coding and boring letter stuff-- guess it's time I learned some of the basic commands at least.. and I wanted to learn from you-- YOU make more sense teaching things...and there's no wasted fluff!!!
Just subscribed. Finally someone who can explain Linux without putting me to sleep or pissing me off with goofy nerd trying to be cool humor or lack of.
+nakternal Thanks. That's what I'm trying to do :)
Agree
:)
Totally agree
nakternal
If you're using Linux you're already a nerd - might as well wear the label proudly.
You can also search inside of less with "/". "-i" will toggle case sensitivity (though if your pattern has caps it will still assume case sensitivity. "n" for next, "b" for back. Very useful for large text files.
I click on random links about Linux. Just to learn something new, or keep me refresh on commands I already know. That touch timestamp, I really didn't know that one. And will keep that fresh in my mind. That command can come in handy at times. Really like this video. So thumbs up.
The "touch" command is probably one of the primary ways why you would need to use a terminal in the first place. Great one!
Instead of doing:
cat file.txt | less
you can do:
less file.txt
Thanks for the which tip, been using linux cli for over ten years and I didn't know this.
Some commands needs you to do that
Just a little thing with the whole 'less' & 'more' scrolling thing. You can also set buttons to scroll either a half-page or a full page. ex: my half page is 'Shift + Down', scroll full page down 'Shift + Alt + Down'.
So if I want to be scrolling half pages I just push shift then the desired direction. For full-page scrolling, do shift+alt then up or down for faster scrolling works great for me!
Great "Linux Level 2" video - once we've gotten past cd, mv, ls, rm, and so on, we now have some cool commands that make life easier for us. In particular, I didn't know you could use shutdown -h as a kind of reverse alarm clock. Also, I find blkid useful for detecting USB drives. Thanks!
Being pedantic again, sorry: strictly speaking, `cd` is a shell command, not a system command, which is why it doesn't have it's own manpage. You can actually find it with `man bash`. But don't do that. Use Bash's `help cd` command, instead. Oh, and also you can `help help`. (Also as a scripter, I went ahead and downloaded the Bash documentation to my local hard drive so that I can study it in a browser.)
Man bash
Info bash
Whatis bash
Help bash
Which bash
I know this is being picky, but sda1, sda2, sdb1, sdb2, etc are PARTITIONS, not drives. sda1 is partition 1 on physical drive sda, and sdb2 is a partition on physdical drive sdb. I think it's important to use the correct terminology, especially for the audience you're trying to reach.
I enjoy your videos, though. Keep up the great work !! :-)
good point but he probably considered that common knowledge but we seem to forget there are complete newbies in the crowd
Am new to Linux but a power/pro user in Windows. This comment was helpful.
I’m glad to see you becoming more for Milyer with the technical aspects of Lenix. Much better than just installing different distributions and playing with different desktops.
Humour and genuineness holds my attention making the subject interesting and the video attention grabbing.
"Shutdown -t 2" is useful for updating before bed. It'll finish the update and shutdown. For large updates I recommend "Shutdown -t 5" or 10 depending on the size of the update.
Can’t you queue a command once the update is done?
Great video.
I just want to add a thing:
'cat' (abbreviation of concatenate) is actually used to concatenate (merge) two or more files.
For example: cat file1.txt file2.txt file3.txt file_n.txt
We can also redirect the output to, for instance, a file, like this:
cat file1.txt file2.txt file3.txt > file_1_2_3.txt
file_1_2_3.txt will consist of the contents of file1.txt, file2.txt and file3.txt
Again, great video. Keep em coming.
sksmd
Goran
It *can* be used that way, but its typical use is to print the contents of a single file to standard output (ie. the terminal).
cat is an abbreviation of catenate not concatenate.
Also > overwrites the file >> appends to the file
Top 2 commands I suggest first to learn. #1 ' man intro ' #2 ' vimtutor '. If you use those to commands, and read everything contained in those commands, then you wont need to ask for help... for a long while.
Some alternatives of some commands in this video for productivity
killall -> xkill
ls -l -> la (in some distroes)
clear -> Ctrl + L
ctrl + alt +f7 back to GUI from tty
Also for ls -l if you don't have it in your distro you can always edit ~/.bashrc file and add alias like so :
alias la="ls -l"
@@sranstankovic233 it should be
alias la="ls -l --almost-all"
"And you become yourself once again" - Joe Collins, 2016
CTRL-ALT-T : usually 'open a new terminal', on most linux gui desktops.
CTRL-D : how I usually close a terminal (on a blank line. It's the 'end of file' character, which tells bash that it's done, and it can shut itself down)
cd : just cd by itself -> it's a shortcut which takes you to your home. No need to type 'cd ~'
CTRL-Q ( if you accidentally hit CTRL-S when reaching for CTRL-D, it'll seem like it's frozen... because that's what CTRL-S does.... CTRL-Q tells it to continue)
TAB : by far the most useful key, safe to press randomly / multiply. Will try to finish typing filenames or directories, but only as far as it can before there's a choice to make... double-TAB will make it display what choices there are -- type one more letter, then hit tab again.
This last one makes the command line nice to use, because you won't have to be touch-typing perfectly all the time.
Once you get used to it, the way tab-completion works on windows will annoy -- it's not nearly as nice to you, forcing you to sit there and hit it over and over again while it trys one file after another... So stupid! But that's the biggest difference between Linux and Windows. Annoying things aren't welcome.
Open terminal also with WIndows-Key + T
Thanks Ctrl+Q was most helpful, didn't know that
for clearing instead of "clear", just use ctrl+L
That doesn't work on every terminal and I was trying to keep this video very close to the basics as possible. :)
clear will erase your scrollback so you may want to do ctrl+L instead to preserve your scrollback (same as clear -x)
The clear command only clears commands from the screen.
But if you use history -c, the c option means clear. this will clear everything you typed when you opened the terminal. But if you never use this command before and you think all the commands you have typed are gone by using the clear command then you are wrong. There is this file that keeps all the commands that you have used. This file is called .bash_histor. But that's when you exit the terminal. All the commands will save.
I prefer "reset"
Nice! I'm running WSL2 on Windows. Naturally, it works in my Linux environment, but it turns out that it works in PowerShell as well. But not cmd.
would like to add this command
sudo !!
this will add sudo to the previous command and execute it, if u forgot to add root permission
That would have been useful earlier today... very, very useful...
Great video sir. I love Linux and have been using it since I was 16! I’m 27 now.
9:50 The WHICH command relies on the PATH variable, it totally ignores other copies of the same executable file on your computer, if not specified in PATH. Actually, nobody says that the paths in your PATH variable actually exist. The main reason to use WHICH is when you have multiple copies of a same-named executable spread out over different structures (path). But, also having those paths in the PATH variable. The order determines which one is used.
10:15 to 10:26..
if it's native windows program or game..here's one way you can do that.
right click on your mint desktop..select " Create a launcher"
in the command field type the following info below at the beginning.
wine start /unix
note the one spacebar press between /unix and the exact path of the .exe file ans ensure one space bar press between wine and start .so an example could be
wine start /unix '/home/WhatINamedThisPc/.wine/drive_c/Program Files (x86)/amnesia/rest/Launcher.exe'
the exact path of that .exe could need either apostrophes or quotations depending on if it lives ín the same drive as Linux Mint...OR if it is a completely separate physical drive.
cheers
There is no man page for cd because cd is part of the shell and is documented in the bash or other shell man page.
soooo sooooo useful thanks a lot man I have an exam tomorrow . before I listened to this vidio I have zero idea about this freaking commands 😹😸 but now I'm a professional in 34min 😎💪 isn't it looks so great.
Your video is very clear and well explained, thank you!
165 haters saw this video 😂 Been a power user for many many years while these videos are aimed at new users I always learn or remember something I forgot. 165 haters 165 dislikes. I don't get it, Joe is very clear on his videos even a noob can get it witch is awesome! We need this MS and Apple are too nosey and downright intrusive on our data. More people need to use linux or bsd. Joe is doing community service here. No matter what the video I always leave a like.
I also can not understand, how someone can dislike valuable help.
Thanks a lot really appreciate it, outstanding tutorial. One question I am using centoOS however I forgot my root password how can I reset it please, Thanks
I love the entomology of sayings. I have always wondered where the saying " more than one way to skin a cat " came from. Seems brutal, or is it just me? And does anyone else visualize the cat as still being alive? Maybe that is why I see it as brutal. Good stuff. Your bash playlist is the best on the web. Thanks a bunch.
It's late to tell you, but man is only for 'transient' commands.
cd is an internal command inside bash (the shell).
Help for internal commands of the shell is availlable with -> help
so for your 'cd' command you would type -> help cd, and voila: there is the description of the command cd including all options ;)
Additional info: cd without any 'arguments' puts you in your home directory, so it's not needed to type cd ~. cd on it's own is enough for going home ;)
My favorite use of touch is to match timestamps with other files: touch -r otherfile.txt
And, there are reasons to get pedantic about the three different kinds of time stamps at the more advanced levels: ctime, mtime, and atime.
I might be wrong, but you could actually run 'touch {file1,file2,file3,etc}.txt' and it would create all the files separated by coma with the .txt at the end. Saves a whole bunch of time.
Nope. You can do that with spaces as separators but not commas.. :)
@@EzeeLinux Ohhh right, haven't used that one in a long while, my bad xD
"killall -HUP" (using the hang up signal instead of terminate) can give the program a chance to clean up, depending on how it's written.
"mkdir -p" is great for ensuring that a path exists in a script, because if any of the parent directories are missing it'll create them for you as well.
Very good tutorial! I'm a long time Linux user and just wanted to check out your lessons. I will definitely recommend you to some of my students who are looking to learn about Linux commands. Aloha!
9:40 onwards= a headache saver for me. Thanks Joe
can u plz tell me that for linux which software i should for more practise
As for "which" command, I didn't know that one but I use "whereis" This command will not just tell you where the launch file is but will tell you where all the files related to the program are. It will often give multiple directories for libraries and other related files.
to copy from terminal use ctrl+ shift+ c,
to paste use ctrl+ shift+ v
to open a new tab in terminal use ctrl+shift+t.
to close a terminal tab use ctrl+ shift+ w.
Once again, not in every terminal... :)
Joe Collins works in mint ☺
anyway, great videos
One thing I do with timed shutdowns is initiate a long download (say, a new Linux iso from somewhere) before going to sleep, look at the expected completion time, add a little for fudge factor, and tell the machine to 'shutdown -h' plus that amount of time. I also like +0 as faster typing than "now".
I do that also on torrents. So it gets some seed time also on the distro iso and if it didn't finish, my download would just resume when I go back into the application.
Well, if you like the cat command, you might have a need for 'tac' as well. Try it. I've only used it once or twice.
"Greetings and salutations"... I loved Might and Magic 6 too back in the days.
It comes from when I was in school for radio... One of my teachers used to say that on the air. :)
Just a little thing on the 'more' command. It takes a file as an argument, thereby by-passing the 'cat' prefix. For example: more longfile.txt
+Jeremy Nieuwoudt It does now. I don't think it did 20 years ago when I first started using it. LOL I should have pointed that out, I guess. :)
+Joe Collins Cool. I see. The Linux Foundation offers training courses. I audited the SysAdmin "Introduction To Linux" course and it was very good. They offer Programming and Engineering courses as well It's a good place to start. www.linux.com
In addition to these, I find top (which you briefly mentioned), kill, ps, and fg very useful. If you make a sequel video to this, I would suggest those as possible commands.
These are the kind of videos that make me like Linux more and more each thanks for the video keep the good work
The ctrl alt F4 real terminal has been a saver for me although on a serious hang the TTY has been slow to process the login before I'm able to type "reboot." I only learned recently that ctrl alt F4 followed by ctrl alt del cuts out the authentication and its wait to give a clean shutdown/reboot
Great commentary, refreshing to hear as it is.
What about kill -9 (pid). That usually does does the trick. Failing that, xkill works wonders too.
This youtube channel is the best
Very gud. Presently i am working to take my Linux knowledge to the next level so hopefully this time next year i too will be capable of making videos like this!
I've had to use Ctrl Alt F4 a few times with MATE and would either do a Ctrl Alt Del or a shutdown command or reboot command.
With the terminal in live boot I was able to remove a couple of files in my Pop-os install where I accidentally filled up the place with virtual disks of several GB and stopped the system with 0 bytes of free space. The startup worked after that. 7-8 GB of free space was required to show me a login. It's complicated to make oneself root/admin in Linux and give permission to be all over the place, but it worked and was funny to try and solve something like that. I think most terminal commands are well explained on the internet now.
The touch command is awesome. Go Linux!
Thanks a lot! Didn't know about "sudo -s" and "su user_name")... very useful commands!
Man, Puppy Linux is weird. One thing it does is opens a browser when you use the "man" command. I'm always root, unless I choose to be "Spot" (it says somewhere why, but I'll have to read up on that again). This is all so cool, though. Two months into playing around with Linux! I'm only mad at myself for not playing with it years ago.
One command I find odd that isn't installed is traceroute (I know there is a package you can install). That along with the ping tool are very much needed to find a fault in a connection to a server. It can tell where the "break" is. It's helped me on Windows systems to find out that a local server was down. (Corporate server in another location). The fix was to force a reroute to a backup server. The reason it wasn't automatic was because the other server was 3000 miles away and didn't have everything that was needed. It was better to see it down so that it could be fixed quickly.
I really like your teaching style and thank you so much for this video. You ROCK!
Don't scare DOS people by talking about touch command! :D
Well, IMHO it's most useful to test inside .BAT file (:D) if you have write permission to file/directory .
I love shell scripts. Had to install WSL to my windows-PC at work to write script. And to compile some C.
Of course I installed Linux on virtualbox (and other instance into real partition (and after that claimed to boss that I really need new SSD because I am running out of disk space) to feel as I were home. (Linux user since 1995. Yes, I am old).
But I need to use f*king Autodesk apps at work, so windows is going to stay at that computer:(
Cheese... starting to be too much drunk and hating windoze. Why not.
Edit: Nice video. Satisfied my daily Linux needs. Subscribed.
PS: Please do video about awk. That will really make GUI people go nuts!
I learned the which command. I had always used the Find / -executable -name file.ext.
Debian is the root operating system that many of the others are derived like ubuntu and mint.
I also use apt-get and dpkgs for installing and removing packages.
Hey Joe what do you think is best Linux mint or Ubuntu, I used to use mint as main os for a while, I felt like there was a lack of support and help for newbies and people where not very friendly in forums etc so i went back to win 7. I find your videos very helpful I'm itching to try Linux again.
Try Ubuntu MATE. That's the easiest Linux to get started with and the support is awesome. :) ubuntu-mate.org/
you just earned a new sub. thanks for the info. (new Linux Mint user here)
First thing should have been " how to open my terminal other than going into the menu, looking for the command and executing it". I use shift T or K for Terminal or Konsole, pretty sure there's a better way though?
Typical of Linux, I can not find the keycombination anywhere. Not in any step by step guide of opensuse, nor any forum, I spent 30 minutes googling it. T y p i c a l and quite enraging. A keyboard environment that relies on the mouse :p
try control-alt-t
@@abrundag Thnx, it did not work, however I appreciate the effort. I resigned to clicking the terminal every time I need it.
Sounds like your distro didn't enable it. Search in your menu for 'keyboard shortcuts' and open it. Scroll down the list to 'run terminal' or 'open terminal' select that line and press control-alt-t. It should show up in the command column. Save the setting. Now it shoudl work.
I agree, looks more for beginners but that is fine. You gotta start some
place and the CL gives you options and is very powerful tool in Linux.
Don't be intimidated, learn these and then keep adding new ones...8-)
To kill FF while retaining all tabs, "killall -9 firefox" is helpful.
Chromium is a bit trickier, though. This is what I do:
alias kill_chromium='kill -9 `pgrep chromium`'
which(1) says where *in your search path* the file is, not where it is. You need find(1) or locate(1) for that.
I like mtr(1) instead of ping, because some sites block ICMP echo.
What about "more longfile.txt"?
"su - cindy" brings you to her $HOME, and in her context.
"cd" is built into bash, so you type "help cd".
Want to clear some kernels. Space? Sound (dummy terminal ). Desktop. Audio card analoge stereo. Have to show where sound is by unplugging and plugging.
touch command is truly useful, use it very often
A company wants to understand/have experience with Linux. What do you translate this to mean? what should I do to get experience with linux?
+James Whyte It depends on what kind of company it is... Why do the want to know about Linux and what do they want to do with it?
The job is programming based. Mapping, controlling datasets and data statistical analysis. But understanding linux is a prereq, just don't know what I should begin to learn/experience about linux, other than just being a user.
Hi Joe,
I have a simple problem, if it's in Windows, it wouldn't be a problem.
I use Linux Mint 18.1 and this is the scenerio:
Nautilus told me I have an internal drive name ABC and a USB drive named DEF. I would like to copy file from drive ABC to drive DEF, how would I issue the command in Terminal???
Please help me! I am a Linux neubie.
Thanks a lot, Joe.
"init 6" and "init 0" are my most used commands
Init 5 is a saver for me
Thanks! I'm learning your great knowledge and information, much appreciated.
what reason would there be for 'which' not returning me anything, no matter where I am or what I'm searching for? it's the only command I've come across that doesn't do what it's supposed to. Also, when I run any of the shutdown variations, I get
System has not been booted with systemd as init system (PID 1). Can't operate.
Run "which which" and see what you get. If nothing then it may not be installed .
You don't have to "cat" a file to the "more" command on Linux/UNIX:
more [options] [file_name]
That was a requirement for the DOS "more" command.
It is often useful to pipe the output from another command to less/more.
I am currently using centoOS 8 but I forgot my root password, I need help to reset it
What program did you use to capture the screen in Linux for the video?
SImpleScreenRecorder. :)
What programming language does this terminal use?
The default shell for Linux is BASH. Bash is a command interpreter and it has a built in language that is similar to C.
Just subscribed. How do I make a URL shortcut to a website in Linux Mint Cinnamon
There are a couple of ways to do that. Here's a good place to start: forums.linuxmint.com/viewtopic.php?t=232877
i had been copying the URL then dragging it to the desktop. automatically creates a link
Can you touch -R if you want to touch all files in a repository?
This was amazing! I just subscribed. I had to listen to the first minute for a few times to make sure you weren't T.J. Miller, and I'm still not convinced...
Awesome commands as a new linux user... Thanks :)
Thank you Joe. Keep up the good work. I hope you will publish more videos.
is there a differance between killall and kill -9 ?
As far as I know, killall goes after every running process with the name you pas to it while kill -9 just kills one. :)
ok, interesting, i usually want to kill just one tree of processes. killing other peoples processes would cause problems.
I would first, of course use ps -ef | grep (process name) | more to find the process i want to kill@@EzeeLinux
@@EzeeLinux Correct. Or you could use "top" and then type "Kill-9" to kill that process. Either way works.
What is best software to use to make copy of Linux harddrive
The dd command. :)
I have never heard anyone unironically say salutations before
Need New Tips like This. I am a new linux user. Please make more videos. I need help
export PAGER=less
The man command, among others uses this. Most Linux systems have it set this way, but you might find that it's something else on some systems. Also, I always thought it was funny that AIX hardware techs would use the really primitive pg command, which still exists, and is useful when working at the really, really low levels that hardware people often do.
The Ten Commandments great video
Great for beginners like me. THANKS.
Helpful and very useful . Thanks Joe:)
Love the way you talk.
I think you can scroll cat output by 'ctrl+shift+alt+ up/down arrow ' or something
Very cool, excellent tutorial
You can also do a *search* with *less* (among other things), by pressing '/'
Huh, that less command is quite useful, I’ve always used more. Can you pipe outputs into less like you can with more?
Yes. It works that way too. :)
what do you use touch for that you cant just do by creating a new file and launching Vim all at once? IE: vi newFile
Great useful tips. Powerful stuff... Something Windows forbids its customers to obtain and maintain. 👍
Awesome! I learned some new things today. Thanks. :)
Finished the vid. REally bare-bones list here, i dont think you can use linux without many of these. Very good for complete begginers, for sure.
Ping without -c does not end after 64 passes. It just keeps on going until you stop it.