Questions tagged [command-line]

This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.

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

Ubuntu Openstack Console Error "Failed to connect to server (code: 1006)"

I have installed Ubuntu Openstack using MicroStack snap [installed: stein] on Ubuntu 18.04 LTS. When I try to connect to the console of newly created instances... I'm getting the following ...
0 votes
0 answers
689 views

wifi connections not showing in Ubuntu 20.04 LTS in Toshiba Satellite Laptop C850

Recently I updated my Ubuntu, my wifi connections were not showing up. Then I used a command sudo apt-get autoremove to set it right. This worked for me until today. I am getting no connections. Even ...
0 votes
1 answer
305 views

How do you make links clickable in Tilda terminals in Ubuntu 20.04?

In Ubuntu 20.04 HTTP URLs like http://example.com are not clickable anymore in the output of Tilda. This worked in Ubuntu 18.04 but I could not find a setting how to enable that. I also tested the ...
1 vote
1 answer
64 views

connect to wifi from console without retry on wrong pwd

I'm currently trying to have a c++ software to connect to a network. I use nmcli to connect to the network, and it works perfectly fine. The issue is, if the pwd given to the software for a network ...
0 votes
2 answers
223 views

Can i use grep to search words on the content that i already have in terminal [duplicate]

I am new here and in the Linux world. So i am wondering if it is possible to search for a word in the content that i already have in my terminal. Thanks in advance
5 votes
1 answer
2k views

Is there a way to fill an image with its background color to square size?

Let me describe my problem: I have a site where I post sponsors company logos. Once I'm sent the logo (or I've googled) they are usually in rectangle size - width and height are not equal. On my site, ...
3 votes
1 answer
1k views

How to properly install a GNOME 3.36+ extension via CLI?

To install GNOME extensions, the more widely used way probably is to use official GNOME extensions index after some configurations (very detailed explained here). Nevertheless, when it comes from ...
0 votes
0 answers
180 views

OpenCV not installing at the last stage on my Lubuntu system

I was installing OpenCV on Lubuntu. I was on very last stage of installation. I'm not understanding what to do next. Below is the error: (cv) archit@ubuntu:~/opencv/build$ cd /usr/local/python/cv2/...
-1 votes
1 answer
557 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 ...
0 votes
1 answer
127 views

How to run a script 4000 time for files names from 1 to 4000 in order?

I have 4000 file named from 1 to 4000 inclusive the 1 and the 4000. I wrote the below command which I want to run the script I wrote 4000 time for all the files from 1 to 4000, so I wrote: for ...
0 votes
1 answer
491 views

How to Update Many Symbolic Links at Once

I recently upgraded my computer and along with a new OS I have a new username. Because of that I have a References directory full of links that don't work anymore, but they would if I could simply ...
0 votes
0 answers
222 views

Ubuntu - prevent mv folder but allow files to be placed there

The closest I have found to creating a folder that can't be moved or deleted (but lets me add/edit/delete files within) is chattr. sudo chattr -a folder lets me protect a folder from being deleted ...
0 votes
2 answers
7k views

Can't install xampp for linux

I'm trying to install xampp as shown here, with the following line: su chmod 755 xampp-linux-1.8.3-installer.run ./xampp-linux-1.8.3-installer.run Su goes well, but the terminal doesn't run the ...
0 votes
1 answer
812 views

Shell Not Able read files written with python

I made a python file which tells every .java file in the folder it is placed in and you can select which java file to execute, the selected java file's name is then written in a file named Input.txt, ...
1 vote
2 answers
3k views

How do I open up Sublime text editor in Ubuntu 18.04LTS?

I want to open sublime text editor in my ubuntu18.04LTS command prompt to access my work.
55 votes
7 answers
257k views

What to do after Failed to start Load Kernel Modules

I tried to upgrade my system from Ubuntu 14.04. My laptop froze for a few hours. Not even the pointer did anything. So I switched off by pressing the power button for a few seconds. This uncompleted ...
2 votes
2 answers
4k views

Ubuntu 16.04 installation using serial console - unreadable characters

I'm trying to install Ubuntu on an appliance that does not have ports for a display (i.e. VGA, HDMI, DVI). I have made a bootable USB stick using the Ubuntu ISO using Unetbootin and edited three files ...
0 votes
2 answers
1k views

"which alias" and "whereis alias" doesn't return anything [duplicate]

I recently installed Ubuntu 20.04. I am unable to find the alias command. When I enter which alias I get nothing back. Same with whereis alias.
31 votes
3 answers
18k views

How to create a new file via touch if it is in a directory which doesn't exist?

Let's say the directory ~/this_dir doesn't exist. I need to be able to run touch ~/this_dir/new.txt to create new.txt in ~/this_dir. Is there a simple way to make touch also create the directory? ...
2 votes
3 answers
4k views

is there an LS for users?

I want to see what files and folders a user on my system has permission to. I am an admin, on the system. how do I get more information about what files and folders a user can access? Command line ...
0 votes
0 answers
171 views

How to show notification about bluetooth status everytime it changes in Ubuntu

I have made custom keyboard shortcut to toggle bluetooth using tlp and wished to know its status in the form of a notification, I was thinking of using notify-send command to do it but haven't figured ...
1 vote
1 answer
4k views

Increasing the console font-size [duplicate]

I am not using the GUI to work in Ubuntu but rather I am using command line interface but the problem is that the font size in command line interface is very small. How can I increase the font size?
5 votes
5 answers
9k views

Grub command `loopback loop...` does not work on Ubuntu 19.10

During bootup, I enter the grub2 command-line by pressing c on the Grub menu. When I type the following command... loopback loop (hd0,gpt2)/ubuntu-19.10-desktop-amd64.iso ...grub hangs, there is no ...
69 votes
4 answers
146k views

Where to declare environment variables?

What are correct places for: Global environment variables meant to affect all users? User-specific environment variables?
1 vote
0 answers
396 views

Multiple repository errors when I try any APT command after trying to install signal [duplicate]

I am currently using 18.04. I wanted to install signal for desktop and I got this code from the site to install on Debian: curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add ...
1 vote
0 answers
55 views

How do I run GIMP 2.10 from a command line in Ubuntu 20.04 [duplicate]

I installed flatpack GIMP 2.10 in a fresh Ubuntu 20.04 VM, and I'm trying to run it from a command line. (I'm hoping that error messages will tell me why my Python script won't load.) Unfortunately, ...
11 votes
3 answers
11k views

always prompt the user before executing a command in the shell

Is there a utility that always prompts the user for confirmation before executing a command similar to the way sudo asks for password?
1 vote
1 answer
167 views

rbash does not work when set as the default shell for a user

Even though /etc/passwd and $SHELL confirm that the default shell is rbash, the restrictions as described by rbash manual does not apply. For example, I can change directory with cd, I can change the ...
4 votes
1 answer
16k views

How can I check how many Python versions are installed? [closed]

Is there a single command to show which versions of Python are installed in Ubuntu 14.04? I know that if I type python --version or python3 --version I'll get the version of either one, but is there ...
3 votes
3 answers
2k views

How can I exclude . and .. when listing hidden items? [duplicate]

ls -d .* lists only hidden "items" (files & directories). (I think) technically it lists every item beginning with ., which includes the current . and above .. directories. I also know that ls -A ...
1 vote
2 answers
3k views

Multiple npm versions

I have an issue when I install two versions of npm I have installed npm via apt-get install npm and globaly installed npm via npm i -g npm (i have added to the path) but when i run npm --version it ...
8 votes
1 answer
3k views

How can I batch process JPG images to change their quality with Nautilus-Actions?

First of all: Thank you for taking the time to read this and provide some help. Any advice is appreciated. I am using Nautilus-Actions to add a custom context menu's action to create a copy of a JPG ...
158 votes
5 answers
98k views

How to navigate long commands faster?

Is there a way speed up Linux CLI navigation when I must enter long commands? I simply use arrows right now, and - if I have a long command it takes some time to get from start of the command to the ...
0 votes
1 answer
1k views

How to use the find command to list the path names of files including spaces?

find ~ -iname "*.mp3" I want to find all .mp3 files in my home directory and onwards. Here are some of the results: /home/koshy/Music/These Boots Are Made for Walkin Nancy Sinatra.mp3 /home/...
1 vote
1 answer
602 views

How can I plot data from sc in the terminal?

Using the sc (Spreadsheet Calculator) or (Spreadsheet Calculator Improvised) sc-im (more) I can manage spreadsheets in the terminal. Is there a way to plot this data in the terminal, too? I've found ...
0 votes
0 answers
2k views

Showing ID of GPUs that are currently being used

I have 4 GPU cards in my server, I can see which ones are running by nvidia-smi and check if memory is full, but I want to automate this process, is there any commands that can return e.g. GPU device ...
3 votes
2 answers
480 views

Differences between grep, fgrep and egrep

What are the differences between grep, fgrep and egrep? What are some examples of using them differently?
4 votes
1 answer
675 views

Get ok message when installing deb with apt in terminal (from context menu or click)

I find apt in terminal as the best way to install a program from a deb package. As I prefer it to other gui tools, I want that in the context menu for deb files or as a launcher among applications in ...
3 votes
2 answers
5k views

How to set environment variable in .NET systemd service?

I have virtual machine of Linux with Ubuntu 18. When I am running this command sudo systemctl start myservice.service Getting error ● myservice.service - dummyservice in .NET Loaded: loaded (/lib/...
2 votes
2 answers
920 views

Is it safe to write sensitive data to terminal?

I have a program to store passwords protected, however, interface is the terminal and passwords are all written visibly. I have very limited knowledge on the security, so couldn't be sure if it is ...
1 vote
1 answer
53 views

The correct command in order to display the sound GUI

what is the terminal command one should give in order to summon the original ubuntu sound GUI of ubuntu 18.04
0 votes
1 answer
929 views

Ubuntu 20.04 + recent software update + terminal, software updates, software updater not working [duplicate]

I am on dual boot with Windows 10. I initially had Ubuntu 18.04 and updated to Ubuntu 20.04 last month. I usually run the software updater from time to time. Last week, I ran the software updater ...
1 vote
1 answer
90 views

How to move files from directory /foo (1) to directory /foo

I know this is basic, but I'm failry new to bash. Due to some duplication I have many photos in many folders and I'd like to clean them up. Here is an example of my file structure - 12-30-14 - ...
2 votes
0 answers
1k views

Xp Pen Artist Pro 15.6 Tablet not working after installing Pentablet Driver XP-Pen on Ubuntu 18.04

I installed the Pentablet Driver via Terminal, opening Terminal in the folder with the extracted file typing sudo ./Pentablet_Driver.sh in. after enter the window setting of the driver will open, ...
1 vote
1 answer
461 views

How to make my node restart every X seconds

I want to make my node command (node index.js for example) repeat every X hours. I want it to run the commandline node ., then after X hours to exit the process and node it again. Any ideas? More ...
2 votes
1 answer
1k views

How to open file in existing Atom process from console?

If I have an instance of Atom open with some files already loaded, how can I open an additional file from the command line? When I simply run: atom filename.txt It opens another instance of Atom (...
3 votes
3 answers
1k 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".
2 votes
1 answer
180 views

How can I copy the screen represented output of showconsolefont to a file?

Is there an easy way to capture the characters that showconsolefont returns? Lubuntu 18.04.4 I am new to Linux but have a little bit of experience in a Unixish environment (macOS). I am playing a ...
1 vote
2 answers
2k views

Git produces output in realtime to a file but I'm unable to echo it out in realtime directly in a while loop

What I want My actual long term goal is bypassing all the output of a git process into another function (in order to make a progress bar - see my older question for more details about that). What I'...
4 votes
2 answers
649 views

Terminal not taking the full input of a directory

I am trying to understand the functioning of the Build Systems of Sublime Text 3. The commands going into the shell_cmd are the ones which will go directly into the terminal, but the terminal shows "...

1
136 137
138
139 140
457