Questions tagged [command-line]

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

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

Zsh doesn't see some CLI

I've just installed Zsh / oh-my-zsh to apply some style and helpful functions to my terminal but it isn't working well. Here what I did: sudo apt install zsh and then I cloned oh-my-zsh with: git ...
0
votes
0answers
80 views

Move folder and file name to metadata, batch rename files

I'm very much a novice at programming on the command line so please forgive me asking for very basic help. I want to take a folder with very many subfolders, add the subfolders and file names to ...
0
votes
1answer
29 views

How to persist a tab that is opened via `gnome-terminal --tab` after closing process

I currently have a .sh script that opens 3 new tabs for me and runs a task inside that terminal window: gnome-terminal --working-directory=/home/hutber/site/refdata_service --tab -e "yarn start:dev" -...
-2
votes
0answers
107 views

Change Default file manager to Dolphin Lubuntu 18.04

Whatever the defualt file manager is constantly crashes under heavy load forcing me to either reboot. I've tried using exo tools but not only is dolphin not an option, but i get the following error ...
0
votes
1answer
348 views

What is the difference between cat and tee?

I was playing around with the Apache php.ini and got it so when I send emails with a PHP file that has the mail() function it will save the email on my computer, which is good for testing and for web ...
9
votes
4answers
717 views

How do I set an alias to a terminal line?

I want to easily set an alias git-go to this terminal line: git commit -m "init "; git push; git status So when I enter git-go this line should enter. How can I do that? The answers I seen only ...
1
vote
1answer
85 views

Jump to beginning of output of last command

This is a question I've had for around a decade now and I've never found an answer. To make it specific though, I'll ask in the context of my current environment. On Ubuntu 16.04, using the gnome ...
0
votes
1answer
43 views

Terminal cyrillic problem

When I ran the xclock command in the terminal, I always received the following warning: Warning: Missing charsets in String to FontSet conversion I edited my ~/.bashrc file added the following line ...
1
vote
2answers
23 views

Configure key shortcuts in context menu of ubuntu terminal

Currently right click menu in terminal has terribly defaults in a sense that rightclick p does not cause paste since both Preferences and Paste have that as shortcut(underlined letter in command name)....
0
votes
0answers
31 views

CMake error while installing Bullet Physics (PYTHON_LIBRARY set to NOTFOUND)

Hello everyone I'm trying to install Bullet Physics in my Ubuntu 18.04 LTS. I managed to install cmake successfully, but as soon as I try to run ./build_cmake_pybullet_double.sh it shows me the ...
5
votes
3answers
216 views

Passing arguments to a script

I am taking the Linux Essentials class and was doing well until I hit the scripting chapter. I simply do not understand these concepts. Wondering if someone can break the following down into ultra ...
0
votes
0answers
37 views

Multiple alias commands for NordVpn - disconnect from vpn && restart internet

I am using NordVPN and for it a dedicated terminal program. I have made two .desktop alias to connect to vpn and to disconect. Fist one is to connect to US server: [Desktop Entry] Name=NordVPN c us ...
1
vote
0answers
39 views

Redirect output of a startup script to terminal

I have a shell script init.sh that invokes a javascript script app.js like this: #!/bin/sh node app.js In the js script there are some console.log that i would like to see on the terminal. If I ...
0
votes
1answer
43 views

cd-command not operating even with capitalized letters used in bash

Hey everyone I need help with my cd command as it is not working. I typed: cd Downloads and it won't work, I'm trying to install something and it's giving me this as a response. -bash: cd: ...
23
votes
3answers
3k views

What does the hyphen “-” mean in “tar xzf -”?

When try to install dropbox from command line, I read the commands cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - what does - mean here? is it previous ...
0
votes
1answer
110 views

How to use this command line in Ubuntu

I ask my question in the form of an example ... I have a folder containing several subfolders that are as follows Main folder==)Got, Vikings, etc. In each one there is videos with their corresponding ...
0
votes
0answers
40 views

Download HTML/text only from from web page (excluding images and JavaScript)

Is there any command I can use to download only the HTML/text within the page and exclude all images and scripts within the page? I am thinking the downloaded page should display only text like what ...
0
votes
1answer
39 views

Is there a particular ID given to the terminals(Command Prompt) i opened in Linux Machine

I have opened 2 or more terminals opened in Linux system. I want to differentiate them... Is there is a way to differentiate them???
0
votes
0answers
24 views

Python IDLE linux problem [duplicate]

I've tried to run in the command line the following command: sudo apt-get upgrade , but I get this message: The following packages have unmet dependencies: idle : Depends: idle-python3.6 but it is ...
0
votes
1answer
16 views

Magic file does not produces wanted results

I got two files: $cat myMagic 20 string TEST ThisIsTestType $cat testFile TEST i am test file from inside Both files are in same directory.I run: $file testFile testFile: ...
0
votes
0answers
7 views

How to get deb-src list(s)? [duplicate]

I want to actually learn how to use the Linux command line and I want to learn to compile source code using this tutorial. I need to use deb-src lists (I don't quite understand what lists are) but my /...
0
votes
0answers
56 views

Lollypop not running on kubuntu 18.04

Since about a month ago, lollypop has stopped working. it appears on the taskbar for a few seconds then disappears. i opened it in bash and found this error. (lollypop:22827): Gtk-WARNING **: 01:25:...
0
votes
0answers
25 views

Can I reset Ubuntu to factory settings only over the command line? (SSH) [duplicate]

My question is about how to reset and start fresh on my whole VPS. I am trying to reset my whole OS (Ubuntu 18.04) to default factory settings and delete all my files (/home too). I am a new user to ...
1
vote
1answer
74 views

Is it possible to change the permissions for the symbolic link?

I am trying to change the permissions for the symbolic link. As how you can see in the image, the soft link has 777 permissions, but i would like to change that. I tried to change that by: chmod ...
0
votes
1answer
128 views

Nautilus and Terminal refuse to run on Ubuntu 19.04 (up-to-date as of 14 June 2019)

After clicking on them, it loads for a while then nothing happens. Currently using Tilda and Dolphin as I do not have access to my filesystem and the terminal. Somehow Nautilus runs when I run it ...
2
votes
0answers
38 views

how to customize ubuntu terminal shortcut of deleting a word backward and forward

this may seem as a duplicate question, but I couldn't find a solution in others, I am using Ubuntu 18.04 for now, and the terminal shortcut of deleting a word backward and forward is Alt+← and Alt+d, ...
0
votes
0answers
33 views

What is the best way to zip a folder, but ignore one subfolder? [duplicate]

I am a novice to ubuntu, I am using 18.04 through PuTTY. I would like to use the zip command to zip an entire folder and all of its subfolders in the correct structure, except one subsubfolder. (full ...
0
votes
1answer
49 views

Run two servers simultanually from bash script

I have two servers that I need to run with these commands: cd /home/hadoop/apache-hive-3.1.1-bin/ sudo hiveserver2 and sudo /opt/hue/build/env/bin/hue runserver So I putted both commands in a ...
1
vote
1answer
33 views

Transmission won't launch script after download on Ubuntu Server 18.04.2

I am on a completely fresh install. After installation I have only installed Transmission. (transmission-cli transmission-common transmission-daemon) Then I created a file under /var/lib/...
1
vote
1answer
170 views

How to display number of items in sub-directories from command line

In Ubuntu graphical user-interface, I can list the sub-directories in a directory where one column represents the number of items in these sub-directories. As shown here: Is there a way to get the ...
1
vote
2answers
194 views

automation of shell script to read all its input from a file instead of a keyboard

Suppose I have a shell script which take inputs from keyboard. I want to write all the inputs in a file and then use that file for providing inputs to the script instead of using the keyboard. Is it ...
1
vote
1answer
24 views

How do I sort a file based on both letters and numbers?

A file with this content: abc[0] abc[100] abc[101] . . abc[127] abc[19] abc[1] . . abc[9] xyz[0] xyz[100] xyz[101] . . xyz[127] xyz[19] xyz[1] . . xyz[9] I want to retain the ...
2
votes
2answers
517 views

Difference between grep -R (uppercase) and -r (lowercase)

If I go into /etc/apache2/ and type grep -rl 'LoadModule php' ./* then I'll only see ./mods-available/php7.0.load. If I change r to R then I'll see ./mods-available/php7.0.load ./mods-enabled/php7.0....
3
votes
1answer
78 views

how to shift a parameter and throw it entirely from args ls?

I have a script that gets N params. It first parses them (extracts a specific value X), then calls another program with said value: function main() { parse "$@" run "$@" } main "$@" I want ...
0
votes
1answer
63 views

Automatically execute script that requires password when I login with my second user

So I am changing all of the question so you can understand my purpose: I have this script.sh: $HADOOP_HOME/sbin/start-dfs.sh $HADOOP_HOME/sbin/start-yarn.sh cd /home/hadoop/apache-hive-3.1.1-bin/ ...
1
vote
1answer
82 views

Why environmental variable returns none in Linux?

In windows to set a new variable = value we can simply add it to the environmental variable. However, in linux, looks a bit tough. this is the procedure which I followed: Open Terminal and write: ...
1
vote
1answer
44 views

What is the best way to rename files and directories recurively on bash?

I am trying to make a script to rename a lot of files and directories in bulk. But I'm having trouble making it move through every file and subfile. My script right now is this #! /bin/bash ...
16
votes
3answers
4k views

Is it possible to install Firefox on Ubuntu with no desktop enviroment?

I want to install firefox on a Ubuntu server that currently has no graphical desktop environment. Is it possible to install some minimal display management tools that will allow me to launch graphical ...
2
votes
1answer
72 views

bash script using espeak only says first word

I am writing a bash script to convert lyrics to audio clips using espeak. The problem is that espeak only says the first word, rather than the line by line that I'm reading. I tried putting the lines ...
0
votes
0answers
30 views

Start GOG WINE application from command line

How to start GOG application from command line. GOG uses WINE to run application. Ubuntu 18.04 The application is on C:\Program Files (x86)\GOG Galaxy\Games\Arcanum\Arcanum.exe Which corresponds ...
1
vote
0answers
41 views

How to get a shell script to open up a python gui on startup

I have a project with a couple Raspberry Pi's. I have created a monitor of sorts that needs to run so long as the pi has power. I Name my program "prodmain.py" But I launch it through an update ...
1
vote
1answer
62 views

How to write a string containing private ssh key to a file?

I am using Azure DevOps for my pipeline. I have a copy of the public and private keys. The public key is already added to the server via the creation process using Terraform. For testing purposes, I ...
1
vote
1answer
56 views

How to convert LaTex to PDF using terminal?

I am trying to convert latex file (.tex) file into pdf format. I tried using pdflatex file_name.tex command from the terminal but terminal asks to enter file name again and again. The commands in the ...
0
votes
0answers
24 views

Unable to lock Zip file Ubuntu 18

I am trying to make a locked ZIP folder in Ubuntu 18.04. I followed this post, but it locked the files inside it and not the ZIP folder as a whole. I can open the ZIP folder without providing a ...
1
vote
1answer
60 views

How to remove “.” from a filename in Perl?

I do /(\.[^.]+)$/ in Perl to read the extension of a file, for example Text.txt. How can I remove the . so that the output gonna be Texttxt?
0
votes
1answer
57 views

How to get write permission for folder and subfolders

In my Visual Studio code on ubuntu 19.04 I have created a folder with some content with a CLI tool called expo. However, my sudo user jonas does not seem to have rights to write to this folder since I ...
0
votes
1answer
39 views

Services stopped working - exec: tclsh: not found

I am running Security Onion on Ubuntu 16.04. A few of the primary services (SGUIL, PCAP, Snort) stopped working yesterday, 6/9/2019. In the logs of each of these services I find the following entry: ...
1
vote
0answers
137 views

Firefox script problem

It is possible to start Firefox in Xubuntu 18.04 with the script below. I've named the script f and if the argument a (f a) is used in the terminal, Firefox will open a new window on this address ...
0
votes
1answer
36 views

In command line I am using testdisk, but the file is not getting located?

I am trying to use test disk on my Ubuntu software version 16.04 using command line (sudo apt-get install test disk) and after typing the password it is giving Unable to locate package test disk. What ...
0
votes
0answers
51 views

FTP client unable to LIST server contents due to local firewall

TL;DR - Local Firewall On: FTP connects successfully, LIST / LS / DIR return Error 425 Could not open data connection to port [large port number]: Connection timed out. Local Firewall Off: FTP ...