
15 Useful Linux Commands Every Linux User Needs - Learning Terminal Part 1 - Chris Titus Tech
video description
Date: 2022-03-20
Related videos
Comments and reviews: 10
Hoefkens
in any terminal , if you have screen installed first run it a s screen -t title , ctrl+a+d, goes out of screen but leaves it running , screen -list lists all open screens , screen -r reattaches a screen , ctrl+a+esc goes to scroll mode in screen , you can now use arrows pgup pgdown to scroll , screen is also handy for when you are working live on a machine but want to go home and continue , detach the screen (ctrl+a+d) go home ssh into the server and reattach the screen , and you get the terminal you were working on at work, with all the output visible that was produced in the mean time , if you forgot to detach a screen but you want to access it on a different location , you could attach to it without closing the remote session or you could do screen -D -RR wich detaches the remote screen and reatacces it locally no matter what , many distros also setup ls -l as just ll . , 3rd one if you find that you were running a command and needed root permissions instead of doing arrow up pressing home typing sudo , you can just type : sudo !! and it will run last command but with sudo typed in front of it. 4th : besides --help and man there is also info [command] in order to find more help :)
reply
in any terminal , if you have screen installed first run it a s screen -t title , ctrl+a+d, goes out of screen but leaves it running , screen -list lists all open screens , screen -r reattaches a screen , ctrl+a+esc goes to scroll mode in screen , you can now use arrows pgup pgdown to scroll , screen is also handy for when you are working live on a machine but want to go home and continue , detach the screen (ctrl+a+d) go home ssh into the server and reattach the screen , and you get the terminal you were working on at work, with all the output visible that was produced in the mean time , if you forgot to detach a screen but you want to access it on a different location , you could attach to it without closing the remote session or you could do screen -D -RR wich detaches the remote screen and reatacces it locally no matter what , many distros also setup ls -l as just ll . , 3rd one if you find that you were running a command and needed root permissions instead of doing arrow up pressing home typing sudo , you can just type : sudo !! and it will run last command but with sudo typed in front of it. 4th : besides --help and man there is also info [command] in order to find more help :)
reply
mlp6868
About that -sudo su- around 4:20 in... indeed redundant in this form. You can accomplish the same with -sudo -s- -- get a privileged shell if you know you will need to give several commands in a row for a given task. And indeed, you will stay in the user area and can pollute the place with inaccessible files as was shown in the video. More useful is -sudo su -- (with a minus behind). The minus to su asks for a login shell, so you'll find yourself in the /root area and it's as if you had logged in as root to begin with. For larger installation tasks it's often useful. (su - is the same as su -l). And su is not available to elevate privileges in all distros, so the -sudo su -- version is best.
reply
About that -sudo su- around 4:20 in... indeed redundant in this form. You can accomplish the same with -sudo -s- -- get a privileged shell if you know you will need to give several commands in a row for a given task. And indeed, you will stay in the user area and can pollute the place with inaccessible files as was shown in the video. More useful is -sudo su -- (with a minus behind). The minus to su asks for a login shell, so you'll find yourself in the /root area and it's as if you had logged in as root to begin with. For larger installation tasks it's often useful. (su - is the same as su -l). And su is not available to elevate privileges in all distros, so the -sudo su -- version is best.
reply
Frederik
I never found that using the terminal was faster than using graphical interfaces, but i do think its a lot of fun to use the terminal. It is so enjoying once i figure something hard out and then manage to fix whatever issue i had, its so much fun! Even tho using terminal is not that fast for me, i think it will be very much effective once i memorize the commands i use the most though, so i dont have to think a couple of seconds about what they were!
reply
I never found that using the terminal was faster than using graphical interfaces, but i do think its a lot of fun to use the terminal. It is so enjoying once i figure something hard out and then manage to fix whatever issue i had, its so much fun! Even tho using terminal is not that fast for me, i think it will be very much effective once i memorize the commands i use the most though, so i dont have to think a couple of seconds about what they were!
reply
Technik
I am feeling like DOS 6.22 here again. Aren't we in the age of graphical user interfaces. I mean a console is a powerful tool but like on MacOS, you only relay on it when shit hits the fan. I feel like People recommending Linux in truth don't want normal people to use Linux. I tried KDE and it comes with a web browser. I can browse the internet but when i want to install OpenOffice/OnlyOffice or anything productive, I fail.
reply
I am feeling like DOS 6.22 here again. Aren't we in the age of graphical user interfaces. I mean a console is a powerful tool but like on MacOS, you only relay on it when shit hits the fan. I feel like People recommending Linux in truth don't want normal people to use Linux. I tried KDE and it comes with a web browser. I can browse the internet but when i want to install OpenOffice/OnlyOffice or anything productive, I fail.
reply
99codemister
15:05 To explain why the -Operation not permitted-: The current user (titus) is -not- part of the -users- group.
Use the -groups- command to find out what permissions you may assign. Note that it doesn't always make sense to use certain group for standard file permissions.
reply
15:05 To explain why the -Operation not permitted-: The current user (titus) is -not- part of the -users- group.
Use the -groups- command to find out what permissions you may assign. Note that it doesn't always make sense to use certain group for standard file permissions.
reply
Marcin
Vim isn't awkward, you just don't know how to use it that's all. When you understand vim, you'll see that it's nano which is really awkward. Whenever I open it and type 'gg' to go to the beginning of the file, it just starts typing 'gg' in a random place. How awkward is this?! ;)
reply
Vim isn't awkward, you just don't know how to use it that's all. When you understand vim, you'll see that it's nano which is really awkward. Whenever I open it and type 'gg' to go to the beginning of the file, it just starts typing 'gg' in a random place. How awkward is this?! ;)
reply
Walter
Newbie here. Was your first example of using rm used to remove your root directory? Wouldn't that destroy your Linux installation? I know I'm missing something and making a dumb noob mistake.
reply
Newbie here. Was your first example of using rm used to remove your root directory? Wouldn't that destroy your Linux installation? I know I'm missing something and making a dumb noob mistake.
reply
Skull
hi , i think im the most beginer with the linux from all the people who commented ,
but I'm still curious if these codes i can use them in other versions of linux like Zorin or Garuda
reply
hi , i think im the most beginer with the linux from all the people who commented ,
but I'm still curious if these codes i can use them in other versions of linux like Zorin or Garuda
reply
aTad
Shift ZZ? interesting. I usually just press Q. you also don't need to include the --- in -cd -- to get to home directory. just simply type cd and hit enter. same thing.
reply
Shift ZZ? interesting. I usually just press Q. you also don't need to include the --- in -cd -- to get to home directory. just simply type cd and hit enter. same thing.
reply
Damian
I'm running Ubuntu on my Virtual Box. can I still implement this -pacman- feature to make the script look colourful. (export PAGER=most) did not work on my terminal
reply
I'm running Ubuntu on my Virtual Box. can I still implement this -pacman- feature to make the script look colourful. (export PAGER=most) did not work on my terminal
reply
Add a review, comment
Other channel videos















