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

learn more… | top users | synonyms (5)

0
votes
2answers
44 views

Terminal Runs SSH Every Time

I have no idea how this happened. I was messing with SSH tunneling into my Raspberry Pi (with no problems) and since then, every time I open terminal on my Ubuntu machine, it tries to ssh into the ...
0
votes
1answer
54 views

Options and commands

I can see there are a lot of command line options in Ubuntu. For example: the -l and -v options in sudo fdisk -l and sudo shred /dev/sdb1 -v . Does anyone know where I can find all of the options ...
0
votes
3answers
59 views

Get all file paths from a certain point and pipe to text file

If my terminal is currently in home/stuff/stuff2 and there are more folders and files under stuff2, how can I launch a command to get the file names of all the files and folders from this directory ...
1
vote
2answers
77 views

How to run a shell script with a file argument located in the same directory at the script? [duplicate]

I would like to run a command with an argument placed in the same directory as the shell script, from a shell script. example: my_installer.sh: #!/bin/sh sudo dpkg -i --someflags=abcd blah.deb ...
0
votes
1answer
74 views

Setting up wifi / Installing b43 driver

I'm on a 2009 macbook pro dual boot. When booting linux, I get a message saying I don't have the wireless driver I need. I tried following the instructions from the website shown, but after I execute ...
2
votes
1answer
69 views

Rename all files in subdirecories

I am having a problem writing a script for mass renaming of files in subdirectories. I have a folder with multiple subfolders, and those subfolders have multiple files that I need to rename. This is ...
3
votes
6answers
289 views

rename multiple files with delimiters

How could I rename multiple files like, IonXpress_049.T11014.R_2014_11_13_11_26_35_user_PR2-41-Pooling0026_3140_13112014.bam ...
0
votes
1answer
46 views

Terminal error (some typo somewhere?) with .bashrc disables all aliases etc

I can't use any of my aliases or custom defined variables in bash. The error when I open the terminal is immediately: : command not found bash: /home/khaverim7/.bashrc: line 6: syntax error near ...
0
votes
2answers
47 views

Help needed to identify/remove randomly named “ghost” folder in home directory

So, I found a folder called "Yfmo_1BrUs" right in my home directory and I do not know how it got there (meaning which application created it). The name is weird but gives a clue that it was ...
0
votes
0answers
21 views

Configure server machine

I have a server machine. Number of networks and sub-networks are connected through it. I want to configure my server machine like, every client machine can install operating system through network ...
0
votes
0answers
24 views

Open file with correct program, in terminal, based on extension [duplicate]

Is there any way to automatically open a file with the correct program, when using the terminal? Something similar with double clicking a file in GUI. So for example having a pdf file, not need to ...
6
votes
4answers
1k views

How to draw a picture with text in the center of that via command-line?

I need to paint an image with text in the center via command-line to further put into the video. A simple yellow text on black background. I tried FFmpeg way: ffmpeg -loop 1 -r 1 -i b.png -b:v 1M ...
0
votes
0answers
35 views

CUPS error - can't print from command line LP but can through applications

If I try to command line print any file using lp or lpr, I get a "no pages found" error in CUPS. But if I print from any application (text editor etc) it prints no problem. A filter error for ...
1
vote
1answer
33 views

kill popup or dialog box using command line

I wonder is there a way to kill popup or dialog box by using command line? Actually I want to kill all the popup as shown in attached picture
0
votes
1answer
36 views

What damage will an accidental move of /bin do?

Whilst testing a little bash script I've been writing, a little finger trouble led to a directory name variable not being passed in, resulting in a move command being applied to /* . /boot was moved ...
1
vote
1answer
156 views

Format external hard drive to ext4 in command line [duplicate]

How do you format an external hard drive to ext4 via the command line in ubuntu?
1
vote
1answer
43 views

Recover accidentally deleted function that is loaded in bash

I was editing my .bashrc file (actually a file sourced in there) and added a bunch of functions. I track my home directory in git, but I accidentally did a hard reset before even staging the changes. ...
2
votes
3answers
284 views

Using Terminal commands in Ubuntu [duplicate]

Since I am a new Ubuntu user and I am not familiar with commands and Terminal is it possible to use Ubuntu like other OS without messing around with command lines, just installing apps and using them ...
0
votes
0answers
10 views

Passing arguments while running a build

I have a folder with source code files in it. (.hh and .cc files). I modified one of the .hh file as below, if(a>='number1' and a<='number2') { ..... } So every time I change the number1 and ...
1
vote
1answer
59 views

desktop launcher for ssh terminal

I have 3 ssh terminals defined for 3 headless systems on my lan. I can launch them from a host terminal, but I would prefer to create a desktop file for each, so that I could put each one in the ...
1
vote
2answers
27 views

Making disk partitions

How can I make an extended disk partition that takes up the rest of the space on my vm, through the command line?
1
vote
1answer
25 views

Umask on the command line

Where can I go to set a umask for any new users I create through the command line? I think it's through the /etc/.profile but I'm not sure.
0
votes
0answers
23 views

CLI: Defoult monitor and it's resolution

To keep long story short: I have 3 monitors plugged into my computer. Main (1920x1080) via DVI, secondary (1440x900) via D-sub and a TV (720p) via HDMI. I want to have CLI (and possibly GRUB) on the ...
1
vote
0answers
24 views

Advanced CLI interface [closed]

I am not "new" to Linux but I am not an advanced user. I use Terminal when I can but forget a lot of the commands for advanced usage. I have newish machines but would like to run Linux in more of a ...
1
vote
2answers
61 views

Open directory from ls result

I have a problem, I would like to pipe ls and cd together. I create shell pipe like: cesta = ls -lat | awk 'NR==2 {print $8"/"}' cd $cesta But it doesn't work. Could you help me. And I didn't ...
-3
votes
1answer
36 views

List all files that begin with letter a to m followed by three characters in terminal [closed]

List all files that begin with letter a to m followed by three characters in terminal I want to ls file but from a to m by followed three letter
-1
votes
2answers
56 views

Shell Script to check for subdirectory [closed]

A. I used the following code to get the modified date of a file. But this is also selecting the subdirectories and thus returning an error. How can I fix this? for file in $1/*; do echo `stat ...
0
votes
2answers
37 views

Last command and execution time

I'd like to get the last command used and its execution time. This will be used as part of an alias for notification.
0
votes
1answer
90 views

notify-send and terminal command

Let's use sudo apt-get install linux as an example. Here is the notify send command: notify-send -i terminal Bash "execution complete" How could I substitute 'bash' with the entire sudo command? ...
0
votes
1answer
60 views

Run script on shell login for all users

I have a script named "als" that parses the aliases in a user's .bashrc file that I'd like to run for any user logging in via SSH. This should display similar to a Message of the day (MOTD) banner. ...
0
votes
1answer
21 views

Bash error when installing cascade server

I downloaded the .bin package for cascade server 7.2.2 from their site. I am trying to install the 64bit linux package on a 64bit Ubuntu 14.04 Server VM. I am logged in as root. First I did: ...
1
vote
2answers
105 views

Shell script file (.sh) does not run, and throws an error

I am new to linux, and I have a shell script (.sh) file I on my Desktop that I want to run. These are the steps that I did: This is the content of the test.sh file on my Desktop: #!bin/bash ...
0
votes
1answer
28 views

show limited git diff status in ls, only in git directories

This might be an odd problem, but I would like to override the behavior of ls when in a git directory. I want to extract some diff statistics from the last commit, and append it to the bottom of the ...
0
votes
0answers
34 views

pidgin not opening : inconsistency detected in gnome ubuntu 14.04

After a fresh install of ubuntu 14.04 LTS, and installation of pidgin internet messenger, I get the following error message, while running pidgin on terminal: What is the problem here? How can I ...
0
votes
1answer
62 views

What is the difference between running a certain command in terminal and a Thunar action command that opens a terminal and runs the first command?

What I mean is that on several occasions I was able to successfully run a command in a terminal window opened in a certain folder, but when using a command (run not directly from terminal, but from a ...
2
votes
1answer
141 views

Cant read variable from user input in bash

I try to run script of my friend and I get this error when try to input some variable: : bad variable nameead: reload : not foundsh: 10: bin/reload.sh: bin/reload.sh: 11: bin/reload.sh: Syntax ...
0
votes
0answers
13 views

Applying an effect to camorama throught command line

My first question here : I'm doing some experiments here on my xubuntu 14.04 laptop with repositories' package of camorama. I would like to set up an automatism to launch automaticaly camorama when ...
0
votes
1answer
35 views

Using Python Interactively as a CLI calculator

I'm running Ubuntu 14.10 & I'm totally new to Python. I'm aware that Python can be used as a CLI type calculator in interactive mode, a bit like the bc command in Bash. I have two questions: 1) ...
3
votes
3answers
190 views

Convert all .ape files to .flac in different subfolders

I was trying to convert some .ape files to .flac files using avconv on command line; obviously, avconv is not the main point here; its syntax is pretty straightforward, avconv -i inputApeFile.ape ...
0
votes
1answer
52 views

Use find command but exclude certain directories [closed]

I am trying to run the make command, but it says make: *** No targets specified and no makefile found. Stop. After doing some research, it seems that the error is because I need to run ./configure ...
5
votes
3answers
326 views

How can I (from CLI) assign multiple IP addresses to one interface?

On my server I want to assign several IP addresses to one NIC, but without using the deprecated ifconfig or the obsolete "alias" notation (like eth0:0) in /etc/network/interfaces because in IP ...
0
votes
1answer
59 views

cat /proc/sys/net/ipv4/ip_local_port_range

Please, i'd like to know waht does this command: cat /proc/sys/net/ipv4/ip_local_port_range Please, have you an idea about: cat /proc/sys/net/ipv4/ip_local_port_range in cygwin ? Thanks a ...
0
votes
1answer
42 views

Need audio player for bash script

I'm working on a small audiovisual project, and I'm writing an auxiliary bash script to control some stuff. However, I need to play a generated audio file for a few seconds before stopping it, the ...
0
votes
1answer
41 views

How do I execute a command on a specific screen?

I am currently setting up a server and there are different programs I want to run in the background, while still being able to look at the console of each program on demand. So I'm trying to ...
0
votes
1answer
67 views

How to download all files with WGET, including .java files.

When I was trying to mirror a website with Java files, XML files, ActionScript files, etc, wget only seems to download the commonly known files such as xml, txt, etc. It seems to not be downloading ...
0
votes
2answers
44 views

Quick question about users in my computer [duplicate]

I was taking a look for questions, and I started to read this thread. One of the answers says to use the command cat /etc/passwd|grep '/bin/bash', to test if there's other users in the computer. For ...
0
votes
0answers
24 views

Creating an extended partition command line

How can I make an extended partition using all remaining free space on the disk? From there I want to make a NTFS file system with cluster size of 65536. as well as a VFAT file system with FAT ...
0
votes
1answer
20 views

System resources process questions

Is there a way you can find the percentage of CPU time used by a process on the command line? Also I want to find out what the cpu time is by a certain process as well as the percentage of memory ...
0
votes
1answer
40 views

Terminal doesn't close with “exit” command after upgrade to 14.10

Upgrading from Ubuntu 14.04LTS to Ubuntu 14.10, the upgrade seems to work OK but using "exit" in gnome terminal just prints exit on the next line and comes back with the command line prompt. This ...
2
votes
4answers
384 views

Comparing two text files

I have 2 big csv files, file1.csv which looks like this 1,2,3,4 1,4,5,6 1,7,8,9 1,11,13,17 file2.csv which looks like this 1,2,3,4 1,7,8,9 2,4,9,10 13,14,17,18 These are just random numbers that ...