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

learn more… | top users | synonyms (5)

0
votes
1answer
279 views

Using mimeopen to set default application outputs “Cancelled”

I'm attempting to follow the steps here to change the the default application that opens a Blender file. I input the command mimeopen -dmime my_file.blend and when prompted for the application, I ...
3
votes
2answers
266 views

What does cd - (cd hyphen) do?

I typed cd - in terminal by mistake today, and I got an error saying: bash: cd: OLDPWD not set And unfortunately, man cd doesn't exist. No manual entry for cd What does it actually do?
0
votes
2answers
511 views

Ubuntu 12.04.3 LTS installation mode “Install a command-line system” missing?

I just wanted to install a command-line system from my Ubuntu 12.04.3 LTS ISO and the option for that is missing. Am I missing something in the process or what could be the fault? Trying to use it ...
0
votes
1answer
383 views

Problem while running script

I am getting error while running kafka-zookeeper script. Command i tried to run the script is root > /etc/init.d/kafka-zookeeper start Problem 2014-01-22 13:05:26,683] FATAL Severe ...
0
votes
1answer
691 views

Bash script, cannote replace string in a file with escaped $ and &

I have creatd a shell script which takes a string as input. If the string contains '$' or '&', then I need to raplace those characters with '\$' and '\&'. I could done that with sed command. ...
2
votes
2answers
463 views

iwconfig doesn't report Link Quality unless run as sudo

I'm running Ubuntu 13.10 on a late 2013 Macbook Pro Retina (booted via Refind). My issue is that running iwconfig doesn't output Link Quality or Signal Level unless run as sudo. me:~$ sudo iwconfig ...
1
vote
1answer
46 views

How do I upgrade releases from a Live USB with the command line?

If I create a Live CD/USB and boot from that, is there any way that an existing system on the hard drive can be upgraded by use of the command line, and not the Ubiquity installer?
0
votes
0answers
20 views

Problem with terminal

I just installed Ubuntu 12.04 on my laptop. I cannot get the terminal to work properly. Specifically, it will display symbols (~,!,@,#,$,%,^,&,*,) etc), but it will not display any letters ...
0
votes
2answers
68 views

How to find all the driver packages installed in my pc?

I want to find or list all the driver packages(wifi,graphics,etc) installed on my Ubuntu pc through apt-get or manually. How do i get that?
1
vote
2answers
4k views

How to sed and replace string with a folder path

I am trying to write the following bash script: HOME_DIR=/opt/my_home find ./CONFIG -type f -exec sed -i "s/_HOME_DIR_/$_HOME_DIR/g" {} \; The line that I want to be changed in the files is this: ...
0
votes
0answers
27 views

Commands that start sessions

I know of two commands that start sessions: gnome-session startlxde First, what flags are available to gnome-session. Second, what other commands can be used for other desktop environments. I am ...
3
votes
1answer
1k views

Search specific text from file and output the line (Shell script)

Suppose I have a variable $str1 str1="20140121-21:48:26|Joanne Frances|" What I want to do is search that part in the file. The file contains, for example: 20140121-21:48:26|Joanne ...
2
votes
0answers
692 views

Can cd into folder but I can't see it with ls or ls -a?

I've a shared partition between Windows and Ubuntu, achieved through VMWare's shared folders, and when I moved a folder into this shared folder Ubuntu couldn't see it. Ubuntu still can't see it, but ...
2
votes
1answer
378 views

Yad list columns

I need some help with Yad. This is my code: contact=$(while read line do firstname=$(echo $line | awk 'BEGIN { FS="|" } { print $2 }') lastname=$(echo ...
0
votes
3answers
8k views

accessing MySQL using terminal in Ubuntu 13.04

accessing phpmyadmin db from terminal now in ubuntu 13.04 i firstly installed mysql server with sudo apt-get install mysql-server mysql server version 5.5 now in terminal i can check if it is working ...
0
votes
0answers
118 views

Ram speeds with dmidecode command

I wanted to see my RAM capabilities so i runned dmidecode. The output: Memory Device Array Handle: 0x0028 Error Information Handle: 0x002B Total Width: 64 bits Data Width: 64 bits Size: 4096 MB Form ...
2
votes
2answers
157 views

hosts file and unclear behavior. How to make real alias?

I'm trying to create alias for my local website which is runned by vagrant(virtual box), hence I want redirect any requests from site.ru to 192.168.10.10/site.ru via /etc/hosts file. In the hosts file ...
18
votes
2answers
1k views

is there any significance to using tee

Why is it that almost all instructions regarding appending text to system files like fstab and /etc/apt/sources.list.d/<name>.list involve using tee and echo to append said text? Take the ...
5
votes
2answers
2k views

Script to write all filenames inside a folder and its subfolders to a csv file

I would like to write a shell script in order to write all files ending with .tif in a given directory and all its subdirectories to a csv file. The directory contains various sub-directories and ...
0
votes
0answers
44 views

I don't have any buttons on my menu bar

I was typing random words at Terminals and later I found out that there are no menu buttons on my menu bar. What can I do to get them back?
0
votes
0answers
127 views

undetected pendrive I want to format

I run the command lsusb and it shows my pendrive is attached at a bus. But my pendrive is not shown at disk utility to format
2
votes
0answers
142 views

Missing Unity Desktop /w SLiM Login Manager

Not too long ago I installed SLiM (Simple Login Manager) as my Login Manager for Ubuntu 13.04 just to give it a try out to replace the default Ubuntu Login Manager. After getting SLiM successfully ...
1
vote
2answers
202 views

Syntax of Terminal Commands

The syntax of a Terminal command will be something like the following: command -option argument But the following Git command seems irregular, can anyone explain the syntax of it. (Why two ...
0
votes
1answer
91 views

Installing ruby with rvm and making ruby visible to bash

I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not. I was browsing the web for a solution and I ...
-1
votes
1answer
83 views

run ubuntu on minimal resources (run terminal only)

I'm setting up an "old" pc to run servers for some games and I would like to free up as much processing speed and ram as possible. My first idea is to shut down everything that isn't necessary and ...
0
votes
2answers
153 views

Installation interrupted

I was installing build essential through command line using "sudo apt-get install build-essential". It took almost 4 minutes to reach 87% and then i mistakenly pressed alt+ctrl+f12 and a black screen ...
1
vote
1answer
112 views

Strange terminal navigation when logged in as new user

I am not even sure how to ask this properly.. I am using EC2 Ubuntu 12.04 I added a new user sudo useradd -g admin admin sudo adduser admin sudo Changed shudders so I can use new user without ...
0
votes
1answer
160 views

Simple bash script does not want to start at reboot

I've build a Play Framework Application (cool Java/Scala Web Framework) and would like to start it automatically like Apache2 or MySQL Server. For this I wrote a simple Bash script and did chmod +x on ...
3
votes
2answers
835 views

How do you use the command 'watch'?

I want to know exactly what the command watch is and how it is used to watch files and folders. How do you operate it from a command-line terminal?
0
votes
0answers
52 views

Configure terminal to use same set of hotkeys, no matter what shell is running inside of it? (Text navigation/selection/copy/paste etc…)

I have a set of keyboard shortcuts that I use all the time in every other application (browser, text editor, input fields in file manager, etc). They're not optimized by any means, but they're in my ...
0
votes
2answers
85 views

Command/App to convert video files [duplicate]

Anyone know how to batch convert multiple video files into smaller sizes?
1
vote
1answer
825 views

Change xfce4-power-manager option from terminal

I'd like to change a xfce4-power-manager setting (what to do when laptop lid is closed on AC) via the terminal so that I can assign a keyboard shortcut to do it. Is there a way how to do it? ...
2
votes
1answer
72 views

How exactly do files get opened from Nautilus?

I am asking this out of curiosity, to know what goes on 'behind the scenes' when I double click a file in a file browser, say Nautilus. Specifically, what parameters is the executable executed with? ...
1
vote
3answers
94 views

Skype and problem with terminal

Recently, I have installed ubuntu 13.04, and updated it. I want to install skype. I search in "ubuntu software center" but I did not find anything. Therefore, I search on internet. I found out some ...
0
votes
1answer
59 views

a command to list share folders in my network?

I am a new Ubuntu user , i have a question about commands in Terminal . Is there a command that list all shared directories in my network ? any idea?
4
votes
1answer
216 views

How to view the last user that accessed a folder in the terminal?

Is there a command to give me the last user that accessed a specific folder in Ubuntu? It is like auditing the folder for security reasons .
0
votes
2answers
58 views

Use input from a file for a command

I want to use the mac address stored in a file in aireplay-ng command. I want this command to be executed once with each mac address in the file. Can you please tell me how to do it? sudo ...
2
votes
1answer
66 views

Terminal is blank on second user account

This is a weird problem: after moving /home to a new disk, my gnome terminal does not execute any command. It is just blank: It does not contain the usual name@computer:~# I can enter text in it ...
1
vote
2answers
922 views

How to create a new user without home directory and with specific UID

How can I add a new user "Kids" with UID = 500 and without home directory with adduser command in terminal? I'm trying this: sudo adduser --no-create-home --uid ID 500 Kids and after correctly ...
1
vote
0answers
140 views

Unknown command hwmatch, installation error?

Yesterday I upgraded from Ubuntu 12.04 to Lubuntu 13.10. When I installed it I upgraded so I could keep my stuff. When I clicked Install it said there was no 1MB partition called Boot Loader. I ...
0
votes
3answers
457 views

cp and mv alternative with better merge support?

I am looking for an alternative to the standard cp and mv command line tools, specifically I am looking for features such as: detailed progress bar/reports dry-run support support for merging ...
2
votes
4answers
120 views

Rename all the files “file.txt” in directory with multiple subdirectories

If I have a directory1 which has a "file.txt" and subdirectories: "week", "today", "last month". In "week" and "last month" is also "file.txt". directory1/ file.txt week/ file.txt ...
0
votes
2answers
101 views

Editing with Nano

Is it possible to edit an existing text file using only one line of command and Nano. For instance if I have a text file called "new.txt" and I want to write "HELLO WORLD" in it. Can I do like this: ...
0
votes
1answer
37 views

“'^^Command not found” Terminal force quits

So I was trying to make an android from source when I guess I typed in some weird command that didnt work, next thing I know, I get the error "^^Command not found" and then my terminal force quits. ...
0
votes
1answer
265 views

Using & in mkdir

I just want to know how do I use '&' with mkdir command? I was trying to create a directory as follows: mkdir tests&results But I am getting error that results:command not found And ...
4
votes
7answers
6k views

Change multiple filenames by replacing a character

I have multiple files named like that : screenshot 13:25.png Windows struggle to open these files probably because of the ":". How can I replace it?
3
votes
4answers
593 views

Is it safe to place symlinks in /bin directory ?

I have many command line tools that I use frequently. I was using the normal method to traverse till the complete path of that command through terminal and then did ./command-name BUT this is a ...
0
votes
0answers
33 views

Errors when opening terminal

I have this error message when opening any terminal windows: "There was an error creating the child process for this terminal" Failed to execute child process "a-z" (No such file or directory)
1
vote
2answers
171 views

ls command without username?

I want to use ls --full-time -lnG but do not wish to list the user names at all. Is there any way to do this? I would consider -n and -G optional if it is conflicting with getting this done.
1
vote
1answer
530 views

How do I target multiple files with HandBrakeCLI?

How do I target multiple files (and or recursively through directories) with HandBrakeCLI like when using the GUI? When using the GUI with Mac I can select a folder with multiple files and queue the ...