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

learn more… | top users | synonyms (5)

4
votes
3answers
30 views

stdin/stdout- How to send a file as an input to another file?

Through the command shell we can redirect the three standard filestreams so that we can get input from either a file or another command instead of from our keyboard, and we can write output and errors ...
0
votes
1answer
13 views

I can't alias def $?=“type $? || echo 'varible not defined' ”

I want to create an alias called def that takes a varible and checks if it's defined. If it isn't def prints 'the varible is not defined.
0
votes
0answers
4 views

How to install Idea 3GNet Setter in Linux

I've bought an Idea 3G Net Setter and they have provided "Linux driver" and these are the installation details: 2 Driver installation 2.1 Launch command line By using “ALT+F2”, input” ...
0
votes
0answers
26 views

bash: /etc/bash.bashrc: Permission denied I have no name!@lappyname:~$

During resolving another problem I run this command : pkexec chmod 0440 /etc/sudoers pkexec chmod 0440 /etc/sudoers.d/README mount -o remount,rw / Than after error occurs and after reopen the ...
1
vote
2answers
37 views

Reset History inside a bash script

I want to make a bash script that clears the history i.e. works similarly as the command history -c So I started with the following code:- #!/bin/bash history #displaying history history -c ...
0
votes
0answers
18 views

How to convert video using HandBrake?

I have FansConvert site that convert anime and movie into mobile device format, especially 3gp and mp4. I made it to help people who don't have a computer, or are not able to watch on the computer. ...
1
vote
1answer
49 views

How to retrive root password, when someone has changed it? [on hold]

The fact that, In my Lab, one of the user who is in sodoers list has changed the root password, is there any way to reveal the password he has set? I know how to change it by editing from GRUB but ...
0
votes
1answer
7 views

Formatting an encrypted partition

I was looking at some guides about encrypting partions and decide to try it out with a pendrive. Everything went good until the part of formatting the drive. I'm not an expert working around with ...
0
votes
0answers
8 views

Problems installing Betty in zsh

I tried to install Betty in zsh like that: cd ~ && git clone https://github.com/pickhardt/betty echo "alias betty=\"~/betty/main.rb\"" >> ~/.zshrc source ~/.zshrc I installed her in ...
2
votes
1answer
30 views

Where are key press scripts stored?

When I hit the Volume Up multimedia key, I receive the following output from xev. KeyRelease event, serial 38, synthetic NO, window 0x4200001, root 0x91, subw 0x0, time 100844850, (1037,434), ...
0
votes
0answers
9 views

How to remove fontconfig warnings when running gedit from terminal? [duplicate]

When I was working on a C program with Gedit in Ubuntu 12.04, font configuration warnings were shown in the terminal. What should I do to remove these warnings? shayna@shayna-Vostro-3446:~$ gedit ...
3
votes
2answers
135 views

How to delete to trash via terminal (with mv command)? [duplicate]

I would like to know how can I delete a file and/or move it to trash with mv command? I know where the trash located is, then I tried with this commands to move it to trash: mv somefile ...
3
votes
2answers
57 views

How to compute date for touch -t

How to create date type in bash? what this date mean? '1803141400' touch -t 1803141400 test1 test2 How can I compute time?
0
votes
0answers
15 views

key word remap enter carriage return vim command line

In my .vimrc file I have :imap ii <CR> which allows me to hit ii for enter/carriage return in vim but now i would like to set that same configuration in my .inputrc so that i can just hit ...
4
votes
1answer
46 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
0
votes
1answer
7 views

Error setting up cscope 15.8 on when creating file cscope.files

I'm running native ubuntu 14.04. I'm trying to install cscope-15.8a. When I run the command find . -name "*.c" -o -name .cpp" -o -name ".h" -o -name "*.hpp" > cscope.files it changes the prompt ...
1
vote
2answers
32 views

How to run .sh through terminal without using Nautilus Ubuntu 14.04 [duplicate]

I have an .sh file that looks like #!bin/bash exec /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/ java java -jar /home/me/myfolder/my.jar I've made this file executable and it works fine when in the ...
11
votes
6answers
799 views

Run a program X times

How do I execute a program X times in the terminal? I read that I have to do a bin/bash txt, but I don't know how to execute this X times.
1
vote
2answers
40 views

How do I make a Windows-style cls script for Ubuntu? [duplicate]

How do I make a cls-type command for Ubuntu/Linux that will not only clear the terminal emulator screen, but also make it so you can't scroll up to see the stuff you cleared? Note that the clear ...
3
votes
3answers
74 views

How to differentiate command from the output using color

I have to differentiate command from the output using color like this $ cat file-name (this should be in some color say like red) some test in file OUTPUT (this output should be in some other color ...
0
votes
0answers
32 views

what does ~/<directoryname> do? [duplicate]

I had to use ~/ffmpeg_sources while installing. When I used it, it navigates me to the ffmpeg_sources directory. What does ~/ actually do?
1
vote
3answers
33 views

Cannot find location of permanent aliases.

A couple of months ago, I made a few permanent aliases for my bash shell on Ubuntu 14.04. They are actively making my life easier, and I would like to add a couple more to the list, but I cannot find ...
1
vote
3answers
48 views

Locate files matching mimetype in a directory recursively via command line

I wish to get a list of all files in a project folder [recursively] that are image files. Unfortunately Google was unable to help me here. If possible, the use of current system's mimetypes is ...
3
votes
1answer
78 views

How to send an email using command line?

Here's what I have: cat UserReport.txt | mail -s "TestSubject" "nospam@gmail.com" It's a small file, much smaller than a picture so it should send almost instantly. Though I receive nothing. I ...
1
vote
0answers
8 views

problem with remote printing using rsh

This is really a unix/linux problem than an ubuntuproblem, so perhaps this is the wrong forum, but I'll post it anyway. when I type the commandline command rsh -l <myName> <IPADDRESS> ...
0
votes
1answer
26 views

How to have git and virtualenv aware colors in terminal?

I am watching "Building Web APIs with Flask" video on Oreilly from Miguel Grinberg. His terminal is colorful and shows different colors for virtualenv name and git branch name. I want to have the same ...
0
votes
1answer
31 views

How to run bootinfoscript from the GParted liveCD?

How to run bootinfoscript from the GParted live CD? Windows 7 on internal hard drive, and Linux on an external USB SSD drive (Linux not loaded).
0
votes
0answers
9 views

Byobu changing tabs

When I'm sharing the same byobu session with multiple users, sometimes when I change the tab, the other user is automatically changed to my new tab, and sometimes he has to do it manually. How can I ...
1
vote
1answer
17 views

Error detected while processing /home/kiran/.vimrc:

I m getting an error message when I am opening vi editor. the error message is here. kiran@kiran-HP:~/Desktop$ vi hello.c Error detected while processing /home/kiran/.vimrc: line 1: E481: No range ...
0
votes
1answer
15 views

Resizing second drive partition

I have struggled with my problem for days, and have tried to find different kind of solutions, but now I decided to ask. My primary problem is too small sda1 partition which is 243M and 100% full. ...
0
votes
1answer
17 views

How to make terminal one desktop and unity another

I am running Ubuntu 14.10 on my compaq presario laptop with a dual monitor setup. I would like to have unity on my larger screen and a full screen terminal on the laptop screen. Is this possible?
3
votes
6answers
291 views

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all ...
0
votes
0answers
28 views

Mouse and video freezes. Fixed by CTRL-ALT-F6 and then CTRL-ALT-F7

Every hour or so the mouse and video freezes. I do CTRL-ALT-F6 and then CTRL-ALT-F7 and then it works again. What is wrong? And how can I stop the mouse from freezing?
0
votes
1answer
18 views

what is meant by bash: export: `/home/jntuacep/venky/ns-allinone-2.35/lib': not a valid identifier

my .bashrc file contains: # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running ...
1
vote
1answer
67 views

Can't install GNOME shell extensions? [duplicate]

New to Ubuntu. When I tried to get the GNOME user theme extension from the website, it would not load the button to install. So I tried the command in the terminal sudo apt-get install ...
1
vote
1answer
35 views

Shell Script Problem

I decided to make a shell script for basic nmap scanning so I did it like this : #!/bin/bash sudo apt-get install nmap printf "enter the name of site to do basic scan on >>>" read NAME ...
8
votes
4answers
690 views

How can I repeat the content of a file n times?

I'm trying to benchmark to compare two different ways of processing a file. I have a small amount of input data but in order to get good comparisons, I need to repeat the tests a number of times. ...
0
votes
2answers
44 views

Bash error on opening the terminal

Whenever I open terminal in Ubuntu I get the following bash and I don't know how to solve it. I need a solution as soon as possible: bash: ...
0
votes
0answers
26 views

What is “*** buffer overflow detected ***: ./enc2ly terminated” caused by? [closed]

Please define the error/ Problem with enc2ly jim@Fedora:/usr/local/bin$ ./enc2ly '/home/jim/Music/ENC/FF-MarchingBandEncore /FF-4MarchingBand.enc' ==> ...
0
votes
3answers
182 views

An Ubuntu command bricked my sytem?

I freshly installed Ubuntu on my computer a few days ago to run an exclusive program. I finished with it, and I was about to format the drive to reinstall Windows. However, my little brother wanted to ...
0
votes
1answer
17 views

Cannot Execute program binary go-enc2ly

I've been Attempting to execute a "go-enc2ly", which is command line way of converting .enc encore files into lilypond format. I've installed the go complier suite, ran the commands: mkdir /tmp/go ...
0
votes
0answers
21 views

Unzip (Info-ZIP) Permissions

Is there a way to invoke unzip (from Info-ZIP) without having it restore the permissions stored in the zip file? The zip files I'm restoring are enormous, so going back over the contents with ...
0
votes
0answers
18 views

Make the CTRL and Super/CMD keys behave like on OS X

I am a longtime OS X user who is using Ubuntu at work. While I like Ubuntu very much, something that I really miss is the behavior of the CTRL & CMD (i.e. Super) keys on OS X: CMD/Super is used ...
0
votes
0answers
34 views

File lost when move file over network via terminal

Ubuntu version = 12.04 LTS System memory = 7GB Free of 16GB Running on RAID 1+0 I'm trying to move files from local drive to a mounted CIFS folder (shared by a Windows 7 Pro SP1 PC), using this ...
1
vote
1answer
59 views

Bash script for multiple tabs program running

I have the following bash script code to open multiple session of a python script with different input argument in different terminal tabs. #!/bin/bash cd /home/me/experiment tab=" ...
-1
votes
0answers
13 views

how to connect to wifi using terminal [duplicate]

i wanted to connect to wifi using terminal but am facing little problem ....i used the command "iwconfig wlan0 essid key " but it said that it needed permissions ...so i included the sudo command ...
-1
votes
1answer
32 views

How To Zip An Archive Without Including Parent Directory

Help Please I want to zip many folders and their directory tree is like so V- something.txt folder folder g.jpg h.jar Now Whenever i try to zip it it ends creating a zip archive with the v ...
0
votes
2answers
59 views

How do I combine hundreds of folders using command line

I have 535 folders ("recup_dir.1", "recup_dir.2", ..., "recup_dir.535") and I want to merge (combine?) the contents of those folders into a single folder (lets say a folder named "recup_dir"). Some ...
0
votes
1answer
33 views

How to modify program search path?

I am new to Linux and Ubuntu and I have recently encountered a problem. Previously whenever I typed the name of a program that was not installed in the terminal, I would get a list of suggested ...
-1
votes
2answers
88 views

How can I change directories in the terminal? [duplicate]

I have been googling how to use the terminal in Ubuntu 14.04. Many years ago, I could find my way around DOS, albeit I'm a bit rusty. It seems that it's basically similar but when I try to change ...