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

learn more… | top users | synonyms (5)

0
votes
0answers
5 views

Xubuntu 15.04: Can no longer navigate with Ctrl + left/right on MySQL shell

In previous versions of Ubuntu (and other Linuxes), I was able to jump word-by-word in the MySQL shell with Ctrl+←/Ctrl+→. This does not seem to work in 15.04. Instead I get ;5D (Ctrl+←) and ;5C ...
0
votes
0answers
14 views

I can`t open the audio content of a CD

I inserted an audio CD in my unity, i tried to open the content or play with RhytymBox but the volume is not visible at all; Curious for me, if i open Disks option in Ubuntu(14.04) the disk is there, ...
1
vote
1answer
27 views

error in running bash script as root

I have a simple shutdown script which i want to run as root shutdown -h +30; echo "succesfull"; I have followed these answer1,2 to make my script root. first I run this command sudo chown ...
0
votes
1answer
22 views

How to maintain a counter across multiple executions of a script?

I have a script with a conditional statement and I want to find out how many times the if statement is executed (no loops in the current script). That is how many times the script got executed. eg: ...
0
votes
2answers
25 views

What is the difference in command-line “sudo apt-get update” and using Synaptic or Auto-updater?

The whole update process seems somewhat confusing to me. I can understand the need to run sudo apt-get update prior to installing another package, but, what is the difference in running update from ...
-3
votes
1answer
12 views

“STOP error reading namelist input_data in subroutine strtup” Linux Terminal [on hold]

I would like your help. I am running a code in Linux. I have updated an input file to output using emacs. Then, when I am running the code I keep receiving this error. Please help. Thanks.
1
vote
0answers
15 views

Pixelated display after run “sensors-detect” [on hold]

Pixelated display after running this command: sensors-detect I'm using a Lenovo y50-70
3
votes
2answers
64 views

Certain commands not working for a user with sudo after adding to `sudoers` file

I cannot seem to allow the user (In this case Ruby) to run sudo rm -rf, sudo rmdir, or sudo mkdir. I have tried it with other commands and it works fine allowing that user to run sudo apt-get update ...
5
votes
3answers
446 views

Shebang line doesn't invoke perl

I am a new Ubuntu user, trying to run scripts developped on Straberry Perl on Windows 7. My Unbutu environment is Ubuntu 14.04 LTS and Perl 5.18.2. The first line of my scripts is #!/usr/bin/perl, ...
4
votes
2answers
108 views

Can alias command pass arguments?

I want to know if i can pass an argument with an alias command. for example: alias d="dmesg|grep -iw usb|tail -5" Now d will print the last 5 lines. if i want to use d to print a different number ...
0
votes
2answers
24 views

Time of execution of an executable in ubuntu console [on hold]

I would like to get the time to execute an executable in ubuntu console... but i dont know how to get that.
0
votes
1answer
21 views

Launching a .sh file from a .launch file

I am fairly new to Ubuntu 14.04. I am doing a school project where I need to use navigation stacks. At this point the navigation works fine. My problem at this time is: Before I can launch rviz and to ...
1
vote
2answers
23 views

How to count number of files and directories recursively in a given directory

I can find number of files recursively in a given directory find . -type f | wc -l I can find number of directories recursively in a given directory find . -type d | wc -l But what I want a ...
0
votes
0answers
10 views

I have problems to install zen plugin to geany?

I want to install zen plugin for geany, to do thath i follow the instructions of this page: https://github.com/codebrainz/geany-zencoding but i have a problem as when I type: ./configure ...
0
votes
2answers
19 views

What does the output of dpkg -l means? [duplicate]

The command dpkg -l is used to list all installed packages in the system. But if you look to the output such as below: ii whoopsie 0.1.34 Ubuntu crash database submission daemon rc ...
1
vote
1answer
34 views

List files/direcotries according to their modification time

How can I list files or directories according their last modification time either in ascendant or descendant way ?
1
vote
1answer
34 views

Accidentally run command rm -R in Amazon EC2. Unable to login

I'm using Amazon EC2 for Magento website and WinScp to access SFTP. Sometimes I'm using terminal in WinScp to execute command. Today I need to delete some files so I used rm -R /* and forget to ...
2
votes
2answers
47 views

How to monitor the status of shutdown sequence

This is the script I made to lock and shutdown my system after 30 minutes. #!/bin/bash # Read Password read -s -p "Password: " password echo # shutdown and screensaver Command echo "$password" | sudo ...
0
votes
0answers
10 views

Alt-Tab into certain applications results in ~3.5s keyboard input lag, but not touchpad lag

I'm on ubuntu 14.04. sWhen I alt-tab into certain applications, including gnome-terminal, Sublime Text 3, and LibreOffice Writer, there is an initial keyboard input delay of ~3.5 seconds. After that ...
0
votes
1answer
21 views

How do you make sure that new hostname is successfully broadcast to the network?

I am trying to reset my hostname, but I am not sure if the broadcast is successful or not, is there a way to check? user:~$ sudo hostname newhostname user:~$ sudo dhclient sudo: unable to resolve ...
3
votes
2answers
39 views

grep regex pattern causes unexpected command behavior

I'm searching for lines with $ and consecutively ' or " through this grep in my terminal: grep "\\$('|\")" -rin folder_path After pressing enter the terminal doesn't think the line is complete so ...
0
votes
1answer
39 views

How to change display's position from command line?

How can I use the command prompt to do get the setup shown below? Edit: I need the secondary display to be located to the left and half-way to the top of the primary display, as shown above. The ...
0
votes
1answer
25 views

How do I find out why I get anytime the same error message from an original Ubuntu script?

Swap2Ram.sh always produces its error message, even when I have enough ram left. Any ideas? #!/bin/sh mem=$(free | awk '/Mem:/ {print $4}') swap=$(free | awk '/Swap:/ {print $3}') if [ $mem -lt ...
0
votes
0answers
23 views

Access ubuntu terminal/sudo after pressing ctrl c and restaring while upgrading system

I tried to upgrade my system from 14.10 to 15.04 and while I was installing it asked me if I want to replace config file. I tried to compare, then didn't know how to exit Ipressed ctrl c and then I ...
4
votes
1answer
65 views

terminal command for listing available shells

I need to check out which shells are available. Which command gives me available (installed shell like, tcsh, csh, bsh) shells in terminal?
6
votes
2answers
490 views

Piping to “type” command

I want to find out the type of several commands. Is it possible to pipe or xargs a search result from find into the type command in Linux? For example: find . -name anacron | type or find . -name ...
2
votes
1answer
26 views

Print again the last printed paper using command line

The scenario : I want to print again the last printed paper in my printer... Is't possible... I've came to some commands such as lpstat, lpr , lp but can't find if such option is really exist. Any ...
0
votes
1answer
23 views

How do I bind Windows key using command line?

I want to map Windows key (without any additional key) on Ubuntu to be able to launch Terminal (xterm). I've already went through this information but I don't know how to go from there. How can I ...
3
votes
1answer
44 views

Suddenly can't run sudo

I didn't do anything on the computer except Internet for a few days and suddenly when I tried to do: $ sudo apt-get update I got: sudo: effective uid is not 0, is /usr/bin/sudo on a file system ...
-1
votes
1answer
38 views

how to solve “No such file or directory ”error? [on hold]

No such file or directory error is being displayed although the directory(folder) is existing
2
votes
1answer
31 views

How to make a bootable pendrive in command-line?

How could a Bootable USB Pendrive can be created using the Ubuntu command-line. Can we use a script for the same? Can somebody help on this?
0
votes
0answers
21 views

How to pass the line number, where the mismatch occurred in awk, to Shell variables?

I am trying to compare two csv files. I want the line numbers to be stored into shell variables or array. I tried something like this: paste <(awk -F, '{print NR,$1}' file1) <(awk -F, ...
2
votes
2answers
23 views

remove file with -h_some_file_name in shell [duplicate]

I have a problem when trying removing a file with name something like -h_some_file_name, this is because of generated script that I made and forget to check the prefix. If I run the command rm ...
0
votes
1answer
42 views

Run commands “without” terminal

Months ago I saw a guy running commands from a small, text-box-like window, showing nothing else other than the text-box for you to write the command. Such text-box would popup by pressing some ...
0
votes
1answer
59 views

How to find a graphics driver that works (faulty with nouveau & nvidia)?

I'm unable to access my Ubuntu 14.04 or Win XP partitions. When I try to log in to Ubuntu sometimes I get to the password point and my mouse stops working, or I get a black screen before that and ...
1
vote
3answers
82 views

Remove duplicated from two files and merge the unique ones

I Have two big text files, checksums_1.txt and checksums_2.txt, I want to parse these files and remove duplication between them and merge the unique lines in one file. Each file have the following ...
3
votes
2answers
49 views

How to execute a shutdown with timer and screensaver command in a script

I made this script when executed will shutdown my system (after some time) and should enable a screensaver. #!/bin/bash sudo shutdown -h +30 gnome-screensaver-command -a There are mainly two ...
0
votes
1answer
19 views

Installed script with pip: Run like a command

I installed this python script scdl to download audio from soundcloud. The script is installed to ~/.local/bin How can I run this script in a terminal like a programm? So I don't enter the whole path ...
1
vote
0answers
22 views

Having problem with opening softwares from the terminal (including wireshark & gedit)

I am using Ubuntu 14.10 and I am having errors opening softwares from the terminal. For example: build@build:/usr/local/bin$ sudo wireshark gdk_mir_display_open Failed to connect to Mir: Failed to ...
0
votes
0answers
11 views

Getting message about not installed Sphinx

I try to use Sphinx, when I run: sudo indexer --all , getting the folowing: Sphinx 2.2.7-id64-release (r4883) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies ...
92
votes
8answers
5k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
2
votes
3answers
206 views

What does `pbrun -u [username] dap' do?

What does pbrun -u [username] dap do? I tried to search for the dap option, but not sure exactly what this dap stand for and its functionality.
2
votes
1answer
41 views

How to redirect stderr to a file

While using nohup to put a command to run in background some of content appear in terminal. cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: ...
-1
votes
0answers
8 views

How to operate Debian in Android? [on hold]

I have a Micromax A311, Android Kitkat and I have installed Debian. But I don't know how to operate it I am new to this. Please help me out with the basics of this OS. Like when I open the root ...
-1
votes
0answers
18 views

sudo cannot be executed in a terminal (14.10) [duplicate]

i want to update true terminal but when i enter sudo apt-get update i get the following respond: sudo apt-get update [sudo] password for tjarco: E: Type 'sudo' is not known on line 2 in source list ...
153
votes
7answers
15k views

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.
4
votes
4answers
79 views

Terminal: Avoid repeating directory multiples times to reach files within

I have two files file1.txt , flie2.txt in a directory X. I want to copy those files to my current working directory which is far away from the directory X. so I end up with a command like: cp ...
0
votes
1answer
19 views

Is it possible to bring terminal (invoked from GUI) to the CLI terminal?

Due to graphics driver failure after dist-upgrading my "AMD powered" system I am unable to login to my account. The login screen is just bouncing back and not showing me the result of that upgrade ...
-1
votes
1answer
50 views

help with my script “path of shell” [on hold]

I usually php but also use bash to automate tasks on my server. I am trying to test this bash script but I'm not sure what "path of your shell" means. If anyone could help me with what i am meant to ...
3
votes
1answer
45 views

Why does shutdown from a remote terminal fail to power off my machine? [duplicate]

I have noticed that if I shutdown Ubuntu 14.04 from a remote terminal via ssh and running sudo shutdown now, the machine does not power off. If I use the GUI (shut down using Unity on the machine ...