Questions tagged [command]
One or a set of directives issued in the *nix environment to get information, change the state of something or to execute something. In other words: To gain an objective.
1,064 questions
0
votes
2
answers
61
views
Kill current bash shell and start a new one with some command
is it possible to kill/exit the current bash shell and start a new one with some command?
Something like
kill -9 $PPID && bash -c echo 'I started new!'
which does not work obviously.
1
vote
3
answers
121
views
How to find the python command in a shell script?
Let's suppose that you have a super python 2&3 one-liner that you need to use in a shell script.
On system A the python command works, but on system B you have to use python3, on system C you need ...
0
votes
1
answer
45
views
cpulimit: detect failure / exit status in Linux
I'm using cpulimit in a Bash script to run a certain command (ffmpeg) with a limited CPU usage, but I want to know if the command fails. But when the command(ffmpeg) fails with any error, cpulimit ...
0
votes
1
answer
100
views
Understanding the concepts of commands, processes and namespaces
I am not a strong linux user, but I want to better understand the material in this post here which talks about linux namespaces
https://stackoverflow.com/questions/44666700/unshare-pid-bin-bash-fork-...
0
votes
2
answers
69
views
Command to know the speed between mainboard and HDD/SSD
I want to know the speed of data transfer between a HDD or SSD and the
mainboard. It through a command. If is possible through a GUI, it is accepted too
Goal:
I want to do a comparison of speeds ...
0
votes
4
answers
73
views
editing files in batches from a huge amount of data
I ran into an issue:
I have folders with usually 50-150 text files, which I need to modify.
sed is not an option, since the changes cannot be automated
(sometimes "ss" need to be changed, ...
2
votes
1
answer
103
views
What is the output of "date -u +%V$(uname)|sha224sum|sed 's/\W//g'"
I am trying to register on the arch linux forum and am asked for the output of this command:
date -u +%V$(uname)|sha224sum|sed 's/\W//g'
Why am I being asked this and is it safe to run? I am unable ...
0
votes
0
answers
25
views
What does alt + PrtSc+ REISB do? [duplicate]
I remember hearing this as a safe way to reboot a frozen system but never looked into what it actually does. What does this command do?
0
votes
1
answer
145
views
Setting Maximum Packet Size up to which GRO can combine in the Linux Kernel
In a Linux environment, Generic Receive Offload (GRO) helps improve network performance by merging multiple packets into a larger one, reducing CPU overhead.
Now we want to control the maximum size of ...
3
votes
1
answer
563
views
Are ethers, rarp, plipconfig and slattach commands deprecated and what are their replacements?
There are 10 networking tools in net-tools Debian package (and also other distros, probably the package is named differently):
arp (ip n)
ifconfig (ip)
mmi-tool (ethtool)
nameif (ip link)
netstat (ss)...
-1
votes
1
answer
129
views
What happens if sudo rm -rf /* is done in WSL?
NOTE: DO NOT USE THIS COMMAND UNLESS YOU KNOW WHAT YOU'RE DOING
From what I've find on the internet, the sudo rm -rf /* command wipes out everything in the linux system. If this command is run on WSL, ...
0
votes
1
answer
195
views
How to determine from the lspci output how cards and how many ports are on a card?
I need to write a script to count how many 2 or 4 port HBA cards we have in each of our servers.
I'm running lspci on each of the servers, however, none of the documents I've read so far is telling me ...
1
vote
3
answers
957
views
Linux command vs bash command, is my understanding correct?
this question may be a bit terminological.
As a new Linux learner, I find many tutorials mention Linux/bash commands. To my understanding, commands are just various programs and bash is a shell like ...
0
votes
1
answer
140
views
How does "Useless cat. ... or 'cmd file | ..' instead." should be applied?
I have the following line:
isUbuntu=$(cat /etc/os-release | grep '^ID=ubuntu$' | wc -l)
It works fine
Now, through VSC and mostly with the ShellCheck extension is indicated two warnings messages as ...
-1
votes
1
answer
193
views
pkexec vs runuser
pkexec is not installed by default on Debian unlike runuser which is.
So far I've been using pkexec but discovered there is also runuser, and since runuser seems to be more advanced (looking at ...