mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2022-03-27, 14:04   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

511010 Posts
Default Where is "swpon" and such in Debian buster?

Sorry for the rant, but why does the entire web show using swapon, etc. for Debian buster and none of my three buster machines have it? Am I that special?

The web says it's part of util-linux, so reinstalled util-linux - nope, still not there:
Code:
# swapon --show
bash: swapon: command not found
The machine has a swap partition that is active.

Additionally, I found a small section somewhere saying buster would gather up all the swap space found at boot and assign it. I added a swap partition via SD card and nope, not found, although I really didn't expect it to be that easy.
EdH is offline   Reply With Quote
Old 2022-03-27, 14:13   #2
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

123210 Posts
Default

I found that sometimes PATH is not set correctly and /sbin is omitted. Can you call it by entering /sbin/swapon?
kruoli is offline   Reply With Quote
Old 2022-03-27, 14:27   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·5·7·73 Posts
Default

Quote:
Originally Posted by kruoli View Post
I found that sometimes PATH is not set correctly and /sbin is omitted. Can you call it by entering /sbin/swapon?
Yes, Thank You!

And, now that you jog my memory, whereis swapon tells me that:
Code:
$ whereis swapon
swapon: /sbin/swapon . . .
And, indeed:
Code:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
EdH is offline   Reply With Quote
Old 2022-03-27, 16:14   #4
chris2be8
 
chris2be8's Avatar
 
Sep 2009

3×11×73 Posts
Default

Quote:
Originally Posted by EdH View Post
And, indeed:
Code:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
That looks like your path as a user account, not as root. You probably need to switch to root with su - or sudo -i to get the right path.
chris2be8 is offline   Reply With Quote
Old 2022-03-27, 16:25   #5
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·5·7·73 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
That looks like your path as a user account, not as root. You probably need to switch to root with su - or sudo -i to get the right path.
I was originally trying both under user and root (su). I added /sbin: to the front of the PATH variable via the ~/.bashrc file and it is now available under su.

Thanks for helping keep me straight.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is "mung" or "munged" a negative word in a moral sense? Uncwilly Lounge 15 2020-04-14 18:35
Debian 10 "Buster" released paulunderwood Linux 5 2019-09-07 12:59
Stockfish game: "Move 8 poll", not "move 3.14159 discussion" MooMoo2 Other Chess Games 5 2016-10-22 01:55
Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" wildrabbitt Miscellaneous Math 11 2015-03-06 08:17
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? nitai1999 Software 7 2004-08-26 18:12

All times are UTC. The time now is 10:10.


Tue Dec 6 10:10:40 UTC 2022 up 110 days, 7:39, 0 users, load averages: 0.98, 1.06, 0.93

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔