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

Questions tagged [command-line]

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

0
votes
1answer
17 views

How to open several Terminal Tabs and open files in Vim and change directory?

I'm asking this question because I tried a lot of solutions I found and they all didn't work: gnome-terminal --save-config=... results in an error that this option is no more possible gnome-terminal -...
-1
votes
0answers
22 views

Commands description datasets

I am building an assistant for my Linux, i will use machine learning to build it, the user will ask for any task related to files/directories manipulation that's correspond to commands like : rm , ls ,...
0
votes
0answers
19 views

Every time I need to use a command to mount an external hard disk in WSL

I am using Ubuntu 18.10 in WSL in Windows 10. Whenever I open a Linux terminal with an external hard disk I need to use a command to mount the hard drive in the terminal. If I do not use the sudo ...
0
votes
1answer
35 views

/tmp/ is somehow out of space and contains an irremovable file

When tab-autocompleting in terminal, I'm getting the error: -bash: cannot create temp file for here-document: No space left on device This would appear to mean that /tmp/ is full, but it's mounted ...
0
votes
0answers
18 views

Is it possible to have vino use the same password as the user log in password?

One can set a password for vino through GUI or command line. But is it possible to set the password of vino the same as the password for the user account using the command line? Like if the use ...
1
vote
1answer
30 views

How to kill all processes younger than

I know for killall command with -y argument and process name. But I need command to kill all processes younger than some time, without knowing their names. Something like: killall -y 20m *
0
votes
1answer
24 views

Can I use a list of file names that I saved to file to have each file on the list copied/moved/deleted?

How can I use cp rm or mv commands to manipulate files saved to a list, for example one made like so: ls Downloads/ | grep example > example.tmp The point is to be able to view/edit the file list ...
0
votes
1answer
18 views

how to change xyz@abc where i need to change xyz when terminal starts [duplicate]

Every time I open my terminal, I see xyz@abc where I type my sudo commands.However, my concern is this xyz and I want to change it to the name of my choice. I am unaware of the technical term for this ...
2
votes
1answer
58 views

Do programs in /bin or /usr/bin have to be invoked from a shell?

I started Chrome and Firefox from search bar and have found they were also opened from a terminal $ pstree -aps 5221 | head -10 systemd,1 splash `-gdm3,1027 `-gdm-session-wor,2418 `...
3
votes
2answers
72 views

conditional find output missing

Im trying to build a conditional statement to search for files of a certain size (in this case 1Gb. if [ "find /location/sub/int/ -size +1G" ] then > /location/sub/int/large_file_audit.txt fi ...
0
votes
0answers
12 views

fonconfig fails, apt-get wont install programs

from less /var/log/fontconfig.log: fc-cache: symbol lookup error: fc-cache: undefined symbol: FcDirCacheCreateUUID apt-get and dpkg both fail to install apps and upgrades.I have tried sudo dpkg -a --...
0
votes
0answers
9 views

18.04 server - hangs by reboot and shutdown

I have server on hp compaq nc 6320. It was working ok about 1 month until i get yesterday problem with reboot (it hangs i cant do nothing) Works only -f But that is not a good solution. I have tried ...
0
votes
3answers
61 views

Find all files in the current directory and its subdirectories with the extension .png

In a directory and its subfolders I need to see all the files with the png extension. For this, I used the command ls -R *.png I get an error saying that the directory *.png doesn't exist. I am ...
0
votes
0answers
25 views

How can I run detached command with sudo over ssh?

I want to run some script through ssh and detach it, so it run even after ssh session is closed. I need to do this with sudo. I can run some script but I am not able to detach it. I tried following ...
0
votes
0answers
23 views

VIDEOIO ERROR:V4L: Can't open camera by index 0

On a Intel NUC, I have loaded Ubuntu 16.04. I have disabled the desktop module by making changes to /etc/default/grub. The machine boots in text mode. I have a python program that uses Opencv (...
0
votes
0answers
10 views

byobu and guake clear history while a command is running

I'm using byobu and guake (and my shell is zsh), and I was wondering if there's a way to clear (or somehow reset the terminal) while a command is running. I have configured CTRL+K for my byobu to do ...
0
votes
0answers
10 views

Writing to Windows Directory Causes Windows to Shut Down with Fatal Error

I have ubuntu installed on two separate dell laptops. One is a work laptop and one personal. The personal laptop seems to work ok, however, the work laptop generates errors and shuts down windows ...
-5
votes
1answer
51 views

Why i got 0 answer when i tried to make 1 mistake all the scores [on hold]

#!/bin/zsh echo "enter quiz1 score:" read quiz1 echo "enter quiz2 score:" read quiz2 echo "enter seatwork score:" read seatwork echo "enter exam score:" read exam echo "enter lab1 score:" read lab1 ...
0
votes
0answers
21 views

Is there a way to continue typing in Terminal after I run a .command file? [on hold]

For example, let's say I want to set up my Python Virtual Environment. I would run python3 -m virtualenv env wait for it to run, then run source /Users/MyAccountName/env/bin/activate and then I would ...
0
votes
1answer
32 views

Ubuntu changing background color in text mode boot

I have changed the setting in my ubuntu desktop 16.04 to boot only on command line mode. Upon reboot, the interface that opened had black background, text in white, directories in blue and so on and ...
0
votes
1answer
32 views

Unzip command equivalent to “extract here”

I have a.zip file. I want to extract it so I have directory "a" consist of its content similar when I do right click on directory a then click "extract here". Is it possible to replicate that gui ...
-2
votes
0answers
35 views

Set custom keyboard shortcuts via CLI does not work on Cinnamon - why? [on hold]

My setting for set custom keyboard shortcuts via CLI does not work on Linux Mint Cinnamon 19. Here is what I've done to investigate: 1) I add custom via GUI, assign Ctrl+Alt+z, it shows as Ctrl+Alt+Z ...
0
votes
0answers
15 views

“sudo” command doesn't work anymore [duplicate]

I tried to run this command: sudo nano /etc/sudoers I got this error >>> /etc/sudoers.d/grader: syntax error near line 1 <<< sudo: parse error in en_US.UTF-8 near line 1 sudo: no ...
0
votes
0answers
26 views

Ubuntu Startup Message: Usage of /: 90%

i'm completly new & this is my first question here ever. i'm interested in learning more about linux based operation systems. i've installed ubuntu server 18.04.1 lts edition with an iso file ...
1
vote
3answers
81 views

Move files from subfolders

I've been beating my head against this for a while, but I'm really not a good script writer. Apologies... I'm running Ubuntu/gnome 18.10, and have a large set of pictures exported from my wifey's ...
3
votes
0answers
10 views

How do I set mouse-speed to ridiculous levels of slow for digital painting

Back when Ubuntu was using unity instead of gnome there was a command I used all the time to slow down the mouse to just plain silly levels. Mouse-speed -s 10 Setting it to 50 was about normal and ...
2
votes
1answer
199 views

Bigger operator (>) shows up when I enter arguments in terminal [duplicate]

I found that it happens because it splits entered arguments. But I am creating a program that encrypts string and it encrypted "test" as |m{|. But when I switch to decryption mode that thing happens. ...
0
votes
0answers
32 views

`cannot execute binary file` is there any way to show the required files? [on hold]

I am using Termux on Android. I compiled project into ubuntu/termux because that project cannot compile into termux itself so when I execute the project into ubuntu it works and when I move it to ...
1
vote
1answer
50 views

Display all the working terminals

I opened 4 terminals but when check them with who or w me@alpha:~$ w 17:28:19 up 3:09, 1 user, load average: 0.51, 0.35, 0.34 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT ...
0
votes
0answers
22 views

sabre/dav on ubantu please help

I try to build a Cal DAV Server on my server with Ubuntu. I have a real IP (configured in Ubuntu) but I don't no how to Install sabre/dav I can't following this instructions http://sabre.io/dav/...
-1
votes
0answers
44 views

I'm using ubuntu 19.04 but I want to install PPA and repositories from Ubuntu Bionic [on hold]

I'm using Ubuntu 19.04 but I want to install PPA and repositories from Ubuntu Bionic. How would I do this? I'd preferably want to do it from the terminal. (Btw this isn't a bug i just want to use ppa ...
1
vote
1answer
57 views

Is the terminal named “?” the grandmother of all processes?

When I invoke the gnome-control-center from the search bar The true command which the os runs can be found in ps: me@alpha:~$ ps -ef | grep gnome-control-center me 13952 7293 0 12:20 tty2 ...
0
votes
1answer
88 views

Is there a way to enable the ability to move the terminal cursor using the mouse in the CLI?

Very straightforward question. I have seen some answers on other websites about how to do it using terminal.app on Mac but I haven't seen any Ubuntu or Linux specific instructions. Before anyone ...
0
votes
0answers
20 views

linux: talk command not working

-- Setup -- user - anuraag Machine A - 10.1.192.217 user - anuraag Machine B - 10.107.2.210, 10.107.2.55, 10.107.2.217 talk is installed in both the machines, -- Problem -- when i type: talk ...
0
votes
0answers
25 views

Is it possible to copy results from ngrok by pure terminal operations?

I use ngrok now for reverse tunnel. Every time the ngrok is started up, the terminal will hide the current terminal and switch into another screen. Then, I read the thread value with my eyes and ...
2
votes
1answer
31 views

reveal file in default file manager with command line

I would like to open folder in default file manager an focus on specific file. I can do it with Notilus or Nemo (for example) notilus ~/folder/file.txt nemo ~/folder/file.txt but I want to use ...
2
votes
1answer
52 views

Can the “rename” command distinguish between directories and files? [duplicate]

I need to rename only directories and not files, and I want to do it with rename. Is there any way to do it? It says nothing in the manual about differentiating between directories and files. This ...
-1
votes
3answers
450 views

Download files from a list using wget

I have a file which contains downloading links like this: Google.com/image2 Google.com/image3 Google.com/image4 Google.com/image5 Google.com/image6 I want to download all of them using a script. If ...
2
votes
1answer
75 views

Search for text in files of same name in multiple folders of various depths

Situation: In Linux, I have a parent folder with almost 100 folders of various names. Each folder has a file ResourceParent.xml and hundreds of of different version numbers each of which has its own ...
0
votes
1answer
35 views
+50

Move specific column from csv file in front (select column by name)

Consider this data: #!/usr/bin/env bash cat > example_file.txt <<EOL group, value, price 1, 3.21, 3.21 1, 3.42, 4.11 1, 3.5, 1.22 2, 4.1, 9.2 2, 4.2, 2.11 EOL I want to move the 'value' ...
0
votes
1answer
61 views

How to delete a line from a file containing sh extension?

I'm using Ubuntu. I have an fileName.sh file containing 1000 lines and I have to delete the 399 number line is this command is sufficient for the deleting the line. Command:- sed -i '399d' test.sh ...
0
votes
0answers
35 views

How to reset ubuntu using terminal? [duplicate]

I have an ubuntu 16.04 , I want it to reset through command line. How to do it?
0
votes
0answers
22 views

Command line issues with Google Earth [duplicate]

Having command line issues trying to install this.Its ridiculous how many websites have the "correct" command liv\nes but they are junk. Im relatively new to linux and wow its a bit confusing !!!
1
vote
1answer
30 views

useradd -g option doesn't seem to be working

I tried: sudo useradd -s "/bin/false" -g [existingGroupName] [userNameToAdd] After the command I looked it up in /etc/group, but the user is not in the [existingGroupName]. Why is that so?
1
vote
1answer
34 views

How do I load keyboard backlight at boot?

I would like to turn on my keyboard backlight at boot so I don't have to manually with terminal at each boot. The code that works for me in terminal is "sudo xset led 3". Without quotes. I tried ...
0
votes
1answer
29 views

How to run ssh command from php? [closed]

I bought a VPS server, and I want to run terminal commands from the file /var/www/html/command.php. I want to run this command: cd /A_DIR and bash start.sh I tried this in command.php: <form ...
1
vote
0answers
16 views

No manual entry for xerces

How do I install xerces so that I can use it for schema validation? I've tried: libxerces-c-doc libxerces-c-samples libxerces-c3.2 libxerces2-java libxerces2-java-doc Probably it's installed, but ...
3
votes
2answers
92 views

Quick method to create a file and open it

I want to create a markdown file and open it simultaneously $ touch ~/Documents/Ubuntu/drafts.md; open ~/Document/Ubuntu/drafts.md The solution is cumbersome, is there a shortcut to handle such a ...
0
votes
6answers
542 views

How can I find out how many files ending in .c or .cpp inside a directory contain the string: string?

How can I find out how many files ending in .c or .cpp inside a directory contain the string: string? The string can occur anywhere in the entire file, including comments or as part of a larger ...
0
votes
1answer
28 views

katoolin issue in Ubuntu 18.04 - “/usr/bin/katoolin: No such file or directory”

I'm using Ubuntu 18.04 Bionic. I have installed katoolin but it does not run. I'm using below commands git clone https://github.com/LionSec/katoolin.git sudo cp katoolin/katoolin.py /usr/bin/katoolin ...