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

learn more… | top users | synonyms (6)

4
votes
4answers
1k views

How to record the terminal on a server?

I enjoy recording screencasts in my spare time, and was hoping to get going recording some Ubuntu stuff. I have a machine running Ubuntu Server, is there any easy way to record the screen?
0
votes
1answer
10 views

Exist some way to use cp for copy a entire folder excluding some files? [duplicate]

I've been trying to copy a entire folder to another and this it's simply adding the -r option cp -r sourceFolder destFolder But now i need exclude some files from sourceFolder. How achieve this?
0
votes
2answers
19 views

What “sudo” command do and is the usage of this mandatory?

I run my terminal commands as root but sometimes some programs (etc. Tor Browser) say "The Tor Browser Bundle should not be run as root. Exiting.". I want to understand if this command is optional ...
0
votes
1answer
25 views

How can specify a temporary folder with sufficient disk space via terminal?

I need more disk space at /tmp and /usr folders. How will achieve this?
0
votes
1answer
16 views

Software package fails installing because of permissions

I'm busy installing WS02 on Ubuntu 16.04 LTS Server edition, right now I am facing some problems regarding permissions I guess below is my terminal log. I checked the directory with $JAVA_HOME and ...
0
votes
1answer
11 views

Can't launch graphical apps from terminal after updating to 15.10

After updating to 15.10 it's impossible to run graphical apps from terminal: xxx@xxx:~$ gksudo wireshark Invalid MIT-MAGIC-COOKIE-1 key (gksudo:5532): Gtk-WARNING **: cannot open display: :0 ...
1
vote
3answers
73 views

How do you extract a particular column or row from the output of a command?

Example: abcd@abcd-abcde:~$ xinput --list --short Virtual core pointer ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] ↳ Logitech USB RECEIVER id=12 ...
-1
votes
1answer
20 views

Command-Line: nano VS vi

What is the difference between the command-line text editors 'vi' and 'nano'? Can someone explain this in detail and why many people prefer 'vi' over 'nano'? Thank you.
2
votes
1answer
13 views

How can I list the packages I removed on a specific day?

On May 05, 2016, I had removed some packages from my Ubuntu 14.04 desktop. Now I want to make a list of those packages which I had removed on that day. How can I do it using Terminal? However, I can ...
0
votes
0answers
17 views

Ccrontab script returns empty output

I'm writing a simple bash script for analysing disk health status with smartctl and when i run it in a terminal or by script all works fine: for i in {0..5}; do echo "***** /dev/sda$i *****"; ...
0
votes
2answers
29 views

Problem with sed … too noob to understand how to do what i want to do

I'm updating my .bashrc file to show weather I'm using the line lynx -dump "http://wxdata.weather.com/wxdata/weather/local/14225?cc=*&unit=f&dayf=1" | grep -A 2 -m 1 "<tmp>" Which ...
1
vote
4answers
281 views

How to find which users are currently logged in?

uptime shows among others 4 users, should I be worried? According to man uptime uptime gives a one line display of the following information. The current time, how long the system has been ...
1
vote
1answer
7 views

Problem exporting my database sql through the terminal

I have this issue when I try to export my database with the CLI instruction mysqldump -u [root] -p [guru99] > [guru99].sql root@YuveSys:/home/yuve# mysqldump -u [root] -p [guru99] > ...
0
votes
3answers
42 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 ...
1
vote
1answer
5 views

chrome extension to automaticly open highlighted commands from webbrowser in terminal

As the title suggests, is there a chrome extension to automatically open highlighted commands of web browser in the terminal? Wouldn't this be great?
42
votes
2answers
21k views

apt-get stuck at 0 [Connecting to us.archive.ubuntu.com]

When I do upgrade it gets stuck here: user@plato:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
49
votes
4answers
41k views

How can I tell if my system was booted as EFI/UEFI or BIOS?

How do I determine whether a particular running Ubuntu system was booted using EFI/UEFI, or BIOS?
0
votes
1answer
22 views

How to get the command for existing launcher entries? [duplicate]

How do I get the start command from an existing launcher entry on 16.04?
0
votes
0answers
19 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
25 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
17 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
9 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 ...
-1
votes
1answer
31 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 :)
7
votes
2answers
393 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
21 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
11 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
333 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
39 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
555 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
24 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
19 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
31 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
21 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
31 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
188 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
394 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 ...