Linux Basics --For those new (or relatively new) to Linux

Post tutorials, HOWTO's and other useful resources here.
User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Linux Basics --For those new (or relatively new) to Linux

Post#16 by Ed_P » 28 Aug 2021, 15:46

Sorry you had a bad experience MGracia. Is the computer you're using a laptop with a touchpad for the mouse movement? If so your palm is touching the touchpad when you type causing the mouse to move. It's also possible the mouse is jumping to where it was last while your typing has moved past that point. I have both these problems and I believe the fix is in tweaking the touchpad's synclient settings. Unfortunately I haven't done that yet for my 5.0rc3 system. For my 4.0 system my settings look like this:

Code: Select all

# https://forum.porteus.org/viewtopic.php?f=81&t=5096&p=37761#p37761
synclient PalmDetect=1 PalmMinWidth=4 PalmMinZ=100
synclient MinSpeed=.2

# Acer 722
#synclient LeftEdge=30   RightEdge=1385 TopEdge=0    BottomEdge=600

# Acer Aspire One
#synclient LeftEdge=0    RightEdge=1408 TopEdge=0    BottomEdge=640

# ?
#synclient LeftEdge=1472 RightEdge=5888 TopEdge=1408 BottomEdge=5218

# Dell Inspiron 13 
#if [ `uname -r` == "5.10.5-porteus" ]; then
#   exit
#fi    
synclient  LeftEdge=30   RightEdge=6942 TopEdge=0    BottomEdge=5218
synclient RightButtonAreaLeft=3471 RightButtonAreaTop=4062
#synclient RightButtonAreaLeft=3914 RightButtonAreaTop=3918 
#synclient HorizEdgeScroll=1  RTCornerButton=0  RBCornerButton=9  LBCornerButton=8
#synclient TapButton2=2 TapButton3=3 MaxDoubleTapTime=180
synclient MaxDoubleTapTime=180 
synclient VertTwoFingerScroll=0
synclient TouchpadOff=2 TapButton2=0

As you can see different machines have different settings.
Ed

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Linux Basics --For those new (or relatively new) to Linux

Post#17 by Rapha_ » 29 Aug 2021, 14:55


User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Linux Basics --For those new (or relatively new) to Linux

Post#18 by Ed_P » 29 Aug 2021, 16:17

:o :good: Rapha_
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#19 by Rava » 05 Sep 2021, 00:15

While it gives some overview, it is also outdated. E.g. I looked at http://web.archive.org/web/200206040209 ... ?PageID=14
While it lists /proc it does not explain it.
Many Linux internal workings are even to be found in Wikipedia: e.g. /proc or more precisely named procfs: procfs
Or Magic SysRq key aka REISUB :)
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#20 by Rava » 29 Aug 2023, 09:07

A very helpful command can be lsof ("list open file(s)") when you cannot umount a device. Example:

Code: Select all

guest@porteus:/tmp$ umount /mnt/sdc1
umount: /mnt/sdc1: target is busy.
guest@porteus:/tmp$ lsof |grep sdc1
bash       2068                      guest  cwd       DIR          \
     8,33    16384 1601991 /mnt/sdc1/boot/syslinux
lsof without the |grep DEVICE gives you the complete list of all current file and that is not what you usually want. In my current case:

Code: Select all

guest@porteus:/tmp$ lsof | wc
  27487  298108 3539096
27487 newlines, 298108 words, and 3539096 bytes overall. who in their sane mind would want to review 27487 lines for only one line of interest (in my example case):

Code: Select all

guest@porteus:/tmp$ lsof |grep sdc1|wc
      1       9     118
Cheers!
Yours Rava

Nikole
Ronin
Ronin
Posts: 3
Joined: 24 Sep 2023, 21:32
Distribution: puppy linux

Linux Basics --For those new (or relatively new) to Linux

Post#21 by Nikole » 25 Sep 2023, 23:44

Thank you very much for this information!
I'm one of those new to Linux :)

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#22 by Rava » 26 Sep 2023, 10:55

Nikole wrote:
25 Sep 2023, 23:44
Thank you very much for this information!
I'm one of those new to Linux :)
Hopefully you will learn that the command line and terminal is not bothersome, but that the CLI (command line interpreter) is much much more powerful than any GUI or DE can ever accomplish.
And could be there comes the day you start coding shell scripts that do work on ever repeating tasks. While it might take some hours or even a day to create your very first useful script, from then on it only takes a second to execute the script and it does all the work, be it just 2 commends or be it a dozens of commands, from then on you have much less work to do for the same task. :)
And originally all PCs are meant o be that way, not some GUI where you have to do every single task yourself - be it tiny and repeating or complex and rarely done, but it was meant to be a system custom-made for you so that all repeating menial tasks are automated. That is what computers do best. Image
Cheers!
Yours Rava

Nikole
Ronin
Ronin
Posts: 3
Joined: 24 Sep 2023, 21:32
Distribution: puppy linux

Linux Basics --For those new (or relatively new) to Linux

Post#23 by Nikole » 26 Sep 2023, 20:01

Yeah, I hope I can pull it off. I'm working hard for it!

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#24 by Rava » 26 Sep 2023, 23:36

Nikole wrote:
26 Sep 2023, 20:01
Yeah, I hope I can pull it off. I'm working hard for it!
Ravas coding goodies (Post by Rava #95879)
HTH! :)

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#25 by Rava » 07 Oct 2023, 08:04

^
To quote the most essential part only: (read my whole post by clicking the link at the top left of the quote, the one after Rava wrote: ):
Rava wrote:
25 Sep 2023, 06:15
Got tipped towards this https://mywiki.wooledge.org/BashFAQ/020 and it is just so good I have to share it. All of https://mywiki.wooledge.org/ is a read worthwhile when you are interested in the working of the shell and about script coding. :)
How can I find and safely handle file names containing newlines, spaces or both?

[…]
Other essential reads:
https://mywiki.wooledge.org/BashProgramming
https://mywiki.wooledge.org/BashPitfalls
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#26 by Rava » 24 Oct 2023, 20:44

Linux Operating System - Crash Course for Beginners
https://youtu.be/ROjZy1WbCIA
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Linux Basics --For those new (or relatively new) to Linux

Post#27 by Ed_P » 24 Oct 2023, 21:48

Rava wrote:
24 Oct 2023, 20:44
Linux Operating System - Crash Course for Beginners
https://youtu.be/ROjZy1WbCIA
2:47:55 :shock: I interpret those numbers to mean 2 hrs 47 minutes 55 seconds. Don't plan on watching it during lunch break or remembering everything.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#28 by Rava » 25 Oct 2023, 05:24

Ed_P wrote:
24 Oct 2023, 21:48
2:47:55 :shock: I interpret those numbers to mean 2 hrs 47 minutes 55 seconds. Don't plan on watching it during lunch break or remembering everything.
Indeed, it is, for a basic Linux Crash Course for Beginners 2 hours 47 minutes and 55 seconds :celebrate3: Almost 2 hours 50 minutes!
Not for the lunch break, unless you usually take 4 or 5 hours lunch breaks. :D

Added in 6 minutes 53 seconds:
About your "or remembering everything" part, not everthing, but still much. Let's have some reviews on that video speak for them selves: (via https://api.invidious.io/ )
@TheHarleqwin
Thank you for teaching me more in three hours than I learned in a 14 week semester. I was dreading coming back to study Linux because of how horrible my professor was. You made it so easy.

@barrychuckle5565
I'm only an hour in, but this is fantastic. It's exactly what I've been looking for. Online articles are so confusing. You explain it so well; for example, saying to use the arrow keys to go up and down the manuals. Thank you!

@georgepiersall3822
Sir, Thank you so much for this video. I am currently in college for CIS-1107 - Intro to operating systems. It's a section of my Cyber Investigations degree. I didn't know squat about using the terminal except maybe dos commands like "ping." This video really helped me understand the chapter I am about to read. Thanks again. Your efforts do not go unnoticed.

@jonettebrowning3824
I'm only 20 minutes in and you are making it easy for me (75 yo) to understand most of what you are saying. Microsoft is killing my pc that may grandson built for me back in 2015 with os 7 which I upgraded to os 10 for free. But now it takes my system over 15 minutes to startup and it has a lot of os 11 being downloaded. All I use the computer (tower type) for is reading (52 inch monitor as I have bad eye sight) and surfing (T Mobile hub connection). I don't need the office stuff. Thanks for making it easy to comprehend as I'll be watching this for a while.
:)

Added in 24 minutes 6 seconds:
About the @jonettebrowning3824 comment:
Maybe this "Linux Operating System - Crash Course for Beginners" will get a 75 year old to switch from a self-crippled wundoze 10 (or 11?) to Linux.

One can hope! :D
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#29 by Rava » 28 Oct 2023, 02:22

https://www.howtouselinux.com/post/6-un ... -attention
In recent months, I’ve encountered numerous articles with titles such as “20 Linux Commands You Should Know” or “Linux Survival Guide.”
However, most of these articles cover basic commands like ls or echo.
Considering that my audiences are already familiar with these foundational commands, this article takes a different approach.
This collection includes commands that are more advanced and can help you become better at managing a Linux system.
  1. ss — display detailed information about socket connections
  2. Shell Job control in Linux shell
  3. openssl command in Linux – SSL certificate tool
  4. strace command in Linux – tracing system calls made by processes
  5. dd command in Linux – copy data
  6. dig command in Linux – interact with DNS

─────────────────────────────────────────────────────────

https://github.com/tldr-pages
tldr pages
📚 Collaborative cheatsheets for console commands
Yay! Console aka terminal aka CLI commands.
Cheers!
Yours Rava

Post Reply