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
2answers
12 views

How can I compile, run and decompile #C code in Ubuntu terminal?

I have a C# which I need to compile, execute and decompile using the terminal. How can I do so?
0
votes
0answers
7 views

Unable to run Autokey Ubuntu 18.04

I am relatively new to Linux/Ubuntu (so please take it easy on me) and I am trying to install Autokey to use the text expansion functionality. I have tried installing it from the instructions on the ...
0
votes
1answer
19 views

New NextCloud installation requires change but I'm not sure where to run this line of code

I just installed NextCloud 15 on a new installation of Ubuntu 16.04.5 LTS. The welcome page shows this: Some columns in the database are missing a conversion to big int. Due to the fact that ...
1
vote
2answers
40 views

How to pass strings stored in variables to find command

I need to pass strings stored in a variable to a find command string. What I do: s="\( ! -path \"/path/to/1/Recycle Bin\" \) -or" s="${s} \( ! -path \"/path/to/2/Recycle Bin\" \)" exec=$(find "/path/...
0
votes
0answers
21 views

What is /dev/null? [duplicate]

I just changed my Windows OS to Ubuntu and want to understand how to use it effectively. I saw commands where a user sends files to /dev/null. What goes after moving some file to /dev/null? What are ...
0
votes
0answers
12 views

Is it possible for me to deploy Ubuntu studio tools in Ubuntu Canonical 18.04LTS?

I have a powerful machine that is a laptop with Nvidia Gforce graphics, 1TB HDD, 16gigabytes RAM and an i5 processor. I have already installed Ubuntu 18.04 LTS, and since I don't have another machine ...
0
votes
0answers
12 views

Remote SSH command with export will reset environment variable? [duplicate]

I'm using remote ssh command with "export" to add environment variable, like this: $ ssh jenkins@test "export PATH=${PATH}:/opt/xxx; env" And the PATH listed in env is PATH=/home/administrator/bin:/...
0
votes
0answers
8 views

Malformed line #2 in source list (/etc/apt/sources.list.d/lutris.list) [duplicate]

cneifert@cneifert-K52F:~$ sudo apt install dhelp [sudo] password for cneifert: E: Malformed line 2 in source list /etc/apt/sources.list.d/lutris.list (type) E: The list of sources could not be read. ...
2
votes
1answer
59 views

How do I remove another computer which has remote access to my laptop?

I visited a friend recently and he uploaded Linux on my laptop. He uploaded many programs from his laptop unto mine using a terminal. To do this he had to add a very long code from his laptop onto my ...
3
votes
0answers
33 views

Get ok message when installing deb with apt in terminal (from context menu or click)

I find apt in terminal as the best way to install a program from a deb package. As I prefer it to other gui tools, I want that in the context menu for deb files or as a launcher among applications in ...
5
votes
2answers
492 views

Given the result of grep -n, how can I open vim in that specific line? (using only keyboard)

When I run grep "keyword" -n and get the following list of results: a/b/c:10: keyword a/b/c:70: keyword a/b/d:50: keyword How can I open one of the files (say the 2nd in list) in the line ...
0
votes
1answer
40 views

Terminal can't be launched in GUI

When I click on terminal it shows in the menu but after few seconds, it disappears. I have no idea how to make it work. By the way, since the GUI installed this terminal never working. Is it related ...
0
votes
0answers
21 views

How to do one to one mapping in shell script? [duplicate]

Dear Ubuntu Help desk, I am having two arrays namely X and Y of size 1:10, I need to read each values from two arrays [X(1),Y(1)] and [X(2),Y(2)] likewise. Kindly help me out how to write a shell ...
1
vote
0answers
26 views

How to remove chapters from mkv metadata

How do you remove chapters from mkv metadata on command line? Can ffpmeg be used for this?
0
votes
0answers
10 views

How to reconnect to a previously disconnected PTY? [duplicate]

Sometime, while running long-time or interactive commands (apt-get, wget, make…) through SSH, my connection is dropped for some reason (the router lost the connection, or the WiFi quickly disconnects/...
0
votes
0answers
33 views

C compiler cannot create executables / icc

I'm trying to build open3dqsar using intel-mkl and when running ./configure CC=icc --with-intel-mkl && make && make install I get checking for a BSD-compatible install... /usr/bin/...
0
votes
0answers
25 views

How to use telnet client in Ubuntu 18.04 terminal?

I read book about programming and networks.. Found this example: As written in this book, after last <Enter> we must receive page raw HTML code.. I upload small script to my host to minimize ...
0
votes
0answers
15 views

CHOWN command applied on /usr/lib by mistake [duplicate]

By mistake, I executed below commands sudo chown -R $USER /usr/lib So now it seems /usr/lib ownership is changed and sudo command is not working. Getting following error on terminal sudo: error ...
1
vote
0answers
41 views

Ctrl+Alt+F1 is not working anymore after installing VMware View Agent

I have successfully installed GUI/Python/VMware View Agent on one Ubuntu VM. But the second day after I powered it on, Ctrl+Alt+F1 was not working any more. And I can't use terminal from GUI as well. ...
0
votes
0answers
19 views

How to put special characters with lynx script?

I'm writing a script to send any code to a page by making the lynx to type it completely but I don't know how to make it print some special characters: '*' , key * doesn't work '\t', key <tab> ...
1
vote
0answers
41 views

How should I call the result after I run a code in ubuntu terminal?

I am trying to run a SageMath code on AWS through the Ubuntu terminal. I have successfully run the code. Now I want to see the computation results without abusing "print". The results are saved in ...
0
votes
0answers
13 views

How to Change Base Folder Date

I have a backup drive and keep seven rolling backups for the past seven days using Days of the week within a Bash script. day-1/home/username/.config day-2/home/username/.config When I look at that ...
-1
votes
0answers
20 views

Gulpfile error in Visual Studio 2017 [on hold]

Output: could not find file Temp.NETFramework, Version=v4.6.1.AssemblyAttributes.cs How do I fix this issue please?
0
votes
0answers
20 views

Running java GUI program without really having a display

Recently I approached a problem when I need to run a .jar program on ubuntu server. Server doesn't have a display. When I execute the program I get "No X11 DISPLAY variable was set, but this program ...
0
votes
0answers
33 views

1) Launching into terminal but need to launch into GUI

I turned on my PC and Ubuntu 16.04 loaded into the GRUB menu for some reason. I selected the normal Ubuntu launch option at the top and was loaded into the terminal. Here, when I type in my password ...
0
votes
2answers
85 views

How to create a folder named .ssh in the user’s home directory in ubuntu?

I want to create a folder in my home directory which name is .ssh. I can't create it with this name because it's showing: cannot create directory ‘.ssh’: File exists How should I proceed?
0
votes
0answers
36 views

changing atime and mtime will change ctime as atime and mtime

Whenever I change the access time and modification time to the current system time like this: touch -a filename or touch -m filename it also changes the change time... Saw from 'stat' command ...
9
votes
1answer
1k views

accidentally deleted /var/lib/apt/

I accidentally deleted content of /var/lib/apt with command below: sudo rm -rf /var/lib/apt/* what should I do now? can I restore it? is it necessary?
0
votes
0answers
42 views

How can I verify my root password, when I know it but I need to check it? [duplicate]

I know my password on my server, but is there a command to check the password? I can't use ssh because my ssh key is already copied, so is not useful. I need something to ask me for the root ...
0
votes
1answer
53 views

Deleted everything on my system and now nothing works [on hold]

By mistake I deleted everything from Ubuntu and now even I can't open any folders. The apt-get command is also not working...
0
votes
2answers
32 views

I used the find command without specifying a directory

I used this command without specifying a directory: sudo find -type d -exec chmod 755 {} \ What could have happened? I was in the /var/www/html folder. Did it change any permissions outside the /var/...
0
votes
1answer
74 views

Executable program will not run

I was trying to run Monero-cli one my Ubuntu laptop and it wont let me run the executable file after the start.sh file. It said Permission denied on both the executable and start.sh and I could not ...
2
votes
2answers
413 views

How to make new file with date in it?

I can create a new file and put the date in it. touch example.txt date >> example.txt But I must create the file with the date in it the moment I created the new file. How do I do that with ...
0
votes
0answers
28 views

Running a SHC encrypted file on other system

long time ago (2-3 years ago) I had a dedicated that had a SHC encrypted shell script (script.sh.x file) And I do have that file til now but not that dedicated, it died long time ago, now I used SHC ...
4
votes
2answers
92 views

cal -w does not work

With the standard terminal when I type cal -w I get a usage description indicating that 'cal' did not recognize the '-w' but the '-w' is described in 'info cal' documentation. Is there a setting ...
0
votes
1answer
38 views

Why do these errors appear while running fake run-fake-gps.sh?

I am working on a dronekit follow_me project. So in one terminal, I am running python follow_me.py and in another terminal running run-fake-gps.sh. Then an error appears as below: Sending fake GPS ...
0
votes
0answers
26 views

Wrong LINES variable value in terminal - how to fix?

I use Xubuntu 18.04.1 and xterm. The issue is observed when I connect to telnetd from busybox-static package. COLUMNS variable is set correctly, but LINES one is set to 65280 under certain ...
-1
votes
1answer
41 views

anything that uses apt on does not work [closed]

im using OSGEO LIVE 10 apt does not work ...im trying to install new software and a wifi driver but can't go anywere help pliz sudo apt update E: Could not get lock /var/lib/apt/lists/lock - open (...
2
votes
2answers
70 views

Linux/Unix Command Inheritance [duplicate]

Are all of the basic Unix commands available on all of the distributions of Linux including Ubuntu or are only certain commands inherited by Linux? Also, does GNU have it's own commands or does it ...
0
votes
1answer
105 views

Keyboard shortcuts (including the control key) returns caret (^) plus the capitalized input character

I'm sshing from my Mac to an Ubuntu machine, but for some reason the key bindings do not work properly. For example when I try to run the tmux shortcut CTRL+b it returns ^B. The closest questions I ...
-1
votes
0answers
15 views

Script to delete users not on a text file [duplicate]

I have a list of users I want to keep on my computer, but I want to delete all the other users with a script. Can anyone help? I'm new to scripting. Make it so only users greater than 10000 get ...
0
votes
0answers
12 views

Ubuntu run exe and get pid [duplicate]

Does anyone know a way of running an exe and then getting the pid of it on a Ubuntu server? It would be helpful if it did not limit the amount of programs which can be started at one time. Thanks
-1
votes
0answers
23 views

I cant get cron to work [duplicate]

sudo crontab -e >> { *1 * * * * date +'%d/%m/%Y %H:%M' >> ultimoscript.txt } My goal is to make a script scriptexample that crontab program me. I want you to write in ultimoscript.txt the ...
1
vote
0answers
25 views

I have noticed that sometimes my HD is spinning and spinning running “find command” on Xubuntu 16.04.5

When I start my laptop the HD is spinning executing find command without reason, I tried to clean saved sessions, looking in startup programs if there is any command using find command, but I couldn't ...
0
votes
0answers
8 views

Facing issue while fire command on azure cli [closed]

in one of my account resource group unable to find after command fire and in another account its working absolutely fine,i am unable to troubleshoot,kindly help to find solution
-1
votes
0answers
28 views

How to check if screen is locked from bash? [closed]

How to check whether the computer screen is locked or active?. I would like to do that from shell script.
0
votes
1answer
25 views

how to migrate the hidden files using rsync

I am using the command below, in my target sever: rsync --ab myuser@sourcehost:/source_dir/* target_dir But this is not able to sync the hidden files present source_dir anything I need to use any --...
2
votes
0answers
54 views

Update-motd.d does not update on ssh login

This following message shows up whenever I login via ssh. System load: 0.23 Processes: 163 Usage of /: 24.1% of 58.39GB Users logged in: 0 Memory usage: 27% ...
18
votes
4answers
3k views

How to know which command is being executed without stopping it?

In my example, I am running a command that takes very long to be executed (several hours). I don't really remember if I entered make or make -j4. Of course I could stop it and press up key or check ...
0
votes
0answers
30 views

Do LaTex CLI tools exist for generating templates [on hold]

I was wondering if there were any command line tools which generate latex templates. Something like: latex new article --name yourfileName The way I was doing it now is just copying some files over....