Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [command-line]

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

1
vote
0answers
19 views

How to display progress when formatting a partition?

i am trying to create an ext4 partition in my external usb stick from CLI. While i did it successfully with mkfs, i havent found a way to display a progress bar (or percentage) while formatting. Is ...
0
votes
1answer
22 views

SQuirreL won't launch

I'm trying to run SQuirreL on Ubuntu 18.04 but I'm not able to make it launch. When I run ~/squirrel-sql-3.8.1/squirrel-sql.sh Nothing happens. I don't understand the sh script very well. I ...
0
votes
1answer
21 views

How do I run a graphical sudo in bash on kubuntu 18.04 now that kdesudo is gone?

TL;DR: What's the new right way to do a graphical sudo from a shell script? Flailing: I just upgraded from kubuntu 16.04 to 18.04 and I'm doing the normal triage. kdesudo is gone in 18.04 (...
0
votes
1answer
10 views

Problem running .net Core on Ubuntu Server

I have created a simple console app in .net Core 2.1 and compiled the following output: HelloWorld.deps.json HelloWorld.dll HelloWorld.pdb HelloWorld.runtimeconfig.dev.json HelloWorld....
0
votes
1answer
20 views

Wrong sed with regexp

I have log file. I want extract email list from specific lines. Sample log file: 05:06:48,311 INFO http-nio-8080-exec-81 controller.IndexController:221 - Attempt to login: [xxx@yyy.com]. Headers: ["...
0
votes
0answers
16 views

not open python as file or directory

I tried to develop pyarrow on my system for use it at python by using this site commands https://arrow.apache.org/docs/python/development.html in use the billow command cd arrow/python python ...
0
votes
0answers
10 views

Set up cron for executing php file

I want to set up cron for my php file, on Ubuntu (16.04) I do: sudo crontab -e * * * * * php /var/www/myfolder/myfile.php This gives error: usage error: no arguments permitted after this option ...
-1
votes
0answers
18 views

how do I add pictures to my ubuntu server using terminal ssh [duplicate]

I was wondering how do I add pictures to my website. I mean I know how to add them to index.html but how do I add the picture to public_html. any answers? and also every askubuntu page doesn't answer ...
0
votes
0answers
18 views

How can i run commands with no visual output [duplicate]

I'm wondering how to run commands with no visual output. For intstance: windows has command>NUL which still runs the command but no visual output. I'm planning on using this in installation scripts ...
-2
votes
0answers
13 views

When I puted wifislax on USB and run it I ran into the problem of not defining the internal wireless card [on hold]

When I burn wifislax on USB and run it I ran into the problem of not defining the internal wireless card so please how to
0
votes
0answers
17 views

Linux always boots into GRUBv2 Terminal

Whenever I try to boot into my Linux, this following GRUB terminal always pops up. I have tried various solutions available on the internet including theses:- How to Rescue a Non-booting GRUB 2 on ...
0
votes
0answers
12 views

Which is the best way to learn terminal in Ubuntu? [duplicate]

Which is the best way to learn terminal in Ubuntu?
2
votes
1answer
15 views

How do I edit PulseAudio configuration through a script?

I have connected TV to my PC thru HDMI port. Every time I turn on my PC i need to change in pavucontrol (in config tab) from (HDMI) to (HDMI 3). I wish to make a bash script which can change it for me....
-3
votes
0answers
24 views

How to delete all files, hidden files, and folders and icons, but not the folders themselves using regedit? [on hold]

Hi. I've been looking for a way to delete all files, hidden files, and folders and icons, but not the icons using regedit. I have no idea about commands. I found an page that shows how to create a ...
0
votes
0answers
30 views

Ubuntu terminal not getting launched

I was trying to change my ~/.bashrc file to make python3 the default. I abruptly closed the terminal. After that terminal is not launching if opened from accessories. I opened the terminal from my ...
3
votes
1answer
58 views

awk: pipe output of (conditional) print to gzip

consider this file: #!/usr/bin/env bash cat > example_file.txt <<EOL group, value 1, 3.21 1, 3.42 1, 3.5 2, 4.1 2, 4.2 EOL in the following script, I group the rows of this file by the ...
1
vote
1answer
46 views

Reset shell password [on hold]

I know my user password. I am the only user on computer. Latest version of Ubuntu.I do not remember the password for shell terminal.My user password does not work. How do I reset shell password?
0
votes
0answers
26 views

Need help to copy the contents of the temp file created by another shell script within a shell script [on hold]

I have a shell script test.sh. Within that I am trying to execute another shell script abc.sh. When abc.sh is executed it takes in one of the options a,b,c. If I choose "a " and press enter, it ...
9
votes
5answers
310 views

How to print multiline variables in side-by-side columns (bash)?

I have two variables which contain multiline information and i want to column them. varA returns Aug 01 Aug 04 Aug 16 Aug 26 and varB returns 04:25 07:28 03:39 10:06 if i print both variables, it ...
0
votes
0answers
13 views

Bulk renaming the files [duplicate]

I need to rename the screenshot1.png...screenshot19 pattern like images to index1.png to index19.png , how to do this ? Can somebody help me out !!
3
votes
1answer
338 views

less calls nano instead of vi

In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set. I ...
0
votes
0answers
35 views

File creation using an app on server initiated with SSH command running via bash script

I have an app on my server which creates log files when running. I have to run this application from my local machine using a script. So in my script I use SSH command to execute my app on the server. ...
7
votes
2answers
110 views

Trying to find files that contain only NULs, but getting some others

The files I am trying to find/list are: Any size (0 bytes accepted) Consist only of ASCII NUL characters (0x00) If there are any characters other than 0x00, the file shouldn't be listed. The command ...
0
votes
0answers
17 views

error in time command with zsh [duplicate]

I am on Ubuntu:- No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic On terminal, I run this command:- time -f "\t%E real,\...
-3
votes
1answer
31 views

Using head in man grep, and grep in boot.log Ubuntu 18.04 lts [on hold]

I have Ubuntu 18.04 LTS and I am the new one in Linux system. I have exercises to do: show first ten lines and the last five in the manual of function grep. I tried to use function: head -n 10 man ...
1
vote
1answer
15 views

Prompt has been changed after upgrade to 18.04.1 after using “su” to change user

Just updated to 18.04.1 I use Terminal only. When I do an su to one my users that runs a game, I only get a $ and no name of the user and does not show current location. Also, tab autocomplete ...
4
votes
2answers
398 views

How can I recursively find a directory by name and delete its contents (including all sub-directories and files) while keeping the directory itself?

Given: I have a tree structure with folders EmptyMe on different levels EmptyMe directories contain sub-directories and files Required: Empty contents of EmptyMe directories (inlcuding their sub-...
5
votes
1answer
201 views

What is the default location for rsync uploads? [duplicate]

I uploaded a local text file omitting the remote location and can't find the file (Ubuntu 16.04). rsync -chavzP dump.sql user@ip-address It's not in my home directory or anywhere else that I can ...
0
votes
0answers
35 views

Which one is better, opening two terminal or running a command using & in this case

I am trying to do a loopback test on can bus using this site, this1 and this2 In the second one, a second terminal is to be opened (which I can't do as minicom will only open one, and opening ...
1
vote
1answer
21 views

Start a server using a shell script

Now, I need to start the server like this. $./server.start I have to this every time I start and logged into my machine. It would be so good if there is a script which does the same automatically ...
0
votes
1answer
35 views

Determine if a shell script is running on a LiveOS/chroot/installed system?

How can I determine within a shell script if the script is running: On a Ubuntu LiveOS (not necessarily version dependant) -- (already answered here) Within a chroot on an Ubuntu LiveOS (already ...
1
vote
1answer
41 views

How to fix broken dropbox *menu* in xubuntu 18.04?

There are many threads about how to restore the dropbox icon. For instance, this link. Following those instructions in xubuntu 18.04 restores the menu icon, but left or right clicking the icon ...
0
votes
1answer
24 views

Non blinking gnome-terminal that always displays

Similar to this question How do I disable the blinking cursor in gnome-terminal? I want my gnome-terminal instances to always display. For some reason when I follow the above questions steps it does ...
0
votes
0answers
16 views

shell request failed on channel 2

I have a ssh server which I used to connect to it via bitvise SSH client on windows. now I want to connect via my ubuntu command line to this server with this command : sudo ssh -oHostKeyAlgorithms=+...
1
vote
1answer
19 views

Problem with tar when using Systemd timer

I have an Ubuntu server 16.04 server machine with MS-SQLServer installed. I'm trying to create a scheduled backup for the databases on weekly basis on Thursday 16:00:00. The script for creating a ...
0
votes
0answers
16 views

use a directory between 2 domain user in one pc with permission

Im trying to make a folder in /home directory and 2 users can share file between them on this folder one of them work directly on this pc and one of them are connected to this pc using vnc with ...
1
vote
0answers
11 views

what is the difference between node and nodejs version being shown in my terminal ubuntu 17

When I type node -v result: v.10.8.0, npm -v result: v 6.2.0. and finally nodejs -v result: v.6.14.2. I read in other forum saying that node and nodejs are same. If it's true, did I installed two ...
-1
votes
0answers
23 views

how to open new konsole and run bash script in it? [on hold]

we want to write script, that running 2 other bash scripts in new terminals. we found the command "konsole": !/bin/bash konsole --noclose -e WebConflict1.sh konsole --noclose -e WebConflict2.sh 2 ...
-3
votes
0answers
41 views

Variable not working [duplicate]

I can not understand why this does not change into the directory upon exit of the script. DOCS="/home/andy/Documents" SCRIPTS="/home/andy/bin/" ICONS="/home/andy/ICONS" DESKTOP="/home/andy/Desktop/" ...
0
votes
0answers
23 views

Failed to build/install cartographer package

I'm trying to install Google Cartographer (it's for ROS which is installed in Ubuntu), but I got some errors when I tried it. When I type catkin_make_isolated I get these errors: Failed to find ...
1
vote
1answer
16 views

Overlapping text in pantheon-terminal (Ubuntu 18.04)

I've recently installed pantheon-terminal on my new Ubuntu 18.04 and I have a problem with overlapping text. I've tried to change font with dconf-editor, but nothing has changed. Does anyone can ...
0
votes
1answer
28 views

Is there a way to safely close down Chromium from the command-line?

Is there a way using command-line/bash to safely close down Chromium (running multiple tabs), that will not cause the application to shutdown incorrectly. Using (for example): $ pkill -3 chromium (...
4
votes
1answer
30 views

Chromium doesn't shutdown correctly with 2 or more active tabs open (18.04)

Whenever I shutdown or reboot or logout of my computer with Chromium running at least 2 active tabs, the next time I launch Chromium I get the following error: This error happens if I shutdown or ...
0
votes
0answers
19 views

`sudo fbterm` returns “stdin isn't an interactive tty!”

I using Ubuntu 14.04 I installed fbterm using sudo apt-get install fbterm But when I type sudo fbterm There is a message stdin isn't a interactive tty! Is that message an error? Or is ...
1
vote
1answer
46 views

Terminal emulators start without user groups

I have used terminator as my default terminal for years. Recently I found docker commands started requiring sudo to run, and while debugging this, discovered terminal emulators on my system (...
0
votes
0answers
24 views

after running qemu connect to it with ssh

My goal is to execute a script that after running qemu vm ill connect to it and execute several commands. The idea was after running the qemu vm I'm trying to connect with ssh. if it fail it means the ...
0
votes
0answers
26 views

Cannot run .run file [closed]

I am trying to install Maple from a .run file but i cannot make it run. This is what i typed and what the terminal wrote. mads@mads-ThinkPad-T420s:~/Downloads$ ls dict-da-current.oxt ...
-1
votes
0answers
19 views

how to reslove E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) error [duplicate]

when i tried this command $ apt install default-jre i got this error E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/...
0
votes
1answer
28 views

Possible to collapse the output of tree -h?

I am trying to add a javascript to tree -h output an HTML file that can collapse all the child elements and would only display the parent elements. I find it difficult to do it with JavaScript because ...
0
votes
1answer
29 views

stay connected to wifi when all users log out

When I logout from my session, and no other user is logged locally, the wifi connection is stopped. I would like to keep it on, so that I can log on from a remote computer. How can I do that?