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

learn more… | top users | synonyms (6)

0
votes
0answers
6 views

How can I measure the performance of different shells?

Is there a good command pipeline to test the shell rather than the program the shell starts if I want to benchmark differences between for example bash and ksh and also test for compatibility between ...
2
votes
0answers
24 views

Update impossible. Blocks at renewing MySQL pack. Cant remove MySQL

I try to update MySQL but the update gets stuck at: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. I do the sudo dpkg thing and it stops at: ...
0
votes
0answers
16 views

How to create etc/apt/sources.list [duplicate]

The sources.list repository file simply doesn't exist because of an installation issue, causing all sorts of problems because all the commands like .deb and stuff return command not found. What is the ...
0
votes
0answers
8 views

Clamscan is killed

After an install of clamav-daemon, clamscan is apparently giving itself a SIGKILL (exit status 137) after just showing a warning that the virus data base is older than 7 days. There is no scan ...
0
votes
1answer
26 views

How to release an IP address and renew from the commandline?

I am using modern versions of Ubuntu that use network-manager, and I would like release and renew my network settings through the commandline. In the olden days when Ubuntu used the interfaces file, ...
0
votes
0answers
15 views

Share folder with another user [duplicate]

How can create and share folder with another user or PC by command? I use Ubuntu 16.04 Thanks :)
0
votes
3answers
37 views

How can I run a shell script from bashrc file?

What I basically want to achieve is to type in a custom command in the terminal and a specific shell script should run each time. I could achieve the above requirement with folders,by modifying the ...
7
votes
2answers
388 views

How to change colours in bash prompt

I have followed the instructions here and in the howto link that is provided there. However nowhere does it appear to say how I can change the colours of the different parts, because currently I set ...
6
votes
2answers
2k views

Check PulseAudio sink volume

Is there any command to check the PulseAudio sinks volume. Means I want display PulseAudio volume of particular sinks in % i.e. 50% I already set the volume using pactl set-sinks-volume 1 50% ...
-4
votes
1answer
20 views

How to assign a command to a tool? [on hold]

I'm using Kali linux and was trying to update a tool called pixiewps, which I did but now when I run pixiewps from the terminal it no longer goes to the tool. My question is can I reassign this bond ...
8
votes
2answers
316 views

How to tell which parameter is being supplied to a command with a redirectioin operator?

This works: $ echo "notify-send HELLO" | at now This doesn't: $ at now < echo "notify-send HELLO" It says 'file or directory not found". I understand there's a -f option to this ...
0
votes
0answers
8 views

disable cellular data by using commands,

Anybody, please help us to find out the ssh commands so we can disable cellular data for our m2m data, we do not want to do it from web ui so looking for command line?
1
vote
0answers
5 views

Using binfmt-misc in conjunction with xattrs

I currently use a piece of sandboxing software on my 14.04 machine that isolates Linux binaries from one another (Using a special type of namespace isolation different than AppArmor) Currently, the ...
0
votes
1answer
322 views

How can I use abcde to rip to mp3 and embed album art under Trusty?

The version of abcde (the audio cd commandline ripper) under Trusty does not do what I would like: Rip audio cds to mp3 Download and then embed the appropriate album art Can someone show me a ...
0
votes
0answers
52 views

Bash script not working with shortcuts

My bash script is working flawless when i call from terminal. However, when i create shortcut to it acts weird. #!/bin/bash url="" function uploadImage { url="$(curl -s -F "file=@$1" ...
1
vote
4answers
113 views

How to move directories that were listed in a .txt file?

I'm using a program to tag music that generates a .txt list of the skipped (untagged) folders that processes. I just want to be able to take this list (that have the complete path for each folder) ...
1
vote
0answers
38 views

Non-printing characters showing up in terminal prompt

Without color my prompt looks like this: [0] [dimo414@dimo414:/tmp] $ echo $PS1 | sed 's/\x1b/\\e/g' \n[0] [dimo414@dimo414:/tmp]\n\$ I add some color and \[...\] delimit it: [0] ...
2
votes
4answers
548 views

Is there a log of all activity I could open in terminal?

I'd like to have a terminal opened and study the processes and everything happening in a regular use of Ubuntu. What commands and files can I use to see the logs in real-time? Thanks.
3
votes
1answer
21 views

tty1 on monitor A; tty2 on monitor B

This is an odd question, and I don't think I would even have a use for it, but: Can I bring up tty1 on one monitor, and tty2 on the other at the same time?
0
votes
0answers
16 views

Running Ubuntu Touch applications in command line for gdb debugging?

I have already seen some answers related to this, but they didn't bring me to a definitive answer, so I'm going to try again. Basically, my question is: how can I run Ubuntu Touch applications from ...
1
vote
2answers
28 views

Unable to open Eclipse from Dash Home

I can't open Eclipse from Dash Home although it shows its icon. Eclipse was properly installed using apt-get. When I launch Eclipse from Dash Home it doesn't open. It opens only through Terminal. How ...
0
votes
1answer
18 views

Run php File in Browser from Command Line

I have apache2 working and can run php files by navigating to localhost using chrome browser. However I'd like to be able to launch the files within the browser from the command line. google-chrome ...
2
votes
1answer
35 views

Shell script password with special chars

I've build a shell mysql backup script which works very well. It only has problems with passwords with special chars like this: xgT{uic[Is?uJ+. Here is the important part of the script: #!/bin/sh ...
0
votes
1answer
18 views

Ubuntu can not access other ubuntu hdd which is external

I had 14.04 ubuntu and my laptop crashed. I need to save data from there. So i created a ubuntu 14.04 live usb and put in into my desktop and boot from it. I can see my hdd now (i connected via usb ...
0
votes
0answers
16 views

How to delete several files from a directory using a .txt file where the filenames to delete are listed up? [duplicate]

I have a directory containing several files (approximately 1000 files). I want to remove several of these files using the commandline. The file names from the files I want to delete are listed under ...
-3
votes
1answer
29 views

1.gcc compiler…make it work for c, do I miss something?… as error, can't find file 2. bin directory under home directory etc

OK, complete beginner question, I know: I installed Ubuntu to learn C coding So, I am linux and coding amateur, second day for both, to be precise. I did code with the editor the first source ...
1
vote
1answer
187 views

Unlocking applications from launcher from the command line

In order to automatically configure fresh installations, I need a way to unlock the default applications from the launcher bar. Don't know where this information is stored, may be editing/substituting ...
0
votes
4answers
396 views

An Ubuntu command bricked my sytem?

I freshly installed Ubuntu on my computer a few days ago to run an exclusive program. I finished with it, and I was about to format the drive to reinstall Windows. However, my little brother wanted to ...
8
votes
2answers
7k views

Only view the CPU temperature from command `sensors`

Ok, so when I run the command: sensors I get a truck load of info: atk0110-acpi-0 Adapter: ACPI interface Vcore Voltage: +1.16 V (min = +0.85 V, max = +1.60 V) +3.3 Voltage: +3.39 V ...
25
votes
2answers
8k views

How does this [t]ricky bracket expression in grep work?

I saw this one-liner recently: $ ps -ef | grep [f]irefox thorsen 16730 1 1 Jun19 ? 00:27:27 /usr/lib/firefox/firefox ... So it seems to return the list of processes with "firefox" ...
0
votes
2answers
2k views

What are all of the command line options for Google Chrome?

I use Google Chrome as my main browser, and I wanted to know what things I can do with it from command line - especially commands that you can't do with the GUI.
2
votes
1answer
393 views

How to make a playlist from a directory of mp3 files?

How do you make a universal playlist from a directory of mp3 files? This question came up as my wife is a musician (violinist) and she has a gig, and the DJ at the event will be playing her ...
3
votes
2answers
300 views

How do I simply run an ubuntu touch app from the terminal?

I've got a qml file and I just want to ssh to the phone and do qmlscene myfile.qml Is it possible without doing all that stuff with SDK and packages? Just vim and some simple commands that can fit ...
1
vote
1answer
25 views

Add a delay to a keyboard shortcut

To put my screens on standby, I've defined a keyboard shortcut: xset dpms force standby This causes the screens to go into standby mode immediately. However, I'd like the computer to wait for 2 ...
2
votes
2answers
19 views

mv a folder and now the folder seems gone

I typed the following: mv /var/www/folder/ ../../ Now I can't find that folder or anything that was inside of it. What am I missing? /var looks like this: root@,my-server:/var# ls -la total 52 ...
0
votes
1answer
29 views

How to get different colors in different terminals like BlackArch Linux

BlackArch Linux has 4 different color terminals (terminal green, terminal red, terminal yellow and terminal white). Is there any way for me to set up something similar in Ubuntu?
1
vote
1answer
23 views

How to check computer's timezone through Terminal? [duplicate]

I am writing a bash script which at some point needs to determine a user's timezone, so how exactly can I check the timezone in Terminal? I would like to be able to get output in terms of GMT and UTC. ...
9
votes
5answers
1k views

.sh specifying extension?

Why is it some systems will run a .sh file just by specifying the file name without extension and others require name plus extension? In my case I'm trying to write a series of commands following ...
2
votes
3answers
278 views

Cyclic script execution

How to make the cyclic execution of the script? At the end of the script i need to run it again. Cron is not suitable, because i need to run the script immediately after the previous
0
votes
1answer
30 views

-gt: unary operator expected shell script

Getting this error after the upgrade packages in ubuntu. #!/bin/bash used=$(df -H | grep 'rootfs' | cut -d "G" -f 4 | cut -d "%" -f 1) limit=90 if [ $used -gt $limit ]; then Or [ "$used" -gt ...
3
votes
3answers
41 views

No access to the terminal, how can I find it or install it?

So I was uninstalling some programs of mine that I have no use of anymore such as video editors, Skype and Opera. After I completed that, I close my terminal. I realized I needed to install a new ...
0
votes
0answers
27 views

Terminal won't start [duplicate]

Whenever I click Terminal icon it won't open and also I tried xterm and run gnome-terminal. Here is a screenshot of error:
0
votes
2answers
10k views

how to concatenate two strings in shell script in 3.13.0-34-generic kernel

I want to concatenate two strings for the shell file im getting error when i have created the shell file in following manner could you please suggest how to get it set export ...
0
votes
3answers
1k views

Terminal commands [closed]

I have some questions about some Terminal commands: Why must you do sudo apt-get update before installing an program or after downloading something? Does it update Ubuntu then? What is the ...
21
votes
1answer
25k views

Why is /etc/profile not invoked for non-login shells?

Login and non-login shell defined as: su - $USER # will give you a login shell bash # will give you a non-login shell /etc/profile is not invoked for non-login shells, such as when you start ...
1
vote
1answer
26 views

missing package CommandNotFound

I recently updated from 15.10 to 16.04 and now my python3 seems to be messed up. Before the upgrade I had python3.4 and python3.5.1(manually) installed. The upgrade removed python3.4 and replaced it ...
0
votes
1answer
42 views

permission denied

I set the Java command to an alias in my /home/.bashrc. alias java='/home/documents/jdk1.7/bin/java'. However, typing java results in: bash: /home/documents/jdk1.7/bin/java: permission denied
1
vote
0answers
25 views

Hot Corners Musical Sequence Command Script

I am writing a script which uses hot corners to play specific musical notes when hovering in corners, and depending on the musical sequence to execute a specific command. The script is called with ...
0
votes
1answer
22 views

which system command should i use to get the desired output given below

I need to write a system program that imitates who and w.Print the time since login(in the form HH:MM:SS)and the host name. Allow for a command line option -p that also prints the interesting ...
3
votes
2answers
309 views

Command line IF not working as expected

I'm relatively new to the terminal programming. I'm trying to run an IF condition within a FOR loop. (The command is to be run by a cronjob) for i in {1..5}; do echo $i; if [ $i>3 ]; then echo $i; ...