LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2021, 12:15 PM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
What is something *new* you have learned about Linux within the past 7 days?


Based on this thread, here's a sticky for you to highlight something you've learned about Linux in the last 7 days. This is a great way to learn from follow LQ members and share what you've recently learned.

Hat tip to @KGIII for starting the original thread.

--jeremy
 
Old 01-14-2021, 03:06 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,768

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
I learned two commands to view I/O per process:
iotop and
pidstat
 
3 members found this post helpful.
Old 01-19-2021, 02:06 AM   #3
Spidrena
LQ Newbie
 
Registered: Oct 2018
Location: Schilde, Belgium
Distribution: Linux Mint, KDE neon, Ubuntu, MX-Linux
Posts: 3

Rep: Reputation: Disabled
Use dpkg to manage packages.
 
Old 01-19-2021, 08:03 AM   #4
hish2021
Member
 
Registered: Jan 2021
Posts: 117

Rep: Reputation: Disabled
That I can use
Code:
${i8k_cpu_temp}
on my Dell laptop's conky instead of something like
Code:
${hwmon 2 temp 1}
and having to change sensor number ever so often.
 
1 members found this post helpful.
Old 01-27-2021, 04:29 AM   #5
Arct1c_f0x
Member
 
Registered: Feb 2020
Posts: 123

Rep: Reputation: 24
I learned that you can use the host command like this:

Code:
host youtube.com
and it spits out network information about the site to stdout
 
3 members found this post helpful.
Old 01-27-2021, 11:42 AM   #6
KDSR
Member
 
Registered: Jan 2021
Location: Tucson
Distribution: Slackware
Posts: 31

Rep: Reputation: Disabled
Machine Code...

Most People don't realize that Linux includes NASM..
Code:
/usr/bin/nasm
Code:
section .data
	hello:     db 'Hello world!',10    ; linefeed character
	helloLen:  equ $-hello             ; Length of the string
	                                   ; 

section .text
	global _start

_start:
	mov eax,4            ; Call for write (sys_write)
	mov ebx,1            ; File descriptor 1 - standard output
	mov ecx,hello        ; Put the offset of hello in ecx
	mov edx,helloLen     ; 
	                     ;  
	int 80h              ; Call the kernel

	mov eax,1            ; Call for exit (sys_exit)
	mov ebx,0            ; Return code of 0 (no error)
	int 80h
 
5 members found this post helpful.
Old 01-27-2021, 12:43 PM   #7
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
youtube-dl still alive.
 
1 members found this post helpful.
Old 01-27-2021, 03:38 PM   #8
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
rpm command to view changelog of a package...

Did this to determine if an update is applied to address a CVE.

Here's an example:

Code:
# rpm -q --changelog sudo | grep -i CVE-2021-3156
- fixed CVE-2021-3156 sudo: Heap buffer overflow in argument parsing
 
1 members found this post helpful.
Old 01-27-2021, 03:57 PM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,063
Blog Entries: 21

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
That all hope is not lost converting my Samsung Chromebox series 3 stumpy board write protect pins to being shorted so I can change bios and install Linux.

That microsoft laptop sales went down for the 1st time ever because of chromebooks and covid stay at home requirements.

So I figure I better learn their hardwere hoops I might have to jump through.


For the command stuff. I like

https://github.com/smxi/inxi

That script is pretty useful for my needs.
 
Old 01-31-2021, 08:26 PM   #10
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
Type passwd in a terminal, then current password, then new to change an obnoxious long login and root password.

I had to relearn this one after some fresh installs on a new hard drive. Love the new look of Mint 20.04, ubuntus about the same.

Type in sudo visudo and type in
NOPASSWD:ALL at the bottom where it says root, group and users to get rid of the terminal password request.

I have learned that linux does not easily grab files off Windows 10 hard drives like the good old days. You have to jump through some whoops now and I havent found them yet.

I've learned that the best multiboot linux USB/ windows live/ tools can be made with YUMI on Windows 10, 8 or 7.
You can put 5 iso's on a USB that will actually boot faster than you can download them.
Years ago I spent more than a weekend trying to get a Knoppix 5.1 USB poor mans install to boot. I never did get it with Syslinux but did with grub legacy.

Last edited by Gemu; 01-31-2021 at 08:33 PM.
 
Old 01-31-2021, 09:12 PM   #11
KDSR
Member
 
Registered: Jan 2021
Location: Tucson
Distribution: Slackware
Posts: 31

Rep: Reputation: Disabled
windows rescue..

The Admin and User passwords got corrupted on my Girlfriends Windoze laptop, so I booted it with a USB stick installed with Slackware Live 14.2 and renamed the .sam files so she could login and set new passwords... "Do Not, I repeat.. Do Not get caught booting someone's computer like this Without their Permission!
 
1 members found this post helpful.
Old 01-31-2021, 11:10 PM   #12
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
It is important to have good knowledge about installer and package management system.
 
Old 02-01-2021, 07:41 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Quote:
Originally Posted by Gemu View Post
Type in sudo visudo and type in
NOPASSWD:ALL at the bottom where it says root, group and users to get rid of the terminal password request.
That removes a safety feature in that anyone who finds you logged in can carry out commands as root while you are out of the room. Also, if anyone online obtained access to your account, they would effectively be root without needing to know your password. It's your choice but I wouldn't do it.
Quote:
I have learned that linux does not easily grab files off Windows 10 hard drives like the good old days. You have to jump through some hoops now and I havent found them yet.
The kernel can read ntfs filesystems but can't write to them as it could to fat filesystems. You need to install ntfs-ng.
 
Old 02-01-2021, 07:50 AM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,573

Rep: Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533
Quote:
Originally Posted by hazel View Post
That removes a safety feature in that anyone who finds you logged in can carry out commands as root while you are out of the room.
I used to work at a place where anyone who left their machine logged in and unattended found an embarrassing chat/email message being sent on their behalf.

It was a pretty effective measure to get people to always lock their machines.

 
1 members found this post helpful.
Old 02-03-2021, 04:54 PM   #15
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Linux Mint
Posts: 116

Rep: Reputation: 16
PSA: I'm embarrassed to bring it up, because it's a lesson I've learned the hard way too many times: backup your init before you modify.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alright, it's Wednesday. What is something you have learned *new* about Linux within the past 7 days? KGIII General 120 06-15-2021 05:19 AM
What is something new that you have learned about Linux this week? KGIII General 19 05-26-2021 01:51 PM
How do I grep my /var/log/secure file for the past 7 days or so many days? johnmccarthy Linux - Newbie 5 01-04-2013 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration