Questions tagged [command-line]

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

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

WhatPulse not working correctly?

I have been a Linux user for just over 2 years now, but one thing I've been trying to install since day one was WhatPulse (https://whatpulse.org/). I love seeing statistics on my typing such as seeing ...
0
votes
1answer
8 views

command line input in java

Trying to provide input via command in a java program.Here is the code. public class Hola { public static void main(String[] args) { // TODO Auto-generated method stub System.out....
0
votes
0answers
6 views

Terminal having issues in Ubuntu 20.04 update

Installed 20.04 and opened my terminal. I get this. What I see in terminal when I open it. What do I do to get it back to normal? I have tried uninstalling it and then installing it but I still get ...
0
votes
1answer
26 views

How to install file downloaded from git clone

I was trying to download hcxpcaptool in Ubuntu but I couldn't find it in the repository so I downloaded it using this command: wget git clone https://github.com/ZerBea/hcxtools.git but I am not able ...
0
votes
0answers
19 views

error opening android studio

Yesterday I opened " vmoptions " like in this video for speed up my android studio and I saw that there was nothing there and I thought it would speed up if I wrote that. After that, I wrote ...
0
votes
0answers
16 views

Alternative for xp_cmdshell in the store procedure

I.m using xp_cmdshell in a store procedure for bcp,type,insert process. How can I replace the xp_cmdshell and create new store procedure with same functionality.
0
votes
1answer
45 views

I can't check Python version on Ubuntu 20.04

I was trying to check the Python version on my device. In the terminal I used the command python --version. But it outputs a message saying Command 'python' not found, did you mean: command 'python3'...
0
votes
0answers
9 views

Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)

I login to some Ubuntu servers via ssh to run installation script. The script contains some lines as below: echo "deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx" >> /etc/...
0
votes
0answers
16 views

Shortcut key to show and hide embedded terminal on gedit

I have been using gedit for writing codes and compiling and running using the embedded terminal provided along with it. I often need to show and hide the terminal. The only option I have is to close ...
1
vote
0answers
19 views

Ubuntu is unusable after installing gnome

I have Ubuntu with no graphic user interface, I typed sudo apt-get install ubuntu-gnome-desktop to install the Gnome GUI, but now every time I boot up the computer I get a solid purple color screen ...
1
vote
1answer
16 views

Trying to add an ampersand at the end of every line of file using sed

I am trying to add an ampersand at the end of every line of a file using sed as follows: sed -i -e 's/$/ &/' file However, when I look at the contents of the file (using both Vim and just cating ...
-1
votes
1answer
27 views

Is “screen” package still available on linux?

Good afternoon everyone, I’m looking to perfect myself right now on linux systems and the course I'm working on talk about a command named "screen". However, when trying "sudo apt-get ...
2
votes
0answers
73 views

How to completely suppress output of a command?

I want this command to work silently, echo "any_password" | sudo -S true I tried redirecting the output of stdout and stderr to /dev/null. When I provide the correct password it works as ...
0
votes
0answers
14 views

Open new Chrome window with different profile from command line

I want to run a command line that opens a new chrome window with another profile. I tested the following commands: Preconditions: I have two profiles: Profile 1 and Profile 2 Chrome is already ...
0
votes
0answers
17 views

Invoke Bash console from windows subsytem for linux (Windos

I'm working on a 2D airfoil optimization throught Openfoam (which is installed on ubuntu 18.04 LTS by windows subsystem for linux), I already generated all the required folders and files and I just ...
1
vote
1answer
30 views

How to open an app through the terminal without rendering that terminal window useless for other commands? [duplicate]

I am trying to use the terminal to open the file explorer nautilus. When I type the command nautilus into the terminal, I see the following output (nautilus:5814): Gtk-WARNING **: 07:26:19.884: Theme ...
0
votes
1answer
56 views

Batch to Bash Script

Could I get some help converting this batch script to an shell script? I don't know how to get the second part working, would I just pipe the first into the 2nd instead of having the brackets? (and ...
0
votes
0answers
36 views

Help for running commands and install gau.go

I found in github a url fetcher and i want to try it. I tried to install it with the command $ GO111MODULE=on go get -u -v github.com/lc/gau but it give me unknown command as an error. Can you help me ...
0
votes
0answers
24 views

Problem with XAMPP installation

I tried first to install bitnami for Wordpress. When I launched it I had a problem with the database connection. I never entered a password. I tried to solve the problem but I couldn't. Then I decided ...
10
votes
3answers
2k views

What does ${_[0]} mean in bash?

When I type this in bash command line $ x=hi; printf '%s ' "$x" "${x[0]}"; echo "${_[0]}" I have this output: hi hi hi Why "${_[0]}" turns out to be "hi&...
4
votes
0answers
19 views

find recursive (with ffprobe) all low quality videos (240p and 480p)

How to find recursive (with ffprobe) all low quality videos (example 240p and 480p)? I prefer a command line solution. Before there was iPhone and clones, I recorded already videos. They seem to have ...
0
votes
1answer
69 views

Infinite loop when trying to launch a symbolic-link to a bash script

I am trying to create a symbolic-link by using: $ ln -s path/to/foo.sh ~/.local/bin/bar In the path where foo.sh is executed there is another file, named foo. The following bash-script executes ...
2
votes
1answer
26 views

Tor mode activated in shell

I recently added tor via this site, and ran torsocks through $ echo ". torsocks on" >> ~/.bashrc Now each time I open terminal, I have a log of turning on/off tor: Is there any way to ...
0
votes
0answers
24 views

How to add NON-MONOSPACED font to terminal

Right now when I click on Preferences, Text, the available fonts are only monospaced fonts. I want to use my font that's not monospaced. How do I achieve that?
2
votes
1answer
20 views

Flashing Ubuntu to microSD card

I just got a Raspberry Pi 4 4gb and I've been trying to get Ubuntu 64-bit running on it, but I can't get past flashing it to the card. I've been following this tutorial:l https://ubuntu.com/tutorials/...
0
votes
0answers
29 views

Gnome got autoremoved (18.04)

After running apt update, I was prompted to run apt autoremove. I'd done this a few times before with no consequence, so I did. Immediately xterm closed, and I noticed gedit and the ubuntu store were ...
0
votes
1answer
60 views

Bash Recursive Script Failure

I build the script that is mandatory for use in GUI interface (for a reason). The script is designed to relaunch itself in gnome terminal in all conditions. The basic stub of the script is looking ...
0
votes
1answer
36 views

SSH to personal laptop from external pc

The process that I want is: Connect by ssh to a pc1 from my laptop, in pc1 connect to pc2 and in pc2 connect to my laptop. How can I know which IP is my laptop? Is that possible?
0
votes
1answer
30 views

Permission for all commands, but unable to clear cache

I am trying to clear the cache on my laptop running: Operating System: Ubuntu 20.04 LTS Kernel: Linux 5.4.0-40-generic However when I put in these commands this is the output: $ sudo sync; ...
0
votes
0answers
13 views

Show Raw Contents of update-alternatives

I'm wondering if there's a way to show the raw contents of sudo update-alternatives --config <resource>? I've been doing quite a lot of troubleshooting getting some installs correct and I cannot ...
1
vote
1answer
66 views

Chaining command when running bash script

I am just curious if I can chain a command after the execution of the bash script completes. $ deploy-stg.sh <path to pem file>; notify-send "deployed" Above example is just for ...
0
votes
0answers
43 views

Ubuntu directly booting into terminal on startup

I think I broke Gnome. Ubuntu is directly booting into terminal. Tried startx.. didnt work. Created a new source.list file.. that didn't work too. Then tried installing gnome-shell but it showed there ...
0
votes
1answer
56 views

Help with script to make a directory, change directory, download a file, then back out of that directory

All, I'm trying to write a script that will create a folder, go into that folder, create another folder, go into that folder, download files, back out of that folder, create a new folder, go into that ...
1
vote
1answer
61 views

awk adding up two rows if the rows have a matching name

I am trying to take a csv file that looks like customerID,firstname,lastname,charge 5efc522,Romo,goodrick,37.89 4a7f057,jeny,vel,38.39 5efc522,Romo,goodrick,39.00 and make it into firstname,lastname,...
-2
votes
0answers
29 views

Traceback (most recent call last)… In Wifite2 , Help me pls [closed]

I download and fix all the errors that the wifite gave me, but now when I run it it gives me this error. [!] Conflicting processes: NetworkManager (PID 478), wpa_supplicant (PID 910) [!] If you ...
0
votes
0answers
31 views

Error while logging in to my remote server

when I try to login to my remote server from the University I get an error as follows: Connection failed. Missing }. Missing }. } : Command not found. Missing }. red255green255blue255: Command not ...
0
votes
0answers
19 views

How to install steam games on a external hard drive, when doing so from steam it keeps saying the filesystem needs executable permissions [closed]

So the question is how to fix this??? The question is the title? how to fix this and I am new to linux and everything else with this very cool system of a chromebook.
0
votes
0answers
22 views

Internet Proxy Settings In Terminal

I have used terminal to install apps using the proxy of my office. Now when I am using mobile data, I cannot install or update any apps. I know it is using the old proxy in the terminal. how to change ...
1
vote
1answer
30 views

'column: line too long' when it doesn't seem to

I'm using grep, sed and column to make a little makefile documentation, but I get the following error: column: line too long. My attempt is the following: ## this is the documentation yes: @echo ...
0
votes
1answer
25 views

How do I resolve an error when attempting the “opam init” command? [duplicate]

Here is the command: opam init Here is the error I am getting: bash: /use/local/bin/opam: cannot execute binary file: Exec format error Are there any suggestions on what we should try?
0
votes
1answer
28 views

Makefile won't display colors

I'm currently trying to display all the Makefile targets to build a make help command and I got it working by doing: help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | sed -n &...
1
vote
0answers
22 views

Toggle webcam from command line? [duplicate]

I am trying to figure out if its possible to -- from within the command-line -- enable/disable the webcam, with a command that can be ran through a keybind? My laptop, a Thinkpad T450 doesn't have a ...
6
votes
2answers
975 views

Accidentally copied files to wrong directory

Years ago I copied all the files from /usr/local/bin into /bin. Now my /bin directory is littered with unneeded files. How do I remove them using the find command without having to install third party ...
0
votes
0answers
20 views

Ubuntu terminal with Windows 10 - Create a new HOME env var

I just installed my Ubuntu terminal in my Windows 10 and I have some questions: I want to make my HOME: /mnt/c/Users/pedro/ I searched and I foudn that if I want to change my env var I need to do this:...
0
votes
0answers
27 views

UBUNTU 16.04 TERMINAL NOT ABLE TO INSTALL/UPDATE ANYTHING [duplicate]

My terminal is not able to download/update/upgrade anything at all. When i type sudo apt-get update, i get this - 0% [Connecting to "IP Address"] and it just stays that way. Doesnt download ...
0
votes
0answers
27 views

Ubuntu Server 20.04 LTS: svn & gnome-keyring doesn't work headless

I'm woking on a AWS EC2 server running Ubuntu 20.04 LTS. Using svn and it's prompting password for every single svn command. It's annoying and tiring. Tried to use gnome-keyring, and it's a whole new ...
0
votes
1answer
36 views

Configuring date command

Linux noob here! My PC runs Lubuntu 18.04.4 LTS (32-bit). The other day, I learnt about the date command. It's typically not useful for me because I could just look a little above my screen at the ...
0
votes
0answers
19 views

Permissions while installing KDE

This sounds like every other permissions post, but I've tried every fork and spooning solution posted and....its all great if you want to learn the Linux syntax.....for accomplishing nothing. I have ...
1
vote
1answer
30 views

cannot easily switch to virtual consoles — why?

I can only login to a virtual console by using ctrl-alt-f4 as f1 brings me to a login screen (like windows_key-l to lock) and f3 has no result. This defies my expectations. While I haven't swapped out ...
0
votes
0answers
41 views

Error using sudo in sources.list [duplicate]

When I want to use sudo in Terminal I get this error: E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/mono-official-stable.list E: The list of sources could not be read. E:...

1
2 3 4 5
384