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

learn more… | top users | synonyms (5)

4
votes
5answers
21k views

ifconfig : Command 'ifconfig' is available in '/sbin/ifconfig'

My question is related to another open question. My echo $PATH gives me an output which is like ...
1
vote
1answer
23 views

Set default font-size in terminal

I just got myself a new 27 inch monitor and it is great. I can view things at a distance. However, when I launch the terminal, I cannot read things at a distance. And I want to increase the default ...
-1
votes
0answers
13 views

Ubuntu command line system installation [duplicate]

Anybody know how to install ubuntu 14.04 command line system from usb?
0
votes
1answer
115 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 ...
7
votes
4answers
538 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, ...
0
votes
0answers
20 views

System command QML runs executing only in Desktop Kit

Following another thread Run system commands from QML App, I wrote a program that calls command arecord. I only replaced some lines in Main.qml: ... onClicked: { var lista1 = ...
2
votes
1answer
100 views

Shell script with select command to show a list of files

I've written the attached bstls.sh shell script which uses the command select to choose the subfolder or file in a folder passed as argument on which execute the ls command. #! /bin/bash #Personal ...
-4
votes
0answers
29 views

chkrootkit result, am surely hacked huh? [on hold]

/usr/lib/pymodules/python2.7/.path /usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/.noinit /usr/lib/jvm/.java-7-oracle.jinfo /usr/lib/jvm/java-7-oracle/lib/visualvm/visualvm/.lastModified ...
1
vote
1answer
42 views

Printing from command line

Please can anybody explain what exactly these commands and options do: find /home/mike/Duck/ -type f -iname '*.txt' -print 0 | while IFS= read -r -d '' f; do lpr "$f" && mv "$f" ...
1
vote
0answers
28 views

Pixelated display after run “sensors-detect” [closed]

I have a Lenovo y50-17 laptop with Mint linux installed. I started by doing sensors-detect, which I've done on computers in the past. I know I should have stuck with the defaults, but I didn't. ...
0
votes
0answers
22 views

Change lock screen background through command line

I'm interested in changing my lock screen background through the command line. I'm hoping to be able to do it such that, after I run a series of commands, the next time it locks that image comes up. ...
61
votes
9answers
82k views

What's a command line way to find large files/directories to remove and free up space?

Looking for a series of commands that will show me the largest files on a drive.
0
votes
0answers
42 views

What are the things to be learnt in Ubuntu? [duplicate]

I am inspired by Ubuntu, and want to learn it, how can this be possible? Besides, what things do I have to learn in Ubuntu? And how are the specified tasks performed through the commands in the ...
0
votes
0answers
18 views

Ubuntu sometimes freeze when changing from the CLI to the GUI

I am computing stuff with the GNU Octave in the terminal and want to check on its progress from time to time. Well, so why does my laptop (W650SZ) sometimes freeze when I change between the terminal ( ...
1
vote
2answers
16 views

How do I use tree to show the path to filenames containing a particular string?

I have got a rather large file system, and let's say that I want to find all the files and directories in a certain area of my file system which contain the String ActionListeener, and to do this I ...
0
votes
0answers
16 views

How would I be able to access the ppp settings through terminal [on hold]

I'm trying to open the ppp settings in terminal so I can try connecting my dreamcast through the DC to PC server and I got up to the point where I need to open the settings and each time I put Sudo ...
4
votes
1answer
72 views

How to execute a sudo script with double click

I have this script to shutdown my system after 30 seconds. I want to run this script by double clicking it (that option I changed in nautilus). This is the content of my script #!/bin/bash shutdown ...
0
votes
0answers
47 views

How to add and pass system password as a variable in a script

I have a script which asks for system/login password and pass that password to further processing. This is the gist of programm by which I am executing my script. read -s -p "Password: " password1 ...
2
votes
1answer
27 views

Change Folder/File Permissions for HIDDEN Subdirectories

This question is very similar to Change Folder & File Permissions for all Subdirectories , which worked for me completely when the folders weren't hidden. However, I have a hidden folder (call it ...
0
votes
1answer
30 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 then clause is executed, across multiple runs of the same script. eg: if [condition] then Some code; ...
2
votes
0answers
40 views

How to add flags and/or arguments to a command in the 'sudoers' file

How would I add flags and/or arguments to allow users in the sudoers file to run certain parts of commands, such as only allowing a user to run sudo rm and not sudo rm -rf? I am using 14.04. # # ...
127
votes
8answers
6k 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 ...
39
votes
5answers
45k views

How to add Android Studio to the launcher?

I'm trying to install the android studio so that I can launch it from a launcher instead of via terminal. Can someone give specific instructions please? I think this is something to do with the ...
0
votes
0answers
24 views

How do I download an email attachment in ubuntu terminal

So I'm new to linux still learning though. I've managed to set up a server to host a website and teamspeak server. The website (forums) automatically sends out emails if needed however I can't seem to ...
2
votes
1answer
123 views

pdsh works well standalone, but doesn't work in script

I am trying to install hadoop via script on my small cluster [introduced in the book: Apache Hadoop Yarn]. I have set up ssh connect without password, and pdsh&pdcp are all fine if I use it alone. ...
0
votes
1answer
37 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
0answers
7 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 ...
-1
votes
0answers
19 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, ...
2
votes
2answers
62 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 ...
3
votes
2answers
126 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 ...
7
votes
3answers
23k views

How to enable/disable mobile broadband from terminal?

I use ZTE USB Modem on Natty Narwhal. Every thing works fine but sometimes it get disconnected. I want to write Shell script that reconnects mobile broadband if it is disconnected or the received data ...
0
votes
2answers
46 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
2answers
83 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 ...
3
votes
6answers
306 views

Use bash to extract number from between square brackets

My file looks like this: [581]((((((((501:0.00024264,451:0.00024264):0.000316197,310:0.000558837):0.00857295,((589:0.000409158,538:0.000409158):0.000658084,207:0.00106724 ...
1
vote
2answers
46 views

parsing out in bash

my file looks like this // [297]((((21:0.125204,20:0.125204):0.00994299,(28:0.0790047,(7:0.0146105,5:0.0146105):0.0643943):0.0561423):0 segsites: positions: 1 2 4 6 9 10 45 67 78 89 ...
2
votes
4answers
118 views

Parse lines with specific pattern out of file

I have a file that looks roughly like this : [25]:0.00843832,469:0.0109533):0.00657864,((((872:0.00120503,((980:0.0001 [29]:((962:0.000580339,930:0.000580339):0.00543993 ...
-3
votes
1answer
14 views

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

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
votes
2answers
27 views

Time of execution of an executable in ubuntu console [closed]

I would like to get the time to execute an executable in ubuntu console... but i dont know how to get that.
1
vote
1answer
40 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 ...
6
votes
1answer
661 views

Check PulseAudio sink volume

Is there any command to check the PulseAudio sinks volume. Means I want display PulseAudio volume of particular sinks in % i.e. 50% I already set the volume using pactl set-sinks-volume 1 50% ...
15
votes
3answers
27k views

how to see time stamps in bash history?

Is there any way I can see at what time the commands were executed from the bash history ? we can see the order but is there any way I can get the time also ? Bottom-Line : Execution time in the Bash ...
1
vote
2answers
25 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 ...
8
votes
1answer
766 views

How to change file ownership when chown says “invalid user: ‘–R'”?

ubuntu64@ubuntu:/$ sudo chown –R hduser:hadoop mongodbdata chown: invalid user: ‘–R' When I try to change the ownership of the file, I am just getting invalid user: '-R' error.
8
votes
2answers
9k views

Command to split a text file according to number of lines

The situation: I have a text file which is about 1.5GB containing about 4000000 lines. I want to import this to Libreoffice calc and as u know you can't import this huge file with large number of ...
-1
votes
0answers
12 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 ...
3
votes
2answers
1k views

How can I remove one of the two MATE panels without using the GUI?

On a default installation MATE sets up two panels (top and bottom), I'd like to have the top panel removed using mateconftool-2 or another tool using the command line (Terminal). I can't find how to ...
0
votes
2answers
21 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
40 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 ?
37
votes
1answer
31k views

How to remove an alias?

I want to remove gs alias from my PC. When type gs it will open the Ghost Script. But I checked everywhere in the home directory .alias .bash_aliases .bashrc I also overwrite the gs with my custom ...
0
votes
2answers
77 views

Using script /bin/sh -c gnome-terminal to open 4 Terminal Windows at Startup

I'm trying to open 4 Terminal Windows at startup and I'm using the script below to do so. However, it's only opening 1 terminal Window instead of 4. /bin/sh -c gnome-terminal; /bin/sh -c ...