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

learn more… | top users | synonyms (5)

0
votes
1answer
22 views

Auto copy on double click in Terminator

I used to be a heavy user of iTerm2 and one of it's most useful features I found was to auto-copy the text to clipboard when I double click and select something. I recently transitioned to Ubuntu and ...
0
votes
2answers
19 views

Run PHP script from command line?

How can I Simply Run a php script in the command line? Also is it possible to run it like it would be if the Url was typed in?
3
votes
1answer
23 views

Why doesn't yes fill up the buffer?

Say I do something like yes | apt-get install foo. I know that yes will non-stop print a bunch of y\n's to stdout. But apt-get can only process a few of those. Why doesn't yes fill up the buffer? Does ...
-2
votes
0answers
28 views

VESA: Intel® Sandybridge/Ivybridge removal

I accidentally installed very outdated drivers, I have been tricked into installing this old graphics driver and I need the original default drivers the computer came with! I really need help with ...
0
votes
0answers
29 views

How to set the path to xstream in Ubuntu 14.04

I am using Ubuntu 14.04, and installed my version of jdk using sudo apt-get install openjdk-7-jdk Now I installed xstream 1.4.7, but whenever I compile any java files using the package, I get an ...
1
vote
1answer
18 views

How to tweak “dpkg -l” output

I need the fields returned by dpkg -l to be tab separated but without the headers and the "ii" column. The default output: $ dpkg -l grep Desired=Unknown/Install/Remove/Purge/Hold | ...
0
votes
1answer
31 views

Month names are written in Hebrew and not in English in terminal

When I ls -l, the output is printed on screen by in a line similar to drwxrwxr-x 3 yotam yotam 4096 יונ 29 10:27 mnt the יונ part is Hebrew for JUN. I want it to be in English, that is JUN I ...
3
votes
0answers
14 views

How can I mute an individual application from command line? [duplicate]

I can see a list of applications currently playing sound: And I can mute them by clicking the On/Off slider. How can I do thi from command line? I want to be able to mute google-chrome, so that I ...
-2
votes
2answers
33 views

Which command is to take for to find out about program, which else programs are initialized by this one program? [duplicate]

Yes - this concerns the question which commands in terminal are possible, for to find out which programs are initialized (visible and non-visible) - by program1. (for example - when I only want to ...
0
votes
3answers
37 views

How do you change/edit reboot command to “rebooot” (Edit pre-existing terminal commands) [duplicate]

Where does the terminal command (reboot) live? If I wanted to change it to "rebooot" or "rbt" what would I need to do? Without creating a separate bash script for a completely separate command.
-2
votes
2answers
64 views

How do you create custom terminal commands [duplicate]

For instance if I wanted to type $Ctrl+Alt+Delete and it would return the same as $reboot this way when editing custom taskbar launchers we can execute key commands via terminal. Would I write a ...
0
votes
1answer
24 views

Can we implement some new functions for terminal ie. typing the word Tab will result in key stroke Tab

Ok Im wondering why in terminal we cannot input these commands and get the same output as the keystroke? Is it possible to some how add them to list of acceptable commands in my terminal. Tab = Tab ...
1
vote
0answers
21 views

Thinkfan refuses to start

Thinkfan used to work before, but when I try to start it now, I get the following error messages. Does anyone have experience with that issue? I can't make any sense of it. [~] $ sudo ...
4
votes
2answers
70 views

Difference between echo -e “<string>” and echo $“<string>”

What is the defference between using echo -e "Hello\nWorld" and echo $"Hello\nWorld" don't they both output: Hello World
0
votes
0answers
39 views

Sublime-Text 3 build and run in terminal

So I'm using sublime-text 3 for programming. I write PHP, Python and C++. I like that Sublime-Text is able to compile my code. But problem is that when I want to use input in C++ or Python, then ...
1
vote
2answers
42 views

Open an existing file in Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?
1
vote
2answers
51 views

gibberish command not found on bash terminal startup

I have run across an issue that I just cannot seem to figure out. When I start my terminal in ubuntu (14.04) I get the message sdfsdfsdi: command not found As you can see it just looks like ...
0
votes
2answers
34 views

Command line file rename with date and time

I want to do a weather cam web page I have the command line to take the photo from the webcam then upload it via FTP but I want to do a backup of the photo with time and date as the file name so ...
0
votes
2answers
43 views

Install Sw in /usr/local but bash terminal doesn't see programs

I'm a newbie Ubuntu 14.04 User. I need Netbeans to develop software so I decided to install the 8.0.1 version. Since the pkg installer doesn't have the latest version, I downloaded the .sh file from ...
0
votes
1answer
26 views

inotifywait don't have access to folder

I got a problem with my folder rights/groups settings. One folder does have 755 and a group 'xyz'. I am in that group 'xyz' and I can actually see it's contents when I list it on terminal. By ...
6
votes
1answer
919 views

I accidentally removed my Trash and can longer put items into it, how can I get it back?

I did a stupid thing. I was having issues with certain files in my trash that my system was not allowing my to delete, meaning I could no longer empty my trash. These were not super important files, ...
1
vote
1answer
51 views

What are the different types of terminals available in Ubuntu?

When I type echo $TERM on my terminal it shows me xterm. From there itself I believe there are more than one terminal in Ubuntu. Is it the name of the terminal that I am using? I have seen some ...
0
votes
1answer
43 views

What's the best way to copy `previously run command` to another terminal?

There are two terminal window - terminal A and terminal B. I typed a long long command to do something on A. then I want to execute the same command on B. But I would NOT like to type it again nor ...
0
votes
0answers
12 views

How do i give the anonymous pipe to a file root privileges [duplicate]

If i go the a root owned directory (let's say root) and type: sudo echo test > test i get the following error: bash: test: Permission denied So the pipe does not keep the same user as the ...
1
vote
2answers
200 views

Script doesn't work when it is run using '#!/bin/sh'

I have a script that use shebang : #!/bin/sh, but when I run it in my Ubuntu 14.04 terminal, it doesn't work and it says that some lines has unexpected operator. My friend in another computer could ...
0
votes
0answers
24 views

Unable to install gnome shell 3.10 on ubuntu gnome 14. 04 after accidental uninstall

I was running ubuntu 14.04 and genome shell verdion 3. 10. I was naive and installed ppa and system updates that upgraded the shell to 3. 12 and that's when things started falling apart (system ...
18
votes
2answers
2k views

Why I can find *main.o but cannot *.o?

This one is correct: $ find . -name *main.o ./main.o So, why I can't find *.o? $ find . -name *.o find: paths must precede expression: main.o Usage: find [-H] [-L] [-P] [-Olevel] [-D ...
1
vote
2answers
56 views

How to run commands from a bash file the way they run from terminal?

Sorry for my probably very naive question. What I mean is: how to create an executable script/bash file that would run more complex commands, commands which must normally be put in a terminal? ...
4
votes
1answer
46 views

What are the allowed characters for a password?

I'm asking for the type of characters supported by user passwords (the passwd command precisely) Are spaces allowed? NULL characters (\0)? a subset of ASCII or more? If spaces are allowed do I need ...
0
votes
1answer
27 views

Configure GSM connection using shell (nmcli)

I have a system without X display and I want to use nmcli to configure my usb cell modem. I can get the modem working using Ubuntu Desktops GSM-Wizard (X/GUI). But what is the console alternative on ...
0
votes
1answer
33 views

TCP Connections [closed]

I am reading the article here Get Detailed Information About Particular IP And, I am very concerned about the output from the results. When I entered the command from that site: sudo netstat -nat | ...
0
votes
2answers
36 views

chmod command problem Xubuntu [duplicate]

Hello I'm trying to make a jar executable using chmod a+x jarname.jar, no errors. But when I try to execute it it's not executable. .. help plz, I'm on Xubuntu, trying to execute the jausing DOUBLE ...
1
vote
1answer
20 views

apt-get error with libmza

I am getting the following error when I try to update something apt-get: /usr/local/lib/liblzma.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12) ...
0
votes
0answers
20 views

How to create an login page for ubuntu before GRUB [duplicate]

I want to create an login page before the execution of GRUB so that we can make our pc secure
7
votes
5answers
540 views

Run program from anywhere without changing directory

I wish to create an alias, which runs program x, without changing the current directory I am in. What I have now is: alias x = "cd /home/path_to_x && ./x" This works, but changes my ...
2
votes
1answer
39 views

“Run In Terminal” message doesn't appear

I'm trying to execute a .sh file, but its opening in gedit. I permitted it to be "executed as program", but it's still not working. I'm on a machine running Ubuntu 14.04LTS.
1
vote
1answer
49 views

jumping cursor when using python interpreter in terminal

When I am typing in a long command while using the python interpreter in terminal, the cursor will suddenly jump all the way back to the beginning of the line that was just typed and start ...
2
votes
1answer
133 views

does << (input redirection in append mode ) works only for newline?

while reading about file creation in linux I got : Another way to create a file at the terminal is cat > <filename> << EOF. A new file is created and you can type the required ...
-1
votes
2answers
34 views

How to add running program icon to left-side bar? [duplicate]

As in question, how can we assign an icon here? Regards
-3
votes
2answers
73 views

What is/are the advantage(s) of running applications in backgound?

I really don't know what are the advantage of running applications in background. Why we run applications in background and when should I decide to run an application in background and why? After all ...
0
votes
1answer
32 views

unable to execute .sh scripts - only on one pc

This is an unusual problem for me - what would cause one pc to suddenly be unable to execute an install.sh script, yet two other pcs with the same OS have no problem doing so? I get various errors ...
0
votes
1answer
33 views

Create a user for samba only (CLI)

Exact same question as this one, but using CLI instead of GUI. I'd like to allow login access to a shared SMB directory, but the users get no other access to the server.
1
vote
1answer
21 views

Nothing after logging into account

I tried to install java and few other upgrades, so I found this website: http://itsfoss.com/things-to-do-after-installing-ubuntu-14-04/ and did basically everything. After reboot screen with the ...
0
votes
0answers
51 views

Cannot find google chrome terminal command

I'm connecting to my machine at the university using the ssh - X command. I want to launch google chrome from my terminal in order to get access to some website only available through my university's ...
0
votes
3answers
157 views

Not a Ubuntu question, but a Linux query in general: MS-DOS like OS for Linux? [closed]

I'm looking for a Linux OS that runs fully through the terminal, kind of like MS-DOS. I'm using a 100 Mb device that I intend to use for only basic functions like transfer files from various drives ...
0
votes
0answers
18 views

How can I set raise-window-button from the command line?

I have a script with commands such as: gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Alt>F2']" which I use to reset my gnome settings when an update decides my ...
0
votes
1answer
28 views

Working with plain vi not vim

I was trying to learn working with vi, the plain 'vi' that ships with most of the operating system, but that 'vi' seems to be missing lot of features. When I tried to excute ":ls", it gave me error ...
2
votes
2answers
48 views

uniq command not working properly?

So I'm checking the md5 hash of my files with this as my output: 657cf4512a77bf47c39a0482be8e41e0 ./dupes2.txt 657cf4512a77bf47c39a0482be8e41e0 ./dupes.txt 8d60a927ce0f411ec94ac26a4785f749 ...
1
vote
1answer
38 views

Commands not executing in shell script run by udev

I'm having trouble using udev to run a shell script that backs up my hard drives to an external drive whenever the external drive is connected via USB. Everything works except the actual call to ...
1
vote
2answers
49 views

Lame - How to re-encode all 320kbps mp3 to 192kbps mp3

As per title. I have lots of MP3s in 320kbps format that I need to convert to 192kbps. Currently I'm using lame --mp3input -b 192 which creates a file of the same name but with an extra .mp3 ...