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

learn more… | top users | synonyms (6)

0
votes
1answer
24 views

How do I write an output of one command into a file? [duplicate]

Let's say we got a content of the following command in bash, which consists of several rows, and just one column: tacmd listsystems | grep -i $i | awk '{print $1}' This content is a list of offline ...
0
votes
0answers
16 views

how do I block other computers in LAN like 'net cut' in windows

i used 'net cut' in school to block other computers in LAN. How can I do the same in Ubuntu? I am looking for a program or terminal commands.
-1
votes
0answers
8 views

How to scroll, copy and paste in terminal using Bitnami Ubuntu VM [on hold]

I just install Bitnami RubyStack VM (non GUI). So first time using Ubuntu without GUI. So am missing lot of stuff like the mouse, scrolling through the terminal, copying or pasting text from the host ...
-2
votes
1answer
14 views

Mac Terminal - how to rename directory [on hold]

Misspelled last night and need to rename a drectory :) I created a direcoty and it misspelled. I would like to correct that.
0
votes
2answers
296 views

Why using the command `./myFile a` `a` is intepreted as an input parameter?

After compiling a program with g++ -o myFile myFile.cpp I used ./myFile & to execute the program. When using the ampersand, I understand the program is executing in the background. Can someone ...
0
votes
0answers
44 views

sudo apt-get install showing error

sudo apt-get install shows the following error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 2 not ...
3
votes
1answer
114 views

How do I show the git branch with colours in Bash prompt?

I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a ...
3
votes
2answers
44 views

Output of running commands in Terminal

I use this line to delete files find . -type f -iname \*.vi -delete and this line to move files find . -name "*.doc" -exec mv {} /path How can I see the process as it happen, I mean I don't ...
2
votes
3answers
64 views

How do I capture a screenshot of a window, and all the windows on top of it?

I'm using screenshots as regression tests for GUI software. Before deploying each new version, a series of automatic tasks is run against the old and the new version, screenshots are generated after ...
0
votes
0answers
14 views

Cannot change shell

I have been researching this for about an hour, and tried all the StackExchange answers I could find. I tried solutions from: Can't make ZSH the default shell ...
0
votes
0answers
28 views

Installing Eclipse

Good evening! I'm new with Linux since this week and I'm having an issue when downloading eclipse from this tutorial Indeed, I'm not able to extract Eclipse to /opt/ for global use When I'm doing ...
2
votes
3answers
62 views

ASCII source file checker

For official Ubuntu documentation where the source English files are in docbook xml, there is a requirement of ASCII only characters. We use a "checker" command line (see here). grep --color='auto' ...
0
votes
1answer
21 views

How do I substitute network addresses? [duplicate]

Right now I have a network server that I frequently have to SSH into. Instead of typing: ssh fox@192.168.2.24 I want to be able to say: ssh fox@srv And that it would SSH into the server at ...
-1
votes
1answer
38 views

Can't see terminal [on hold]

I am new to ubuntu and installed a theme, but now i cant see the terminal anymore. The font is black and the background is black. Is there anyway to fix this without using the terminal?
0
votes
0answers
13 views

How do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash?

I want know how do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash? I know oh-my-zsh, its directories navigation works perfectly via TAB completion, ...
0
votes
0answers
23 views

How do I cd into a webdav share (so that I can ls)

Objective is to generate a text file listing all folders/subfolders/files in a directory on a network share (a website I manage). I've successfully connected to the server using nautilus (using path ...
0
votes
0answers
17 views

How can I fix the following error? - “sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option ”

When I am trying to send a test mail from 'cacti' web-console, I am getting the following error in the logs as well as the web console while using 'sendmail' service. How can this be fixed? > ...
2
votes
0answers
31 views

how do I exit the purple command screen? [duplicate]

I switch my laptop on then it's intro is normal then suddenly it appears for me somestuff written and at the end written failed Then after 1 minute/lesser a list of commands or operating text appears ...
0
votes
0answers
11 views

How to remap keys to a mouse button

I want to remap the right Ctrl or right Alt key to a right mouse button.I used different tools like xev ,xmodmap and xdotool,butit didn't worked.
1
vote
1answer
21 views

unable to change owner for my drive

I am new to Ubuntu OS. I have noticed that once of my drive 480 GB drive partition is owned by root. I was trying to change the permission to user skorlam (my user name) but it says : ...
0
votes
0answers
20 views

Only COPY doesn't work on terminal [on hold]

I'm using RHEL5 64 bit, Gnome terminal 2.16.0. I can copy external text and paste it into the terminal, but i'm not able to copy anything from within the terminal. ctrl+shift+C doesn't work. ...
0
votes
1answer
23 views

mariadb-server syntax error

I am writing a bash script and having trouble with $PASSWORD. Can anyone please tell me the correct way to write sql lines in bash script? QUERY="GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost' ...
2
votes
1answer
31 views

“file /var/log/syslog is being edited” message in nano

To the best of my knowledge, I can view /var/log/syslog with the command sudo nano /var/log/syslog and successfully did so several times during a session; however, I was trying to search the log ...
3
votes
0answers
30 views

How to quickly get the reason for the most recent update of a package from the command-line?

Is there a command-line command I can run to quickly determine the reason for a package update? Ideally, a command that dumps a set of URLs to all of the relevant information. For example (it's a ...
0
votes
1answer
25 views

Prevent other users in same group to change my own file?

I have a share directory with another user, say Bill. The directory has permission as 775. I create my own file with the same permission in the directory. My file has owner and group as my user ...
2
votes
3answers
50 views

Print different output in the same csv file

I'm writing a script to analyse some data. I have several subset of files, and I would like to count the line from these files and write the result into a csv file. I'll try to do an example. I have ...
-2
votes
1answer
47 views

How can I shutdown multiple systems using terminal?

How can I shutdown multiple systems using the terminal? Also, is it possible to send a message to multiple computers before shutting them down? I cannot login to them via SSH, but all the computers ...
0
votes
0answers
20 views

Terminal Closing unexpectedly

I'm trying to install openjdk-7 in my ubuntu. but after running that command the terminal closed directly. This is happening every time when i run commands. Terminal close directly without any warning ...
0
votes
1answer
19 views

Interpreting !12 as string and not as terminal history

Using the sample command below in curl, it doesn't work as expected: curl -ik "http://localhost/index.php?username=parto&password=hello!23" I expect the parameters to be passed to include: ...
0
votes
1answer
32 views

Ubuntu 15: after installing and configuring java, echo $JAVA_Home is working, Java -version is not working

I have installed the oracle Java 8 and configure it. cmd-> echo $JAVA_HOME /usr/lib/jvm/oracle_jdk8 cmd-> echo $PATH ...
-4
votes
1answer
44 views

How do I generate the range of strings “9811@000000#” - “9811@999999#” using `crunch`?

How do I generate the following using crunch? 9811@000000# 9811@000001# 9811@000002# 9811@000003# ... 9811@999999# I tried this but it failed: crunch 12 12 1234567890 -t '9811@'@@@@@@# -l ...
1
vote
2answers
53 views

How to check if script was executed via command line or double-clicked?

How can I determine if a script was invoked from a command line or via double-click in file manager (Nautilis)? If the former, I still have a command prompt when the script finishes, but if it was ...
0
votes
0answers
10 views

libperl5.20 rxvt-unicode-256color Ubuntu 14

I want to install new version of rxvt-unicode-256color (with clipboard suppport), but on my system have perl 5.18 which is not compatible with new version of rxvt. I'm tried to use perlbrew. But ...
-4
votes
1answer
29 views

**…** what are these dots meaning? [on hold]

>>> num=int(input("enter the number:")) enter the number:24 >>> if(number%2==0): **...** print("the number is even") File "<stdin>", line 2 print("the number is even") ...
1
vote
2answers
86 views

How to run a script from terminal [duplicate]

Hi I would like to run a script from the terminal, is there anyway to do that? For example : if I have a python script I would normally run it with this command : python script.py How can I run ...
-1
votes
1answer
42 views

How to root my lenovo a6010 smartphone using ubuntu PC? [on hold]

I have lenovo a6010 smartphone with android lollipop. I want to root my smartphone. I have ubuntu 15.10 and no access to any windows computer I have installed adb and fastboot, update adb and write ...
3
votes
2answers
43 views

Replace first column on a file

I have the following file. 101; John Bauer; 811-7780831; 102; Anthony Higgins; 844-4317627; 102; Anthony Higgins; 844-4317627; 103; Arnold Sipes; 866-4343123; 104; Donald Quinn; ...
1
vote
1answer
30 views

Does the 'at' command require a full path to the script's name?

I'm running Ubuntu 14.04 LTS. Sometimes I use the at command to run a Bash script one time like this: at -f goscript 8:00pm (Execs need me to run a report at a time not in crontab.) Is that the ...
-1
votes
1answer
25 views

Print a String on Its Own Place in Unix Shell [on hold]

I'm trying to print contents of a text file(actually its strings). I'm familiar with some commands like grep, awk, sed; I forcibly want to echo string on its original place in file and I couldn't. You ...
1
vote
3answers
37 views

how to give each terminal tab its own title?

I see that there are ways to set the tabs title through the CLI, but how can I give each tab its own "title"? top pine git by default, gnome-terminal seems to show ...
7
votes
5answers
369 views

Bash - Check directory for files against list of partial file names

I have a server which receives a file per client each day into a directory. The filenames are constructed as follows: uuid_datestring_other-data For example: ...
-1
votes
1answer
34 views

I found in a test “navigate to the bin directory, make a file of entries i find there and store it in your personal directory” [on hold]

How do i get to bin because every time i try in terminal it says there no such file or directory as bin, ive tried cd bin, cd ..bin cd ../bin. I want to point out i have no idea what im doing and ...
0
votes
2answers
43 views

How do I change a variable of a background function?

I have been working on a script for my father that manages several tasks through a script with many functions that chain together (organization purposes). This script relies entirely on zenity for all ...
0
votes
0answers
10 views

Upstart Ruby version issue

I am trying to get Upstart to fire up Sidekiq (https://github.com/mperham/sidekiq/wiki/Deploying-to-Ubuntu). I can manually start it but the same command fails in the Upstart script. I have piped ...
0
votes
1answer
29 views

Bash script not running [duplicate]

So I'm pretty new to ubuntu and I'm trying to make a simple bash script that all it does is running Rubymine so I don't have to write it down in the command line everytime and also so I can have it on ...
0
votes
0answers
15 views

Configuring Postfix gives error E: The package lists or status file could not be parsed or opened [duplicate]

I'm trying to configure postfix mail server on Linux mint 17.2 When I try to execute following command aptitude install postfix libsasl2 ca-certificate libsasl2-modules This command gives me error ...
0
votes
0answers
26 views

Bash terminal : Revert change of 'interrrupt' (CTRL-C) shorcut key

I changed something on my system/terminal to change the shorcut key for interrupt the process in my bash terminal, I switched from CTRL+C to CTRL+J. However, stty -a gives: $ stty -a speed 38400 ...
-1
votes
1answer
26 views

gnome-terminal --disable-factory support problem

gnome-terminal --tab --title="700" --disable-factory -e Failed to parse arguments: Option "--disable-factory" is no longer supported in this version of gnome-terminal. i have gnome3 Any ...
0
votes
0answers
14 views

setpath in .sh script is not working [duplicate]

This is my .sh script. #!/bin/bash export PATH=$PATH:/home/srilm-1.7.1/bin When I am using this script file I could not add the environment variable path for temporary purpose(though the script is ...
0
votes
1answer
18 views

Disable 'record file and application usage' via command line

I am creating an install script. I would like to know how to disable the recent files appearing in the unity dash. I can disable them manually via settings -> security & privacy -> files ...