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,065 questions
0
votes
0
answers
63
views
Arch Linux - rsync succeeds but prsync does not work
I am moving a large number of files from one PC to another. The two PCs are in 192.168.0.0/24. I started by ryncing all music I had on my source PC to my new PC.
> rsync -P --recursive 192.168.0....
0
votes
1
answer
120
views
Is there an official (re)source where is list it all the categories of commands with their respective set of commands?
Just being curious:
Question
Is there an official (re)source where is list it all the categories of commands with their respective set of commands?
Something like Linux Foundation for Filesystem ...
1
vote
3
answers
190
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
183
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
4
answers
110
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, ...
0
votes
0
answers
30
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?
3
votes
1
answer
620
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)...
0
votes
1
answer
326
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 ...
0
votes
1
answer
203
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 ...
0
votes
1
answer
183
views
sync command run as standard user
There are several blogs online saying if sync is run as sudo this will sync all filesystems, but if it's run normally (no sudo) then it will sync "current" filesystem.
But it's not clear ...
0
votes
1
answer
124
views
Get a list of all user's commands from a non-interactive shell
I am writing a script that would automatically suggest some new aliases/functions to be added to a user's shell config. Before doing that, however, I would like to make sure the aliases being ...
0
votes
1
answer
177
views
du -h only show folders but not files, how to show all?
I don't know what's going on with my centos 7 machine but seems like du -h /path only shows folders, not files, and it's annoying. I want to find all the files and folders at a specific depth and sort ...
1
vote
0
answers
151
views
How to work with CPU and memory intensive application in Linux?
This is the scenario,- it is a Java Application mainly, Heap Dump & Thread Dump is not helping me. Maybe I am not wise analyzing it.
Observation 1) Lots of memory seems to be utilized.
[maddipp1@...
0
votes
1
answer
2k
views
Open terminal in directory open in file explorer
In GNOME, I wish to setup a shortcut to open terminal in presently viewing directory in the gui file explorer. The nautilus gui is opened from terminal by the command xdg-open ., but I'm not sure if I ...
0
votes
2
answers
242
views
Counting Files in Remote location using sftp in shell script
Getting Error with the below command to check on the Remote directory a specific type of files. The requirement is to get the count of the specific files.
file_exists=$(sftp $FTP_UNAME@$FTP_HOST ls *$...
-2
votes
1
answer
115
views
CSV file with many columns, print each using loop [closed]
I have a CSV file saved on my desktop with many columns.
The CSV file has only one row but 195 columns and I have to print each column in Unix using loop command. The path of the file is /home/...
0
votes
1
answer
129
views
In Fedora how to launch a webapp from the terminal?
I have installed a webapp (Copilot) using edge in Fedora.
I would like to launch the app using a shortcut but I cannot find the command to launch it.
I imagine it should be a command launching the ...
-1
votes
1
answer
142
views
Checking if I'm correct about the order of operations in Bash
Guten Tag! I'm a rookie in everything Bash-related. I'm familiarizing with the syntax and wanted to know if the order of operations in this command is as I thought or not.
The command:
echo 2 * 3 > ...
0
votes
1
answer
71
views
Find file in directories of PATH env which match partially
Idea is to match a filename in any of directories mentioned in PATH environment. Usually, we do this by running "which <executable_filename>".
This works fine, when the file your are ...
-1
votes
1
answer
65
views
Strange behaviour of type command
I sometimes use the type command to view my codes:
$ type squared
squared is a function
squared ()
{
local t=$(($1*$1));
echo $t
}
I can do the same with builtin functions:
$ type ...
1
vote
2
answers
4k
views
sticky bit on files and directories
I've always heard that sticky bit should be only used with directories, and I understand that, but what is the meaning if it is applied to a file. If I set the sticky bit to a file and do an ls -la I ...
-1
votes
1
answer
146
views
how can i use 'memusage' command on Centos 7?
When I input memusage command to my terminal on Centos7, it will show bash:memusage: command is not find.
How can I use this command?
-1
votes
1
answer
243
views
COMMAND=list in /var/log/auth.log... does list refer to the ls command?
Basically the title. I've been looking through the authentication logs of a compromised virtual machine (it's just a simulation), and I noticed that after the system accepted the hacker's password, ...
0
votes
0
answers
164
views
Bash reverse search inserting characters into command after hitting tab
SYSTEM:
Ubuntu: 20.04
Kernel: 5.4.0-162-generic
bash: 5.0.17(1)
I found a strange problem that when I use bash's reverse search with CTRL+r, I will find a command I want to run. I select TAB to ...
3
votes
1
answer
740
views
With what command is possible know the mainboard requirements about the RAM?
For a computer and/or laptop used for developing and as server purposes, of course, it according with the hardware itself.
Question
With what command is possible know the mainboard requirements about ...