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.

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Avoiding similar commands in Konsole when scrolling through recent commands in Manjaro KDE

Imagine that I enter these commands in Konsole (Manjaro KDE terminal): python3 script.py clear clear Normally when I hit arrow UP key, I am able to scroll through recent commands: If I hit arrow UP ...
-1
votes
1answer
31 views

How to prevent '#' from getting converted to '%23' in URL?

I'm trying to open a website at a specific location. The webpage is an HTML version of a markdown file, so appending a #header redirects straight to a location. It works when I do it manually in the ...
0
votes
0answers
30 views

How to restart the dropbear every 60 seconds?

If User A is connected to dropbear I want to restart the dropbear every 60 seconds after he successfully connected. I'm done using cron, while, and watch command to restart dropbear on 60secs but the ...
0
votes
1answer
27 views

Black Screen , no command found in fedora

When Starting Fedora linux after uninstalling / removing Cinnamon Desktop Environment I got login screen but after trying to log in I got black screen in Gnome and KDE . After that I tried to go in ...
-7
votes
0answers
39 views

Need help with sed command; search and display alphabetical [duplicate]

I'm at a loss and I need the sed command to search for and display the information for all games released in the 1980's. All in one command. Also to sort the results in alphabetical order by the game ...
-3
votes
3answers
110 views

Need help with sed command

I need help entering a single sed command to search for games released between the years 2000 and 2009 (inclusive) in the image attached. I've tried the (/) search but it did not work for me.
0
votes
1answer
28 views

How do I find at which line my data file fails while being piped to a command?

I have a file that contains one SQL command per line and I pipe it to the mysql client. I would like to know at which line it fails (when it fails) to be able to continue without re-processing the ...
0
votes
1answer
21 views

command -v <foo> returns wrong result after overwriting <foo> as function

I have the following functions in my .bashrc which just creates a python project with venv and creates gitignore and readme, after I initialise with git as: git init python ...
-3
votes
1answer
69 views

Can anyone tell me the secret section of the manual for printf to appear [closed]

I am trying to view Section 6 named "Games and Screensavers" of the Manual. I've tried searching geeksforgeeks.org for the answer as my class suggested but I have not been able to figure it ...
-2
votes
1answer
26 views

Problem with yersinia command

I newly installed kali linux on windows on VMplayer. so fIsrt of all I installed yersinia tool which was successful. But when I tried to run a command yersinia -h, result was "you must be root to ...
0
votes
1answer
46 views

How to find the original file through multiple symlinks? [duplicate]

I've run into situations where symlinks point to other symlinks causing me to have to run multiple ls commands to try to trace where the base file is stored. For example if I want to know the ...
0
votes
1answer
20 views

How do “environment variables” work when executing them in the same line with a command? [duplicate]

I can supply an environment variable to a Python script and immediately print it with: $ FOO="bar" python -c "import os; print(os.environ.get('FOO'))" bar However the same does ...
2
votes
2answers
176 views

How to add date to stderr (not filename but inside log file)?

I have a crontab entry: 00 10 * * * test.sh>>output_log 2>>error_log But I want to also include date into output_log and error_log in the beginning line of each day. How can I achieve this?...
1
vote
1answer
27 views

Debian start-stop-daemon. What is the purpose of oknodo option?

According to man start-stop-daemon -o, --oknodo Return exit status 0 instead of 1 if no actions are (would be) taken. What is the purpose of this option? When is it used?
-5
votes
1answer
29 views

How can I name the output of a compiled source file in a certain way?

In terminal, I have compiled a source file named "file.C". I did this by typing g++ file.C -o file. Now, I'd like to know how can I use Unix commands to name the output as "helloworld....
1
vote
1answer
43 views

bash: utime: command not found [closed]

I have been working on some tasks and I used utime to limit execution time of some procedures. It was working well at first, but after few calls it stopped. I checked history so I could see what could ...
0
votes
1answer
64 views

Trying to install Mullvad VPN on Manjaro ARM Laptop via yay and getting rust backtrace error

Please help me solve this issue! I have already uninstalled rust but that did not solve the problem... Here is the code: error: failed to run custom build command for `libdbus-sys v0.2.1` Caused ...
-3
votes
3answers
56 views

Linux command equivalent to 'ls' with -R argument? [closed]

I am green to Linux. I was asked to implement a Linux command to list all files in directories without ls command and with -R argument. I tried the below command: dir -R Which turns out it show all ...
1
vote
2answers
31 views

Where are manual locations for $configs?

In Ubuntu, when I run the command man rsyslog.conf, a manual page comes up. So I tried to find the location of this man page by whereis -m rsyslog.conf, but it didn't give me any results. Should I use ...
2
votes
0answers
58 views

Why does `clear` create that much whitespace on top in the macOS Terminal.app?

I was wondering about the functionality of the clear (https://invisible-island.net/ncurses/man/clear.1.html) command, that I can evoke with CtrlL in my Terminal.app on macOS. When executed, it should ...
0
votes
0answers
53 views

SSH Command on remote server

I'm stuck in a situation, I run this command on node2 netstat -tlpna|grep `ps aux|grep tnslsnr|grep -v grep|awk '{print $2}'`|head -1 and it works fine and gives me this output tcp 0 0 10....
2
votes
2answers
66 views

Why does Debian not include POSIX-specified commands like bc and ed by default?

POSIX.1-2001 Utilities and POSIX.1-2008 Utilities both list the commands bc and ed to be part of POSIX. Yet, in a brand new Debian installation (version 10 for example), these commands are missing by ...
-1
votes
2answers
56 views

How to replace all characters in string that dont match a pattern in sed?

I have a string such as "something_something_something" Now the string must have the pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])* How can I replace all characters in the string that dont match the ...
0
votes
1answer
38 views

Identify duration on log file

how to calculate duration of (Flushed time - Aggregated time) in the below log file using awk or perl scripts 09/03/2020 00:05:03.364 Aggregated 0 NMEs at a rate of 0 NMEs/sec 09/03/2020 00:05:03.366 ...
12
votes
1answer
491 views

What exactly does the “p” option of the `command` command in the bash shell do?

command command in bash: Run command with arguments ignoring any shell function named command. The '-p' option means to use a default value for $PATH that is guaranteed to find all of the standard ...
0
votes
0answers
31 views

What is the useage of the “compiled magic file” named on the “file” command man documentation?

Reading the documentation about the Linux file command. I have found this in the magic test description: Any file with some invariant identifier at a small fixed offset into the file can usually be ...
2
votes
1answer
25 views

How can I run a shell command without being added in history? [duplicate]

How can I run a shell command without being added in history? I don't want to purge the command history, I just don't want my next shell command doesn't show up in the history. Is this possible?
3
votes
1answer
40 views

Set of CLI tools that are installed by default on most distributions

While writing shell scripts, in order to achieve as much portability as possible, one might want to try and stick to using command line tools that are likely to be already installed on target systems. ...
20
votes
1answer
2k views

Using mv command to move a file from one folder to another one - Strange example

I'm learning unix commands from a UNIX Tutorial for Beginners at surrey.ac.uk where I found a weird way to move a file. In particular, I have the folder unixstuff in the home directory, inside the ...
-1
votes
1answer
40 views

How to get certain words in /proc/cpuinfo

I use a command like this: test@localhost:~> cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 23 model : 1 model name : AMD Ryzen 5 1600 Six-...
2
votes
3answers
92 views

Adding/inserting different texts to specific intervals of same text file?

I know how to insert a single text to specific interval. But now my problem is, I want to insert different texts/words saved in an add.txt file to a specific intervals of another data.txt file. I want ...
0
votes
1answer
51 views

How to make “cd” with arch-chroot non-interactive in Arch Linux?

I can't run this command in Arch Linux. I need to change directory in a chroot. #arch-chroot /mnt cd /tmp chroot: failed to run command cd - No such file or directory In interactive mode of chroot it ...
0
votes
0answers
18 views

Command to break down directory & subdirectories by (A) size per file extension and (B) total size per file extension

I have a directory (e.g. /home/various/) with many subdirectories (e.g. /home/various/foo/, /home/various/ber/, /home/various/kol/ and /home/various/whatever/). Is there a command I can run, which ...
1
vote
1answer
39 views

Interpret disk errors output from ras-mc-ctl --summary

When I run ras-mc-ctl --summary I get the following output: No Memory errors. No PCIe AER errors. No Extlog errors. No devlink errors. Disk errors summary: 0:0 has 15356 errors 0:2064 has ...
0
votes
2answers
193 views

Lynx browser no cookie prompt

How can i turn off cookie prompts and disallow cookies in the Lynx browser? Here is my .lynxrc: ACCEPT_ALL_COOKIES:FALSE SET_COOKIES:FALSE Thanks
0
votes
1answer
250 views

cryptsetup “command not found”

Hey guys i am on a Debian following this guide https://www.youtube.com/watch?v=upOqR4HPi60 and when i type in this command cryptsetup luksAddKey /dev/YourDeviceName /keyfile i get cryptsetup: command ...
0
votes
1answer
29 views

How to pass arguments to a single command from multiple files?

I am using the convert command to annotate images with text: convert -pointsize 20 -fill green -draw 'text 270,460 "[TEXT TO ANNOTATE]" ' [INPUT IMAGE NAME].jpg [OUTPUT IMAGE NAME].jpg I ...
0
votes
1answer
40 views

append file & directory to /

if I have directory /test and create or copy subs directories and files , eg root@box:/test/etc/config# ls newfile1 newfile2 newfile3 newfolderz newfoldery how can be automatically appended to / with ...
0
votes
1answer
69 views

Command to list partition type codes in deb and rpm distributions for MBR and GPT

Is there any command to list all partition type codes recognizable by currently installed distribution (In my case Ubuntu 18.04.03 LTS) I know the following website exists Andries E. Brouwer 1995-2002 ...
0
votes
0answers
14 views

How do I know which Windowing system, display server and a window manager I am running on GNU/Linux? [duplicate]

I really liked following diagram from Wikipedia which shows how different graphical components are connected to each other.: As per my understanding, here 1) "graphical interface" is ...
0
votes
1answer
47 views

How to get this list? Don't miss any [PID] (running & ended)

How to get this list (table)? From turn on the computer until now. Don't miss any [PID] (still running [PID], already ended [PID]). List field: PPID, PID, Threads, USER, Start-time, Change-time, End-...
1
vote
1answer
57 views

Where should I put the other files of my command?

I made an script with Python, made it executable, and put it in /usr/local/bin/. However I have many other files that related to my command, where should I put them? I tried to put them in /usr/local/ ...
0
votes
0answers
58 views

How to force a specific HTTPS protocol on HTTPERF?

I would like to test specific SSL protocol: (e.g. TLS1.0 exactly, or SSLv2 exactly). It seems there is a ssl-cyphers argument, but when I use it with a protocol not accepted by my server, it still ...
-1
votes
2answers
69 views

What is com command in linux?

I saw in a video on Youtube : $ sudo com /dev/ttyUSb0 115200 [sudo] password for xt003: setting speed 115200 C-a exit, C-a modem lines status [status]: RTS DTR What is com command? I searched for ...
0
votes
1answer
39 views

tail -f -n 1 returns all content of the file

I have a text.txt file in Ubuntu. I want to watch the file with tail for grabbing the last content of the file. tail -f text.txt this command returns all of the content. So I changed it to : tail -f -...
0
votes
2answers
108 views

How to enclose variables with double quotes correctly in sed command

I have a .csv file with two "columns" of data like this: test1.ts.meta,Before Sunrise (1995) test2.ts.meta,A Beautiful Mind (2001) test3.ts.meta,Departures (2008) test4.ts.meta,Love & ...
0
votes
2answers
67 views

using $ arguments on the command line and providing values for them at the end

rather than write scripts for every single process I need to do, I like to just save commands in a text file and copy and paste them on the command line. Of course, some of the specifics of the ...
0
votes
0answers
50 views

Is there a logout equivalent of ~/.profile?

The file ~/.profile can be used to specify commands to run when a user logs in to a session. This has the advantage over ~/.bash_profile in that it works for shells other than bash and also works for ...
6
votes
1answer
191 views

Modify file names in tar file without extracting files to temporary location

I have a tar file that contains some files in a folder named old_name. Now I'd like to create a new tar file where that folder has been renamed to new_name without extracting to file to disk as that ...
0
votes
1answer
20 views

Exe file creating directories with just no right permissions to folder

I have a script that runs in aws which basically pulls data feeds via api then creates a folder which it then dumps a csv file into. Right now it is supposed to name the directory based on its name. ...

1
2 3 4 5
18