Questions tagged [command-line]

Questions about using the command-line interface (CLI).

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

What does the “NO THREADS” mean after I run the executable file zacros.x on Linux ? Does it mean the calculation is in progress?

What does the "NO THREADS" mean after I run the executable file zacros.x on Linux ? Does it mean the calculation is in progress? In the test input file, the executable file zacros.x is ran and it ...
0
votes
0answers
10 views

Please explain `sudo ubuntu-drivers --gpgpu nvidia autoinstall`?

I would like to install the Nvidia driver using the command-line. Simply installing the driver package does not activate it in the Additional Drivers tab of Software & Updates (even though the ...
0
votes
0answers
15 views

Cannot use Shift + Space in Terminal

I use Ubuntu 20.04 and I discovered today that I cannot use the key shortcut Shift+Space in terminal. In regular Gnome apps there is no problem using this. In the terminal Shift+Space results in only ...
0
votes
0answers
17 views

Need help compiling Crafty chess engine from source

I'm trying to compile an older version of Crafty chess engine (version 23.2) on Ubuntu 16.04. I've never tried to compile stuff before but I did Google about it and have tried various commands but ...
0
votes
1answer
23 views

How to disable GUI and only use terminal?

My laptop is running very slow so I thought about disabling the GUI and some preferred me to use this command to disable GUI sudo service gdm stop But using this command i am not abled to type ...
-1
votes
0answers
24 views

A shell script how stop from execution all process from an User in last X hour

I am a begginer and i don’t know. Please a little help!
0
votes
0answers
20 views

Please Help:gedit via Terminal (sudo gedit): Unable to remove “highlight current line” and Unable to modify preferences?

I sued gedit with sudo. I would like to unchecked: (the Highlight the current line, Highlight matching brackets, and Display line numbers) of gedit during the sudo gedit. But I can't do that. Hence ...
0
votes
0answers
20 views

how to install ubuntu 20.0 lts from bootable flash drive through command line? [duplicate]

OS INSTALATION install os through command line from usb flash drive.
0
votes
1answer
26 views

How to use root permission while copying, moving and extracting files

I am new user in ubuntu and i am a web developer especially wordpress developer. So I have installed xampp and after downloading wordpress zip file I moved it to /opt/lampp/htdocs/ But whenever I am ...
0
votes
0answers
7 views

unrecognized characters in recovery mode terminal

I wanted to update my Ubuntu version 18.04 to a later version. I used update manager(cannot remember the name of the ubuntu utility) provided in Ubuntu. However, it got stuck in the middle and the ...
0
votes
2answers
29 views

Forgot the name of a program which allows for quick terminal commands on key press

If anyone knows the name, let me know. What it does: Press something like CTRL+D and a popup appears which takes command line input. So if I want to open a program using keyboard input and without ...
0
votes
0answers
20 views

Read-only file system

I tried removing an icon of my deleted tor-browser using the command-line in this directory: /snap/kde-frameworks-5-core18/32/usr/share/icons/breeze-dark/apps/48 but I received this error: rm: ...
0
votes
1answer
36 views

How to stop pressing ctrl+c from closing the gnome terminal?

gnome-terminal --tab --title="watch reason" --command="bash -c 'yarn start'" Running this command would open up a new terminal an run the script start. But on pressing control+c the terminal ...
-2
votes
1answer
79 views

How to write a shell script that shows just the content of the files with more than 8 lines from the current directory?

I'm new in shell scripting. How can I write a shell script that shows just the content of the files with more than 8 lines from the current directory (in Ubuntu)? I know that I must use the command ...
0
votes
1answer
34 views

Ubuntu 18.4 can't install latest version of speedtest-cli

I've installed speedtest-cli 2.0.0 and then I removed it using this commands: apt-get remove speedtest-cli And then tried to install the latest version 2.1.2 but when I run pip3 install speedtest-...
0
votes
2answers
31 views

How to run a command through a keyboard shortcut in the current directory?

To open vscode I use code . in the directory I want to use. How can I assign a keyboard shortcut such that the command runs in the directory I am currently browsing? If it's not possible then how can ...
0
votes
0answers
13 views

Ubuntu Terminal Not Opening After Updating Python

Opening the terminal fails, giving the error, Traceback (most recent call last): File "/usr/bin/gnome-terminal", line 9, in <module> from gi.repository import GLib, Gio File "/usr/lib/...
-5
votes
1answer
42 views

add user to visudo to run any command without sudo but still get permission denied

i run like this: prod:~$ sudo visudo and then i added myusername here # User privilege specification root ALL=(ALL:ALL) ALL foobar ALL=(ALL:ALL) NOPASSWD:ALL i tried this also: sudo sh -c '...
0
votes
1answer
49 views

tar archives error

I need to search for a pattern (string) in all .tar archives and then append the names of archives which contains the pattern (string) provided in a text.txt folder. My code is: for f in *.tar.gz do ...
-1
votes
0answers
17 views

GNU Nano editor opens everytime i open a new terminal with creating a new nano editor file as New Buffer?

GNU Nano editor opens everytime i open a new terminal with creating a new nano editor file as New Buffer? Even after resetting the terminal from advanced settings, it still opens.
0
votes
1answer
23 views

ls -R fails to watch files recursively (with entr)

entr is a linux package that takes a watch command and then runs another command upon seeing any file modifications. Examples: http://eradman.com/entrproject/ # Rebuild project if sources change $ ...
0
votes
1answer
14 views

move all .formet file from specific location?

I am replacing my current Ubuntu version version to Ubuntu 20.04 and making backup of my .cpp program file location of my .cpp program files are in current working directory. I am made a myprog ...
0
votes
2answers
43 views

Test run command without executing it but showing result of command

Some time ago I learned a command that would run the command and show the end result, but it wouldn't actually execute the command, just the outcome as if it was ran. I forgot this command and can't ...
-1
votes
0answers
18 views

How to lock a file for administrator (su/sudo password-protected) access only from command line / terminal?

I have some sensitive files that I want to protect from my own impulsivity. They're in ~ (/home) not /dev or /bin; those files are protected by default. However, like system files in /dev, /bin, or ...
1
vote
1answer
19 views

Re-attach detached Terminal Tabs

Is there a way in Ubuntu 18.04.3 LTS that once a tab of "Terminal" window is detached from that window, to re-attach that tab to the another already opened Terminal window (with other tabs) again?
0
votes
0answers
10 views

libmtp-libmtp-1-1-17.zip how to load [duplicate]

Hi folks could you tell me how would I load this "libmtp-libmtp-1-1-17.zip" onto my system? I'm a rookie, step by step instructions would be appreciated. I was told this would help me with my ...
0
votes
0answers
14 views

My Lubuntu 20.04 doesn't start

Today I tried to start Ubuntu. I used dual boot. And it does not start and stays on black with a white line something like. _ I tried using the recovery mode with clean, dpkg restart and fsck and ...
0
votes
0answers
22 views

how to download Ubuntu software with dependency for offline installation

I have a packages_list.txt file with a list of Ubuntu Softwares. I generated the list of the Softwares on another machine using the command. sudo dpkg-query -f '${binary:Package}\n' -W > ...
0
votes
1answer
18 views

shell script: manipulate input

I have this simple create directory command #!/bin/bash mkdir -p /home/test/$1 I'm running this script like this bash create.sh 2020/06/20/01 I want to get this passed argument and manipulate ...
0
votes
0answers
17 views

How to get a list of currently opened websites on a browser

I have Firefox and brave as my web browser on PC. I would like to know how to get a list of currently opened webpages either on normal or private windows on either Firefox or brave. Ultimately I would ...
0
votes
0answers
14 views

why are folder names green in color ubuntu 20.04 [duplicate]

I have folders in green color when I do ls -l then they appear colored you can see in the link folders are all green in color what could be reason for this.
0
votes
0answers
52 views

bash: ./(filename): No such file or directory

i am using ubuntu 18.04 and i was writing a code for fastjet using root.but as i was trying to run the code, it showed this error: bash: ./(filename): No such file or directory but there is a file ...
0
votes
1answer
25 views

How can I use the output suggestion by apt and other terminals use?

Have you ever had to run a command which is not found on your system, but apt suggests you to install it running command? Do you know if it would be possible to autocomplete the terminal prompt with ...
-1
votes
0answers
22 views

How do I reject all incoming telnet packets and allow all outgoing telnet packets? [closed]

I used the following command: sudo iptaples -A INPUT -p tcp --dport telnet -j REJECT. But it doesn't work.
0
votes
0answers
15 views

Android: Command not found, top of terminal [duplicate]

Everytime I open terminal in my kubuntu, It appears a line before my name. Android: command not found I don't know what it is about but i recently delete anbox from my system. Plz help.
3
votes
0answers
46 views

Not able to run portable chrome .desktop opening in text editor

I installed portable chrome using https://github.com/shivamgly/Google-Chrome-Portable-maker-for-linux this link I am not able to run this chrome. Chrome.desktop file opens in text-editor. ...
1
vote
1answer
20 views

How to make the Delete key work in micro (text editor) when this is running under st terminal (from bspwm)?

How to make the Delete key work in the Micro text editor, when this is running under st terminal (from bspwm)? When I press the Delete key, this sequence appears: "[P". I have tried changing the ...
-3
votes
0answers
32 views

How do i fix this Linux Terminal Error? [closed]

Im wanting to download a screen Recorder called Kazam, so i run this bash script at the terminal (Linux Mint 19.3 Ubuntu Based) sudo apt install kazam but it went wrong and said that some other ...
0
votes
2answers
53 views

Check if files exist, get the most recent one

If I have these files in my test folder ehsant@lp02944:~/test$ll total 24 drwxr-xr-x 2 ehsant ehsant 4096 May 19 17:54 . drwxr-xr-x 6 ehsant ehsant 4096 May 19 14:45 .. -rw-r--r-- 1 ehsant ehsant ...
1
vote
1answer
25 views

Copying files from multiple directories using a loop

I have a set of single files basename.file, in multiple directories basename_dir. I want to copy all the .file files into a single directory. I have created a .txt containing all basenames. I want to ...
1
vote
0answers
21 views

Can't open an application Ubuntu 18.04

I can't open any application at my side panel. Only with Terminal. For example, I've downloaded a PHPStorm, so I must open a terminal and then: cd ~/Desktop/helper/PhpStorm-2020.1/PhpStorm-201.6668....
-1
votes
0answers
21 views

What do indicator codes mean? [duplicate]

I've got a question related to the indicator codes of the ls -F output. They are */=>@| So I know that the slash (/) means directory file asterisk (*) means a file that can be executed (binary ...
3
votes
3answers
124 views

renaming file and deleting from last

what is the "command line" "to remove certain character from the end of a file name . For example, subash.jpg.jpg. I want to remove ".jpg" from last. i have been having problem "renaming the files".
0
votes
1answer
46 views

Error configuring static routing using cli

I'm trying to add a static route on my Ubuntu Desktop 16.04 machine with the cli, but with no success. I'm using the classic ip route command: ip route add x.x.x.0/24 via y.y.y.y dev eno1 (hid the ...
1
vote
1answer
35 views

How to include configuration from other file in .bashrc and .bash_profile?

I often use use aliases in terminal. But alias command is only effective until I close that session. So, I have to set aliases and variables in .bashrc so they are permanent. But I when use TTY ...
0
votes
1answer
24 views

Change default gnome-terminal to terminator

Changing default terminal is supposed to be be done with: sudo update-alternatives --config x-terminal-emulator (as mentioned in https://stackoverflow.com/questions/16808231/how-do-i-set-default-...
0
votes
0answers
35 views

could not find function “setup”

i get following error ; my seurat version :3.1.5 ; my R version 3.2.7 ; i run this code in Rstudio library(Seurat) library(useful) nbt.data=read.table("a.txt",sep=",",header=TRUE,row.names=1) nbt....
0
votes
1answer
14 views

Find directories within directories ending in 'l0' that do not contain '*18*' in their names

I am currently doing find . ! -name '*18*' -name '*l0*' -type d but it is listing all the parent directories like 'd1_l0' , 'd2_l0', 'd3_l0' etc only. I actually want subdirectories like 'd1_l0/[15*,...
1
vote
2answers
87 views

What is the best way to observe energy usage of a program on Linux?

I am doing research and would like some information about the energy consumption of two algorithms I wrote, but I don't have the money for special-purposed devices. I plan to run both programs for 5 ...
0
votes
0answers
33 views

apt-get update not not working [duplicate]

when I try to update my system it doesnt work I try many ways but it didnot work this is the result W: GPG error: http://ppa.launchpad.net/linuxuprising/java/ubuntu focal InRelease: The following ...

1
2 3 4 5
379