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

learn more… | top users | synonyms (5)

0
votes
1answer
73 views

block certain dangerous commands?

In my High school there are few computer having Ubuntu 14.04 installed and many students know the Root password, how can I block/disable certain dangerous commands like :- rm -rf / rm -rf * ...
1
vote
1answer
26 views

Fullscreen and Repeat Video with Totem Player

I want to open a video from command line and I want the video to be opened as fullscreen and be repeated forever. I searched for fullscreen, and found the --fullscreen switch in Totem. However, ...
1
vote
1answer
19 views

Terminal message “Access control disabled”

Every time I open up the terminal the message access control disabled, clients can connect from any host pops up in the first line. Then the terminal behaves as usual, no errors at all. But this ...
2
votes
1answer
43 views

script in bash not understood using terminal in Ubuntu 12.04 [closed]

Can anyone tells me what does this script means found in a .sh file:: [ ! -n "$T_R" ] && echo "Message Appear" && exit 1;
0
votes
1answer
22 views

variable.sh is not exporting the variable using terminal

I want to export many paths using a .sh script. after running it nothing is exported I don't know why. so if anyone can advise. This is the script used: #!/bin/bash txtrst=$(tput sgr0) # Text reset ...
0
votes
1answer
39 views

Incorrect shell password correct terminal password

I'm trying to make some changes from the ctrl+alt+f1 menu, but the shell only rejects my login ("login incorrect" message). This is the same login and password that is accepted EVERYWHERE ELSE I'm ...
0
votes
1answer
45 views

How to convert Arabic subtitles to utf8 the right way?

Most DVD burners (if not all) ask for subtitles to be encoded in utf8, sure that's easy for file in *.srt; do ◀ iconv -f ISO-8859-1 -t UTF-8 -o "$file".utf "$file" && mv "$file".utf "$file" ◀ ...
1
vote
1answer
31 views

Declare a variable when running the script bash

How to declare the variable content when running the script? I know that is possible to use $1 $2 $3 to set a variable when running the script ./script.sh this is sparta, but I did not found a way to ...
0
votes
1answer
35 views

wicd-curses problem on Ubuntu 14.04

How to get wicd-curses to work on Ubuntu 14.04. This command works great on Ubuntu 12.04.
0
votes
2answers
79 views

Getting List of Running processes and applications

How can I see which application and what processes are running recently after the login using terminal command.
5
votes
2answers
385 views

Undo copy (cp) command action

I copied some file from source folder into destination folder by using bellow command line in terminal. sudo cp From_SOURCE/* To_DESTINATION/ Now I want to undo this command.
0
votes
1answer
36 views

call shell script from php when ubuntu 14.04 (rightly) disables the shell for www-data

I just migrated from 12.04 to 14.04. 14.04 (sensibly) disables login / shell for www-data. But my php site needs to run some shell scripts to run stuff like kindlegen, rsyncing files to another server ...
0
votes
0answers
22 views

Permissions when running second level script

Evening Everyone, I have 1 bash script that starts the program Motion (some may be familiar with). Motion links to a script in the motion.conf upon picture save or file save to a perl script that ...
0
votes
2answers
32 views

Why doesn't this second nohup command run?

Everything runs except the last line: #!/bin/bash xinput set-prop 11 "Device Accel Profile" -1 xinput set-prop 11 "Device Accel Velocity Scaling" 1 xinput set-prop 11 "Device Accel Constant ...
0
votes
2answers
34 views

How do I get my shell script to automatically accept prompts?

I made a simple shell script (that I run as root) to download essential apps that I might need whenever I reinstall ubuntu: It looks like this: apt-get install docky && apt-get install geany ...
2
votes
4answers
63 views

Moving all files of a certain type or extension

I have a large external with many subfolders that I want to move all videos, pictures, and music to another hard-drive, what would be the best way to do this?
0
votes
4answers
60 views

Running {command vs through bash script} + redirect output

I am not sure if it is one or two issues here: file /usr/bin/line1 wine /home/aiao/.wine/drive_c/Program\ Files\ \(x86\)/LINE/Line.exe > /dev/null 2>&1 file /usr/bin/line2 ...
2
votes
2answers
58 views

installing a script in $PATH

I am trying to use yeoman in Ubuntu. Everything is installed correctly but I can't use the command yo from bash. If I navigate to the appropriate directory and run node cli.js everything works from ...
1
vote
2answers
220 views

After install Google Chrome in EC2 won't open from Ubuntu Server 14.04 LTS (HVM) command line [duplicate]

I have installed Google Chrome with following command line: $ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - $ sudo sh -c 'echo "deb ...
0
votes
2answers
159 views

How to use Ffmpeg to convert wma to mp3 recursively, importing from txt file?

I tried different options from forums, but most of them are out of date (ffmpeg tells me about it, like with -sameq option). Im trying to understand the docs, but I can't. I want to know how to ...
0
votes
2answers
92 views

terminal ls command not showing all files

I'm familiarizing myself with the terminal, and trying to use the ls command is the directory /usr/bin. Unfortunately, it doesn't show me everything in the folder, the terminal cuts it off. How ...
1
vote
1answer
22 views

Changes to $PATH won't save after closing the terminal session [duplicate]

I downloaded the latest version of Scala and saved it to /opt folder. Then I tried to add /opt/scala-2.11.2/bin to the PATH in order to have easier access to commands like scala and scalac. After ...
3
votes
2answers
56 views

How can I batch replace one string at start of filename with string from end of filename?

I am looking for a command that I can use with Kubuntu's terminal (Konsole). (Edit) I figured out how to remove the useless last 13 characters in the filename, so what would the script be if I want ...
0
votes
1answer
39 views

Linux : Data extraction from text file

I have a text file in which thousands of data is there. eg. id=row_value profile=row_value name=row_value email=row_value address=row_value id=row_value2 profile=row_value2 name=row_value2 ...
2
votes
1answer
24 views

Use solarized or similar in Ubuntu Server

It's possible to use Solarized color scheme (or similar) in a Ubuntu Server 14.04 CLI only?
0
votes
1answer
45 views

What causes “bash: /bin: Is a directory” every time a terminal is opened? [closed]

This is initial screen I am getting on Ubuntu 12.04, when I open a terminal (Ctrl+Alt+T): That is, the text on the terminal is: bash: /bin: Is a directory chase@chase-desktop:~$ gedit ~/.bashrc ...
0
votes
2answers
33 views

How to get rid of terminal window when application was launched from command line?

I am running an application which is lying in /usr/bin/Application/bin/myApp. To run this file I need to execute ./Application/bin/myApp in terminal window. Now on running this way a terminal window ...
0
votes
1answer
84 views

When booting, grub errors and goes directly into CLI

When I boot up, grub loads, but fires off an error about 6 or 7 times: error: failure reading sector 0xfc from 'hd1'. And repeat with other sectors. The problem is obvious, I don't have an hd1, ...
-1
votes
0answers
55 views

ChrUbuntu hangs after login, can't login via command line

I'm using ChrUbuntu on my Acer C720, Ubuntu 14.04. Everything worked fine untill I rebooted the Chromebook after installing some apps. Now, when I login, the Unity launcher and the top panel are ...
0
votes
2answers
42 views

Connecting to the internet and installing MATE via terminal

So, I installed Ubuntu 14.04 today, and everytime I log in in the GUI (Unity), my PC crashes. This also happened when I tried Ubuntu 13.10 last year, so I figured, it must be my graphics card. I have ...
4
votes
2answers
119 views

Shell gives no prompt if auto completion is enabled (blinking cursor instead)

I tryed to enable shell autocompletion uncommenting the following lines in my .bashrc: # enable programmable completion features (you don't need to enable # this, if it's already enabled in ...
1
vote
0answers
74 views

SSH connection failing since I changed server port number

Yesterday I changed the default ports on the server from 22 to 1993 then restarted but now I can't connect at all. I used ssh -i keyname.pem ubuntu@remotehost to connect then sudo vi ...
1
vote
2answers
126 views

bash: ./configure: No such file or directory while installing FFMPEG

I am trying to install FFMPEG in Ubuntu 14.04. I got help to install FFMPEG installation In meanwhile I got an error `bash: ./configure: No such file or directory` I am getting this error when I ...
0
votes
0answers
18 views

A qdbus command error

Why do I get an error with this command in KDE: qdbus org.kde.klipper /klipper getClipboardContents qdbus: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus': No such file or directory ?
0
votes
0answers
22 views

How To Unzip Call_of_Duty_MW2.zip File

I have Call_of_Duty_MW2.zip and I want to install it with PlayOnLinux, but i could not find a way to unzip it. First, I tried extracting Call_of_Duty_MW2.zip, but it always gave me the same error: "An ...
1
vote
1answer
20 views

Can I change actions upon inactivity and timeout for that from command line?

How do I set the policy about what action should be taken if the computer is inactive for some time. This can be easily done from GUI, via Power Manager. I am trying to do this from command line. I ...
0
votes
0answers
68 views

I can't do updates, the manager won't show

Here's a screencap, it's been stuck like that since I last updated 8 days ago. What should I do, reinstall the update manager, or something in the terminal? I'd like at least to make it work again. ...
-1
votes
1answer
13 views

Switching to Terminal-only fails

I attempt to switch to terminal-only using sudo service stop lightdm and this turns off the GUI, but I can't type in any commands, although there is a cursor that shows up. I'm not sure what's ...
1
vote
1answer
40 views

What is dummy filesystem?

I tried df --help command to generate the man-page for help on df command and I am stucked with a unknown term Dummy filesystem This line in df manpage is where I get to know the term first time -a, ...
3
votes
1answer
26 views

Concatenate single common PDF to directory of PDF files

I use PDFtk, and the PDF Chain gui. Despite reading the man page and investing time in a variety of web searches, I can't find the answer to this one - I have a directory of PDF files, and I want to ...
1
vote
1answer
46 views

Can I use a Bash variable in a sed command?

I'm trying to execute a sed command with "-n" option. for i in 1 2 3 4 5 ; do maas maas nodes list | grep hostname | cut -d\" -f4 | sed -n '$ip'; done I want it to run sed -n '1p' then sed -n '2p' ...
0
votes
2answers
44 views

When I open a terminal session it shows ~$, how can I solve it?

When the terminal is open (Ctrl+Alt+T) it shows username@name: ~$. Is there any problem with my permissions? It was /$ before, but I don't know why it changed.
2
votes
0answers
67 views

how to easily make an Alias command permanent

I search everywhere and almost everyone was suggesting to open the ~/.bashrc or ~/.bash_aliases , then put the alias command there, I created a function name palias as permanent alias function and put ...
0
votes
0answers
25 views

How to skip entering password for sudo i.e. prepare script with permissions? [duplicate]

For work and other situations as well I'm running all sorts of sudo commands. Thank god (and devs), they can be run from Unity Laucher :) . But as a lazy timesaver I want these commands permanently ...
0
votes
1answer
31 views

Why are terminal shortcuts different than the ones used elsewhere for the same task?

I ask this out of sheer curiosity. For pasting - why wasn't Ctrl+v made as a shortcut - which is standard - instead of Ctrl+Shift+v - which is not standard? Same goes with so many other shortcuts ...
0
votes
0answers
19 views

xmacro without running x server?

I need to record typing in terminal, and it works just great in x session inside of xterm with xmacro, but I need to do such macro recording without running x server, and I can't really find the ...
0
votes
1answer
41 views

How to open the terminal with specific command already run? Best at Unity Launcher! [duplicate]

I know how to add a command to the Unity Launcher, but don't know how to have automatically opened terminal for the command. Especially needed when sudo command needs password or command result ...
1
vote
2answers
44 views

Cannot run an executable file in terminal [closed]

I have been running my script ./runenb a couple of times. I decided to log the output into a file so I used: ./runenb >output.txt and it works. Then I tried again and this time I did ./runenb > ...
0
votes
2answers
42 views

How to execute an .sh file? [duplicate]

I thought a sudo will work, but it says command not found: sudo: ./eTax_ticinoPG13_inst_Linux.sh: command not found nuc@nuc:~/Downloads$ ./eTax_ticinoPG13_inst_Linux.sh bash: ...
62
votes
8answers
8k views

What is the difference between Terminal, Console, Shell, and Command Line?

What is the difference between Terminal, Console, Shell, and Command Line?