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

learn more… | top users | synonyms (5)

3
votes
1answer
337 views

How do I delete all pop/rap music?

I have all the music stored in ~/Music and I want to delete all pop music (or it could be a different genre). I was thinking to look the song metadata to check and see if a song is pop, and then ...
0
votes
1answer
96 views

Add custom script to PATH

I know there are quite some answers about that, but still could not make my way around it. I read all this and tried to follow the example under System-wide environment variables (for my case of ...
1
vote
2answers
308 views

sed “Permission denied” and “No such file or directory” errors while building Clockwordmod

Whenever I execute the command build/tools/device/mkvendor.sh samsung_aegis2vzw /your/path/to/the/boot.img I get this as the output build/tools/device/mkvendor.sh: line 83: /sedcommand: ...
1
vote
0answers
32 views

how to encode a shell script so others can run it but they can not read it

I want to encode a script, so others can run that script to get relevant result but when they run command cat it should throw output in encoded format.
19
votes
4answers
20k views

How do I burn a DVD ISO using the terminal?

I have a DVD ISO file and i want to burn through the terminal . We have many command formats but i am unable to choose the best & safe one . so please give me a best command to burn the ISO ...
0
votes
1answer
52 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 ...
2
votes
1answer
4k views

Is there a way to force format write protected pendrive

My USB is a Sandisk Cruzer 8 GB drive with USB 2.0. It says it's write protected when I try to format it. Is there a way to force format it ? I try'd some of this ways : varun@varun-pc ~ $ sudo ...
3
votes
2answers
5k views

How can I play videos in a framebuffer?

If I don't want to install a GUI, just install a minimal Ubuntu amd64. Ok, but: I heard that I can still run e.g.: Firefox in a "framebuffer" (?), so I'm asking, that how can I run e.g.: a VLC media ...
0
votes
3answers
53 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 ...
2
votes
1answer
58 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 ...
50
votes
7answers
281k views

How to install Chrome browser properly via command line?

I am trying to install chrome browser via command line. I tried this: $ apt-cache search chrome browser The results show that the proper term is "chrome-browser," so I tried that: $ sudo apt-get ...
30
votes
4answers
2k views

Is the tilde, `~` considered as a relative path?

I'm trying to extract the different part of the Nvidia cuda library installer. I'm using the following command: mkdir ~/Downloads/nvidia_installers ./cuda_6.5.14_linux_64.run ...
3
votes
6answers
263 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 ...
1
vote
2answers
51 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
2answers
45 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
1answer
64 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 ...
3
votes
3answers
136 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 ...
6
votes
4answers
1k views

Draw a picture from command line in Ubuntu

I need to paint an image with text in the centre from 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
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
3answers
16k views

MATLAB R2014a on Ubuntu 14.04 Install Issue

I am trying to install MATLAB R2014a on Ubuntu 14.04 LTS. I download the .iso file (from my University) and mount it using Disk Image Mounter. Then I open a terminal, switch to the directory where ...
2
votes
3answers
13k views

Desktop directory not opening

I am completely new to Ubuntu or any distribution of linux altogether. While using the terminal, when i am in the /home/username directory the ls command shows Desktop and Download directories but the ...
3
votes
1answer
3k views

Komodo Edit: GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

when i try to run Komodo Edit 8.0 from terminal, it returns me this error: (process:9508): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed how can i fix this? note: ...
0
votes
1answer
26 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 ...
41
votes
4answers
20k views

How can I empty the trash using terminal?

I am not able to search trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?
1
vote
1answer
42 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. ...
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 ...
3
votes
3answers
11k views

How To Initiate VPN From Terminal

Under "System" > "Preferences" > "Network Connections" I can create PPTP VPNs. This works when I am at a GUI, I can click the network connections icon in the top right, and select a VPN from the list ...
1
vote
1answer
19 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
2
votes
3answers
252 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
19 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 ...
16
votes
3answers
10k views

Changing colors for user, host, directory information in terminal command prompt

Is it possible to change the colors in the command prompt for the user@computer, as well as the the current directory and command parts of the prompt display? I've already seen something like this ...
0
votes
1answer
35 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
59 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?
7
votes
4answers
7k views

Checking version of nodejs returns nothing

I'm trying to install node js onto Ubuntu so that I can run AngularJS. I'm not sure if I've installed it before so I ran sudo-apt get install node and once that is done I then run node --version but ...
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
44 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
25 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
23 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.
2
votes
1answer
4k views

Problem after Installation… “Minimal BASH like line editing is supported. […]” [duplicate]

I installed and then when I go to restart the computer, click on Ubuntu and then we show this: Minimal BASH like line editing is supported. for the first word, TAB lists possible command ...
1
vote
1answer
559 views

how to show GUI of ns2?

I have installed NS2 (network simulator 2.34) on my ubuntu 12.4. But when I execute the ns ns-simple.tcl in the terminal only the following messages have been shown without any GUI or schematic of my ...
0
votes
0answers
30 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 ...
11
votes
4answers
3k views

How to set the Default Browser from the Command Line?

Tried to set the default browser using the GUI tools but this didn't work overall. Is there a way to configure the system wide default browser from command line?
0
votes
0answers
21 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
votes
0answers
15 views

../bthoc: No such file or directory

I tried to execute a .tcl file on bluehoc2.0 on terminal but suddenly I got this error: atul@atul-Lenovo-G500:~/ns-allinone-2.35/ns-2.35/run$ ../bthoc first.tcl > first.nam bash: ../bthoc: No such ...
4
votes
2answers
313 views

How to rename file extension to lowercase?

I know this question has been asked (and answered) before, but it seems my situation is unique, because I cannot have any of the solution to work. Running, I need to rename all my photos from *.JPG ...
1
vote
2answers
60 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
4answers
27k views

How to run mysql command from terminal?

I have the following sql command which I usually run in phpmyadmin by selecting the database, then running it in the command window. DELETE FROM `wp_posts` WHERE `post_type` = "attachment" However ...
1
vote
2answers
3k views

Compile .less files into .css after every update

I have installed node, and npm. With npm I downloaded less. And when I do lessc styles.less styles.css -x -w in terminal, it compiles and compresses the code, but doesnt watch the file for ...
0
votes
1answer
19 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: ...