Questions tagged [command-line]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
49 views

Create a folder with the date as part of the name in tcsh

I often need to create folders that start with the current date. For example 190627_ABCD. I've tried to create an alias command that gets the date to be printed: a newf 'mkdir `date '+%y%m%d'_`+=' ...
0
votes
0answers
58 views

Error create-react-app

root-pc@PC:~$ create-react-app hello-world Then I get error warning You are using Node "13.0.0-nightly2019062763a0f4cdd3" which is not supported and may encounter bugs or unexpected ...
1
vote
3answers
73 views

Is it safe to remove gnome-shell?

I've installed Ubuntu 19.04 Desktop. I don't actually need/want the desktop environment, but I don't have a keyboard so am only able to install it with a mouse, and onscreen keyboard, which I ...
1
vote
1answer
158 views

How can I install urxvt terminal on Ubuntu 18.04?

How I can install the urxvt terminal?
0
votes
0answers
37 views

Ubuntu Server 18.04 possibility to have an image as a background [duplicate]

Is it possible to have an image as a background in the console on an Ubuntu 18.04 Server?
0
votes
1answer
25 views

apt upgrade stuck on kbd and console-setup

This is what happens when I try to upgrade a remote machine via an ssh terminal session that does not normally run X: $ sudo apt upgrade Reading package lists... Building dependency tree... Reading ...
3
votes
1answer
61 views

How to allow wget to recursively download a whole directory instead of the “index.html” file

I want to use wget to download a whole image directory(something like mystie.com/images/) from one server to another. But when I go wget --no-parent --recursive http://mysite.com/images/ I am always ...
2
votes
1answer
60 views

What did “sysctl vm” do?

My system: Linux/Lubuntu 18.04 LTS, 64 bit What I wanted to do was checking the value of my swappiness with the terminal-command sysctl vm.swappiness Out of sheer clumsiness I only typed sysctl ...
-3
votes
0answers
38 views

alias behaves different from typing out the command

i have these alias defined alias ajclean 'find $RF_TOP/ -type f -name "*~"; \ find $RF_TOP/ -type f -name "*~" | sed "s/\/dpc/rm \/dpc/g" | bash; \ echo;' alias ajgshow '...
0
votes
1answer
37 views

apt-get reports “dpkg: cycle found while processing triggers”

In my other question about how to Suppress command line questions during package installation I found an answer. Unfortunately I'm already stuck with the next problem. The apt-get command (to be ...
0
votes
1answer
49 views

How to install Rails?

I can't find this specific error in the web but when typing sudo gem install rails -v 5.2.2 I get the following error: nysa@nysa-System-Product-Name:~$ sudo gem install rails -v 5.2.2 Fetching ...
0
votes
0answers
28 views

Failed to install Oracle JDeveloper 12c

I want to install Oracle JDeveloper on my Ubuntu 18.04, and I have downloaded the installer file from here, there I download the file1 and file2 to Linux. Here is the file name for file1, and the ...
1
vote
2answers
80 views

How to delete all files based on year in unix?

I need to delete all files in a directory that were created in 2018. What command can I use to do that?
12
votes
8answers
2k views

Copy group of files (Filename*) to backup (Filename*.bak)

Background In Linux you can: List a group of files with ls Filename* Remove a group of files with rm Filename* Move a group of files with mv Filename* /New/Directory But you cannot copy a group of ...
0
votes
0answers
26 views

save the output into table format or any format

I want to save the output of the below command into table format or any format that I can access through a python code and do some collocation that I can access through a python code and do some ...
1
vote
1answer
31 views

How to execute one command over the files where the paths of all the files are listed in the file?

I have a text file (file.txt) in which I the paths of all the files on which the commands have to be executed. How to iterate over a for loop and execute the commands on the file in each path of the ...
0
votes
3answers
104 views

Cannot run Update-Manager 1:18.04.11.10 + Segmentation fault

I updated some packages + to kernel 4.15.0-52-generic in Ubuntu-Mate. After that I can't open the "Update-Manager + software-properties-gtk" anymore. Terminal Output: Segmentation fault Kern.log: ...
0
votes
2answers
39 views

Comparing two text files and save the missing

I have two text files: first text file: Hello Hi Hola Bonjour Second text file: Hi Bonjour How can I output the differences between them regardless the line number i.e. I want to save the ...
0
votes
0answers
26 views

I accidentally took control of /usr/lib/ [duplicate]

When messing around with an application I ran the command sudo chown -R usrname /usr/lib/ Now I can’t run any Sudo command due to the /usr/lib/Sudo/sudoers.so file Also some programs don’t run ...
1
vote
1answer
33 views

Changing file names in sub-folders following a number extracted from the sub-folders

I have a folder with several sub-folders, inside which I have a file with same name in all sub-folders. For example: abc/def_0/ghi.jpg abc/def_5/ghi.jpg abc/def_10/ghi.jpg ... abc/pqr_0/ghi.jpg abc/...
-1
votes
1answer
34 views

Auto execute the command to the terminal after double click the file

I want to auto input the command to the terminal when double clicking the script. something like: cd/xxx/xxx dpkg -i xxxxxxxxx chmod +x xxxxx ll xxxx cd ~ /opt/xxxxxxxxxx I want to execute ...
-1
votes
0answers
51 views

sed: -e expression #1, char 3: extra characters after command

I'm totally new (starting from 0) to the world of Linux, programming and 'ask ubuntu'.I have just started experimenting as I'm working on a uni project that requires me to. I am trying to run an ...
0
votes
0answers
35 views

Script allowed to launch without sudo password works in console, but not in .desktop file, and pkexec issues

I have set in /etc/sudoers.d/qgis_2_18 a script to be launched without sudo password: marco ALL=NOPASSWD: /home/marco/Dropbox/bin/qgis_2_18 Content of /home/marco/Dropbox/bin/qgis_2_18: xhost local:...
1
vote
1answer
30 views

Need to set hibernating setting by command

I need to do slove this problem by command with d-conf or without it as I need to it every time when I prepare a new system. How to do that?
-1
votes
2answers
219 views

What does “rm -rf” do with “/*” in it? [duplicate]

Warning: To avoid catastrophic data loss, readers should NOT run this, nor any variations on it! I would like to understand what does this command do: sudo rm -rf/*
0
votes
0answers
10 views

How to change the description of a catkin package?

What command should I use to change the description (line 5) cat package.xml<?xml version="1.0"?> <package format="2"> <name>beginner_tutorials</name> <version>0.0.0&...
0
votes
0answers
35 views

Reduce ram usage

How would I go about writing a script that reduces/limits ram usage on Ubuntu 19.04? I ask because after upgrading from 18.04 + 18.10 I have noticed a noticeable increase in ram usage. I have a mid-...
0
votes
0answers
35 views

Regex for /etc/passwd Content

I have a collection files from many systems in my enterprise in a store directory (/store/) and I wanted to find all of the passwd files and cat them out to a single file. Intuitively, the command I ...
0
votes
0answers
15 views

Wp media image-size CLI Command

The wp media image-size CLI Command returned: These fields will be displayed by default for each image size: * name * width * height * crop * ratio I want to ask if is possible (or how to) add the ...
2
votes
1answer
31 views

How can I change sound theme from terminal?

I am creating an automated script that sets up my OS by itself. I need it to change sound too, what is the command for that? Currently, I know that: gsettings set org.gnome.shell.extensions.user-...
3
votes
1answer
73 views

How to change Ubuntu's terminal name

I've been reading about this topis here and tried the solution given to change the terminal name (refer to the picture on item number 1) But none of them can change the terminal's name (item number 1)...
9
votes
5answers
2k views

Why is a blank required between “[[” and “-e xxx” in ksh?

For instance, the following command does not work: if [[-e xyz]]; then echo File exists;fi ksh gives the following error [[-e: command not found Is that because "[[-" is ambiguous?
1
vote
1answer
32 views

Use common VirtualBox setup between users

I want to solve the following use case: my wife and me (= two separate linux users) want to use THE SAME VirtualBox Windows10 virtual machine. So my idea is to have all VirtualBox settings under the ...
1
vote
1answer
32 views

How to count how many times a word appears in the files in each folder?

I have a directory with a lot of subdirectories with text files in them. I need to know how many times "foo" appears in every single subdirectory (but only at the first level), not the total sum of ...
0
votes
1answer
31 views

How to run a command in loop on pairs of files that share only the initial part of the filename

I have hundreds of files and I need to run a command on pairs of such files that only share the initial part of the filename. e.g.: samtools merge Sample_1_L5.bam Sample_1_L6.bam samtools merge ...
0
votes
1answer
53 views

install activinspire on ubuntu 18.04

How do I install activinspire on ubuntu 18.04? There is one article on the web but it is in Italian. Can anyone please help
2
votes
1answer
66 views

How to execute a bash script before shutdown using systemd?

I have a executable bash script (.bash_history_cleaner) which cleans my bash history #!/bin/bash cat /dev/null > ~/.bash_history && history -c && exit I want to execute this ...
0
votes
0answers
10 views

How to find empty Subdirectries and delete that directories by using unix command [duplicate]

Case 1) I'm at home path home/rahul/subdir1--(contain data) home/rahul/subdir2--(empty) home/rahul/subdir3--(empty) home/rahul/subdir4--(contain data) Here I want find and delete empty ...
0
votes
2answers
37 views

File / Folder navigation problem with the 'cd' command [duplicate]

I used to use this command cd /Foldername to navigate the folder. But I am facing a problem with this now I need to use this command cd ~/foldername for navigating. Please have a look on the screen ...
0
votes
0answers
32 views

Browser is not opening up from terminal

We're using the latest version of Ubuntu, and a tool called "ScaleFT" which is sued to manage our SSH access to the internal servers. My problem is, when I try to execute a command with this tool ...
1
vote
1answer
32 views

Surpress command line questions during package installation

I have an Ubuntu 16.04 based appliance in which packages from the public repository are installed. But not directly using the public repository. Instead an update server is used which downloads the ...
0
votes
0answers
32 views

How to reset the repositories present in “Other Software” tab of “Software and Updates” in Ubuntu 18.04?

I was googling out steps to update MySQL from 5 to 8 version. Without further thinking I inserted these commands in terminal: sudo apt-key adv --keyserver keyserver.ubuntu.com The keyserver of ...
2
votes
1answer
34 views

need help updating laptop

So I tried to install encryption third party software and I messed up. I keep getting this message when trying you sudo apt-get update N: Ignoring file 'medibuntu.list.save.4' in directory '/etc/apt/...
0
votes
1answer
36 views

My command will not run, even though it is recognised as an executable

Here is the command I have typed in order. I expect it to run my "simple hello work" program. vagrant@vagrant-ubuntu-trusty-64:~$ ls filename.zip tester vagrant@vagrant-ubuntu-trusty-64:~$ ...
0
votes
0answers
32 views

Undefined symbol: SHA1_Init

While creating a custom IPSW via Odysseus, I keep obtaining errors... ars2506@arsen-PC:~/Стільниця/odysseus-0.999/odysseus-0.999.0/linux$ ./ipsw iPhone5,2_6.1.4_10B350_Restore.ipsw custom.ipsw -...
0
votes
0answers
17 views

How to get all PHP daemon process ids with formatted output in linux?

Is it possible to get comma separated process id set in Linux only for PHP daemon processes and format as below: 4851,3546,23456,4521
0
votes
1answer
35 views

Trouble running command on Terminator launch

According to the Terminator man page, I can use the --command flag when running the terminator command to run a command when the terminal window opens. However, I can't seem to get it working. I've ...
0
votes
0answers
18 views

My Ubuntu 18.10 does not display the GUI login, but works only in command line mode

I have logged in into my Ubuntu using terminal login itself. And I tried out the shortcuts Ctrl+Alt+F3 and Ctrl+Alt+F7 which I found that it was to switch from GUI to command line mode.
0
votes
0answers
51 views

Can't execute shell script from ssh command

I have a script that will transfer a shell script from one server to another. The transferred script will change password for my user. I was able to transfer the script but it cannot execute it using ...
1
vote
0answers
48 views

how to prevent grep from printing the filename every time there is a match

As I go through multiples files, I want grep to print the filename of the first match. For example: grep -nHC 2 "show reload" wgltva-811sono1-dc* Right now, I am searching for a string in multiple ...