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

learn more… | top users | synonyms (6)

1
vote
0answers
23 views

XTerm working but not Terminal?

So to begin with, my Ubuntu installation functions properly and everything runs without throwing errors. However, whenever I try to bring up a terminal window, it just loads a blank black screen with ...
0
votes
1answer
25 views

Can't Log In As User After Using A Restore Script

I used this script to restore my files and installed packages (home folder not encrypted) after upgrading to Ubuntu 16.04 64 bit. But when I tried to log in as a user, graphically, it just took me ...
1
vote
1answer
19 views

aptitude: symbol lookup error: aptitude: undefined symbol

When I run the following in my terminal: aptitude search linux-headers | grep ^i I get the following error: aptitude: symbol lookup error: aptitude: undefined symbol: ...
1
vote
1answer
34 views

Echo command hangs when writing to serial device

I have a serial device set to raw mode with stty -F /dev/ttyS0 raw. When i try to send any data through it with echo 'hello' > /dev/ttyS0, following happens: No data is recieved by the other ...
-1
votes
0answers
14 views

Aircrack-ng is installed, but aireplay is not?

I just installed aircrack, checked to make sure it was installed (which it is) then I ran the program I am using which uses aircrack along with aireplay. It is saying the aireplay is not installed. ...
1
vote
2answers
46 views

Get unique lines from log using grep and tail

I have the following log file. I want to extract the last 10 unique entries from this file. Is it possible to do with grep and tail? 2016-04-18 10:13:11,925 (glastopf.glastopf) 115.239.248.245 ...
-1
votes
0answers
15 views

ssh connection timeout event though I'm connected in the separate terminal

Problem does not occur during first few minutes after restart of the client machine. I'm accessing via ssh using key my remote server. I cannot connect to this machine from other terminals. When I ...
-1
votes
0answers
12 views

How to resolve the apache issue? [duplicate]

I'm using Ubuntu Linux. I'm using LAMP(Linux, Apache, MySQL, PHP) on my machine. My Apache server is not working. I tried to restart it but that also failed. Then I removed completely and tried to ...
0
votes
3answers
34 views

When running commands with && how can I keep it running when one command fails?

For example I have a .gitconfig for one project, since I do a lot of code reviews, that reads: review = "!f(){ git checkout master && git pull origin master && git branch -D $1 ...
1
vote
1answer
19 views

How to replace string containing file path using sed

I want to replace a file path to other using sed. I am attaching a small part of my file Kindly help source file : Dir=D:\test\foo Dir=D:\test\bar the result should look like this ...
0
votes
1answer
23 views

GCC won't compile to an executable file

I was able to reproduce this issue with a simple case (shown below). The problem in particular is that the output of compiling my main C file is a file with format data (returned by running file on ...
0
votes
1answer
44 views

How to make a permanent alias in oh-my-zsh?

In my .zshrc I tried to make a few aliases .I looked into a lot of places, but I couldn't find out a way that worked. I used this code below: # Set personal aliases, overriding those provided by ...
0
votes
1answer
41 views

manage PPA via terminal

I was searching for a way to manage my repositories in an advanced way and I found y-ppa-manager GUI application. it is a great application, that's for sure. But is there a way to manage them via ...
-1
votes
2answers
33 views

How to see my wlan ip? Ubuntu 14.04 LTS [on hold]

I know i need to go to terminal and enter ifconfig but when i do that i only get etho and lo informaion. So anyone know something?
0
votes
0answers
20 views

What's that terminal like screen before Ubuntu Logo in the boot process? [duplicate]

Each time I boot to Ubuntu, a terminal like screen with an underscore cursor is displayed where I can type till the Ubuntu boot logo appears. Does this screen have some functional characteristic or it ...
1
vote
1answer
40 views

Ifconfig does not show my IP [closed]

When i'm putting the code on: ifconfig ifconfig results in a terminal shows: eth0 Link encap:Ethernet HWaddr: f8:a9:63:64:3f:1c UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets: 0 errors:0 ...
2
votes
1answer
34 views

echo $SHELL: unexpected result [duplicate]

I am facing a problem related to the shell change, when I change the shell from bash to csh and type the comand echo $SHELL, I expect the shell to print: /bin/csh But instead it prints: /bin/bash ...
0
votes
0answers
18 views

when i type any command in terminal related to downloading i receive this error so what i do solve this error? [duplicate]

shubham@shubham-hp-notebook:~$ sudo apt-get update E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could ...
0
votes
0answers
15 views

Launching game (0AD) from the terminal

I was trying to play 0AD from my ubuntu box and was experimenting on launching the game via terminal. When running the bash command bash /usr/games/0ad it brings up an error regarding the video ...
0
votes
1answer
73 views

How to validate a user's password, with a shell script? [duplicate]

I'm making a bash script for the Ubuntu Terminal. I need to verify the user before the code can continue. How do I ask and validate their existing log-in password?
0
votes
0answers
22 views

~ as directory name [duplicate]

I have managed to create a bizarre problem in my file system and I don't know how to recover. In my home directory I had a Dropbox folder and I decided to change the scope of the Dropbox folder to ...
0
votes
0answers
13 views

drawing pad install

am very new to Ubuntu am running 14.04 LTS. am trying to install a drawing pad driver it is an xp-pen want to try before i buy a better pad. have tried following terminal commands but they all end up ...
0
votes
2answers
39 views

Can't cd into etc/profile, “not a directory”

I am new to Ubuntu (or any Linux distro) and I encountered a problem where I cannot cd into etc/profile. I was trying to edit the bashrc so that I could change the colours in my terminal window. I ...
0
votes
0answers
36 views

Ran `apt-get dist-upgrade` - now my terminal has a white background?

I am running the Ubuntu 16.04 Beta and I ran apt-get dist-upgrade today and suddenly the background color of my terminal is white (with black text). However, in the preferences of the terminal, it's ...
0
votes
1answer
45 views

badwolf color scheme does not work on ubuntu 14.04

I want to use color scheme badwolf for my vim so I downloaded it from here https://github.com/sjl/badwolf and copied colors/badwolf.vim to my ~/.vim/colors directory. But it does not work. It does not ...
-2
votes
1answer
25 views

I want to install vim but the following error appears [closed]

checking for tgetent()... configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with --with-tlib.
1
vote
0answers
24 views

scp syntax question

I'm having a little difficulty using scp to transfer files from a remote computer. The issue apparently has to do with the name of the directory the files are contained in. They're on a CD drive ...
0
votes
2answers
55 views

How to get File Size in BASH with readable size not in bytes

Here is what i have in my shell file: FILENAME=/var/lib/backups/html-backup/backup-15-04-2016.tar.gz; FILESIZE= $(ls -lah $FILENAME | awk '{ $FILESIZEINGB = $5}') echo "Size is $FILESIZEINGB ." Can ...
0
votes
1answer
21 views

How do I reset the Python interpreter's terminal width?

When I start python in a new 14.04 LTS gnome-terminal it is 80 character wide: $ python >>> import os >>> os.popen('stty size', 'r').read() '24 80\n' When I resize the ...
0
votes
1answer
45 views

Concatenate find command with other commans

I am trying to index my file system. What I want to do, is: execute the command find, and for each entry save the last access time, last modified time, compute the hash and other operations. In order ...
0
votes
0answers
23 views

Serial Port ISSUE

I want to use serial port to send/receive data. I have joind dialout group. sudo chmod a+rw /dev/ttyS0 is done On checking sudo dmesg | grep tty, I get following message [ 0.000000] console ...
3
votes
1answer
184 views

Why is .profile is not sourced when choosing “Open in Terminal” in context menu?

I have already changed the default profile of the terminal emulator to "Run command as login shell", but that only enabled the sourcing of .profile when I open Terminal via ctrl-alt-T. What am I ...
8
votes
1answer
524 views

What are these extra output lines in bash?

It's for sometime that these lines can be seen after running a command (randomly): [1]- Done wget -c ...
0
votes
1answer
14 views

Set suplicity to do not follow symbolic links

Currently duplicity supports (...) symbolic links (...) but not hard links. http://www.nongnu.org/duplicity/duplicity.1.html It is not clarified but most likely it means that soft links are ...
0
votes
1answer
20 views

sqlplus command not found on ubuntu 14.04

I have completely installed Oracle 10g Xe on Ubuntu 14.04, configured it and in that session I have successfully created some tables in the database. I closed the terminal and after some time I ...
2
votes
1answer
37 views

Restore duplicity archive with entire path remembered

Lets say I have two files that I want to separately backup: /home/user1 and /home/user2/ This is easy: duplicity /home/user1 file:///media/mateusz/Backup/user1_backup duplicity /home/user2 ...
0
votes
1answer
52 views

Bash syntax error near unexpected token when trying to export

I'm trying to add these lines to ~/.bashrc (previously untouched): export NVM_DIR="/home/julian/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm export ...
0
votes
1answer
44 views

close the terminal without terminating the process

I started an installation process from a terminal and have two questions about this: How can I close the terminal without terminating the installation process? and how can I restore it again? How ...
0
votes
1answer
89 views

I can't get my Wacom Intuos to work in Ubuntu at all

I just bought a new Wacom Intuos, and I can't get anything to work. The tablet itself turns on, and detects pressure, but the cursor won't even move even though lsusb detects it. I have an older model ...
1
vote
1answer
201 views

How to find a specific text in files with specific extension?

Let's say I'm searching for all files with .log extension that contain the text of abc. When searching for files with any extension would look like (Ref.: http://unix.stackexchange.com/a/16140/38353 ...
2
votes
2answers
41 views

Is it possible to run more than one command in a someapp.desktop file? [duplicate]

i am just trying to find a way to run an extra command when opening an app (Firefox), but i am failing miserably... The original question is here. I tried to add my command after the app command as ...
1
vote
1answer
17 views

Using Grsync to set up a backup job via GUI, can I see the rsync command it created?

Is there a way to view the actual command that grsync ends up running? The idea is to setup a backup job in Grsync, exactly as I want it with all the options, and subsequently use the command to ...
1
vote
0answers
17 views

Not able to run jhbuild:Error executing command as another user: Not authorized

I am running jhbuild sysdeps --install After running this command it is asking for authentication: ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run ...
0
votes
1answer
31 views

Shortcut to open terminal in the currently open directory on GUI [duplicate]

Are there any shortcuts to launch a terminal in the currently active directory in the GUI? For example say I am browsing the directory cd ~/Projects/A/B/C/D/ED on GUI. I wish to open a terminal with ...
1
vote
1answer
137 views

Open terminal on startup and run command [duplicate]

Very simple question, I'm new to Linux I have a command run on startup (Elementary OS) command is: /home/zachary/Documents/Server108/Server108.sh When I turn my laptop on the command runs in the ...
0
votes
0answers
29 views

at command is not executed

I'm automating some mouse clicks using at and xdotool as follows: echo "./autocheckout" | at 18:00 where autocheckout is a bash script as follows: #!/bin/bash # Remember to see if Javascript is ...
-1
votes
0answers
15 views

for expat.h… configure: error: expat.h not found [duplicate]

$akhil@akhil-virtual-machine:~/Downloads/pdcom-3.0.7$ ./configure $checking for a BSD-compatible install... /usr/bin/install -c $checking whether build environment is sane... yes $checking for a ...
-1
votes
1answer
28 views

How to add entry to /etc/hosts with a built-in command line

It turns out that editing /etc/hosts is enough to add an entry of DNS. Is there a built-in cmd , where we can: add host cmd: $ sudo mycmd 10.103.23.34 myme.com Result : 10.103.23.34 ...
7
votes
1answer
171 views

Batch-convert and split .ape with .cue to .flac in various folders from terminal

I have a 44GB (yes, forty-four) folder of .ape CD files. Each .ape is a complete CD, and there is usually a .cue file along with each .ape. I need to convert but not split these, since there's no cue ...
0
votes
0answers
8 views

Can I deiconify a console on a certain output?

I would like to have a terminal window which deiconifies as soon as it shows an output. With it I would monitor log messages on a terminal -- say with a tail -f. The terminal would loom in ...