Questions tagged [command-line]

This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.

Filter by
Sorted by
Tagged with
4 votes
2 answers
1k views

ctrl + alt + backspace does not work [duplicate]

Possible Duplicate: How can I enable Ctrl+Alt+Backspace? My Esc key sequences (such as those used to restart x etc) don’t seem to work. For example when i press Ctrl+Alt+Backspace which is ...
1 vote
4 answers
3k views

how to send content using postfix?

I need to be able to send the content of two files via email at the same time. I can now send it as two separate emails. I was able to send the content of one file via one mail message like this: ...
-1 votes
1 answer
1k views

No such file or directory

export ARCH=arm export CROSS_COMPILE=arm-xilinx-linux-gnueabi- source /home/Vivado/2014.4/settings64.sh Output : bash: /home/Vivado/2014.4/settings64.sh: No such file or directory I have the Vivado ...
7 votes
1 answer
4k views

VLC ":rate=2.0" - Where do I put this in command-line?

I figured out a way to transcode my videos so that they would play at double speed using the GUI as "Convert/Stream" --> "Show More options" and adding :rate=2.0 after :file-caching=300 in the "Edit ...
7 votes
4 answers
8k views

How to open a nautilus directory and select a file in it from the command line?

I know how to open directory, but I do not know how to select a file from the command line. Edit: I do not know how it works, but when I move any file to a directory and then open the directory that ...
13 votes
1 answer
20k views

Why do I have no prompt in terminal on XFCE in ubuntu 12.04

I have Ubuntu 12.04 and have tried a few desktop environments. I am currently testing out Xfce. It has a terminal emulator called "Terminal". When I launch it, I just get a black screen. Xterm, ...
0 votes
1 answer
561 views

Unable to access any kind of Terminal( terminal, uxterm, xterm, Guake terminal...) on my PC

As soon as I open the terminal it gets closes automatically. I think the problem is due to some change in ~/.profile, because the file got modified when I was installing some software. I am able to ...
1 vote
0 answers
103 views

Managing Running Scripts in the Background after logging out and logging in

I know how I can use CTRL-Z and bg to run a script in the background, and then fg <number> to bring it back by its number in jobs. However, after logging out and logging back in, jobs does not ...
1 vote
3 answers
16k views

Passing contents of file on the command line for c++ program [duplicate]

I have the following program (let's call it program.cc): int main() { int x, y, sum; std::cout << "A program which adds two integers\n"; std::cout << "Enter 1st integer: "; std::...
3 votes
2 answers
1k views

How to check the information of a PPA without adding it

Is there any way without running: sudo apt-add-repository [PPA] That you can get the description (and possibly some other additional information) of a PPA through Terminal?
0 votes
1 answer
143 views

Redirection operator priority in Bash [duplicate]

This command does not work: $ sudo echo 3 > /proc/sys/vm/drop_caches bash: /proc/sys/vm/drop_caches: Brak dostępu But when I gain root priviliges separately everything works. root@pc:~# echo 3 ...
1 vote
3 answers
1k views

why is piping pgrep output into kill is not working

I am playing around with pipes to learn how to use them. I am trying this command to kill a process by name: pgrep <some_process> | kill but the output I am getting is the usage instruction ...
2 votes
1 answer
8k views

Running a Python Script in the Background after Accepting INput

Is it possible for me to run a Python Script so that it firsts runs and prompts for the different inputs it needs, then goes out into the background and runs but frees up my terminal?
3 votes
2 answers
3k views

Seeing the output of an already running program?

When I start the program in the terminal I see the output. I can Ctrl+C my way out of it to use the terminal again, but is there a way to get the output of it into the terminal again? I am aware that ...
17 votes
1 answer
9k views

Why is there an inconsistency in base64 output?

I am using the java based neo4j graph database on lubuntu 15.04. The neo4j HTTP authentication header uses base64 encoding of 'username:password' (not including quotes). Using wireshark I can see ...
1 vote
3 answers
2k views

Using a Fork Bomb to prevent interactive shell on root

This question makes two assumptions: My root user's interactive shell runs bash .bashrc is only called on interactive shells If I append the generally known fork bomb (:(){ :|: & };: - do not ...
1 vote
1 answer
182 views

sudo doesn't request a password after installing PiNet

After installing PiNet on my Ubuntu machine, I noticed that sudo is no longer prompting me for a password. This is still the case after rebooting or after running sudo -k: $ whoami thang $ sudo ...
5 votes
4 answers
590 views

Read the table after a specific line and count occrences with awk

I have a table somewhere in a big log file which looks like this example: ---------------------------- CARTESIAN COORDINATES (A.U.) ---------------------------- NO LB ZA FRAG MASS ...
1 vote
2 answers
1k views

libjpeg-turbo unrecognized option

I'm trying to compile libjpeg-turbo with hardware acceleration enabled. Whenever I run this ../configure CPPFLAGS=’-O3 -pipe -fPIC -mfpu=neon -mfloat-abi=hard’ it says configure: error: ...
1 vote
1 answer
230 views

help needed understaning ls format meaning

I hit l this evening while compiling some things, and got some unexpected output. $ l l3* lesson03.cpp lesson03.o look.png readme.txt so then I looked at alias: which lists l as: alias l='ls -F' ...
4 votes
1 answer
867 views

Access local ftp

I was using ubuntu 10.10. I had a strange situation where I was setting up a small network all with fixed IPs. I had a NAS drive that I had enabled ftp on. when I used the connect to server menu ...
3 votes
2 answers
4k views

How to prevent commands being removed from history?

I have noticed that when I go up through my commands using the arrow keys, UP and DOWN, that if I then edit a command, it edits it in history, and I can even remove a command like that, however I do ...
4 votes
2 answers
669 views

Acces to the "burn:///" directory from the terminal?

How can i acces the "burn:///" directory from the terminal on Xubuntu 14.04. Is there an integrated option to burn the whole content to the disk without open Xfburn (it doesn't show the "burn:///" ...
11 votes
4 answers
13k views

How to combine two commands as a launcher?

I want to combine these two commands: rvm use 1.9.2 and redcar and combine them to run as a standalone program. But when i created a launcher with these two commands inputted, separated by ...
4 votes
1 answer
370 views

How can I copy and combine several .txt lists in alphabetical order?

I have several .txt files containing contact lists from different phones, how can I combine these while avoiding duplicates in alphabetical order using the terminal? example: contacts1.txt: John ...
2 votes
1 answer
2k views

Error While compiling U-Boot

/bin/bash: arm-linux-gcc: command not found /bin/bash: arm-linux-gcc: command not found dirname: missing operand Try 'dirname --help' for more information. Generating include/autoconf.mk /bin/bash: ...
3 votes
1 answer
1k views

Installing Plotmtv

I'd like to install plotmtv. For this reason I used simply the command sudo apt-get install plotmtv but I get an error message saying that the package is missing, it is not available or it is inside ...
3 votes
1 answer
91 views

Overriding cd builtin to source env settings, possible to use with autocd?

I am currently overriding the builtin cd command to source an environment file based on the environment currently being built. My main question pertains to how cd runs when I have shopt -s autocd ...
4 votes
1 answer
127 views

D missing from terminal keybinds - have to add it on every login

I have been running Ubuntu Gnome 15.04 on my Thinkpad T420 for a couple months now, and so far it has been great. However, A couple days ago my "d"(lowercase only) key stopped working in any terminal ...
0 votes
1 answer
655 views

Which type of terminal emulator installed in my ubuntu 14.04 lts?

How to find which type of terminal emulator installed in my Ubuntu 14.04 LTS?
2 votes
1 answer
473 views

How can I use the previous command's output?

I was trying to remove all files in a folder with the .class extension, so I made a small shell script. Can anyone tell me why it isn't working and offer a solution for my problem? The script: #!/...
4 votes
4 answers
3k views

No manual entry for unset [duplicate]

I try to display the help pages of unset command line , i get as a result the following output: No manual entry for unset I see this issue since they are similar , however , it cannot be solution ...
0 votes
1 answer
2k views

How to create an alias that will open file in Brackets?

New to this whole Linux thing, and creating alias' in Mac seemed a little easier! Anyway, I'm trying to create an alias that will open the desired file within Brackets, or Sublime... etc. I don't ...
4 votes
1 answer
415 views

Sequential renaming of files

I found an answer for zero-padding numerical filenames which works fine for renaming filenames as follows : 1.jpg > 00001.jpg 2.jpg > 00002.jpg . . . 9.jpg > 00009.jpg That uses the ...
2 votes
0 answers
371 views

virtualenvwrapper creates envs in ~/.virtualenvs? (with questionmark) -> leads to issues

I have installed Ubuntu 14.04 a few weeks ago, and start and learn Python/Django. At the beginning I installed virtualenv and virtualenvwrapper via pip, and worked like a train. Yesterday I messed up ...
3 votes
1 answer
637 views

How can the executable name of a program listed in a Dash search be determined? [duplicate]

Searching on the dash, I can see the program listed as "Personal File Sharing". How can I find the executable name of this program such that it can be launched in a terminal?
0 votes
2 answers
648 views

using the command line in ubuntu 14.04 LTS

How do I use the run command (I assume it is used on the terminal). for example, I received an instruction to run /opt/COMODO/post+setup.sh -- then, after that i would do etc/init.d/cmdavd restart......
0 votes
1 answer
3k views

root privilege is not working on chmod in android adb shell

shell@android:/system/etc/wifi # shell@android:/system/etc/wifi # ls -l -rw-r--r-- root root 326 2013-12-19 14:37 p2p_supplicant.conf -rw-r--r-- root root 282 2013-12-19 ...
1 vote
1 answer
571 views

Different environment variables depending on gui or shell

The environment variables of a program differ on whether it is started from a terminal or from the desktop (by clicking on its icon). For example: I use bash and have specific variables set in my ....
1 vote
3 answers
1k views

Cannot get "alias" command to work at al

Running Ubuntu 14.04 LTS I open a terminal, and type a simple alias command, but then it doesn't work: ~> alias ge='gedit &' ~> ge ge: command not found I've also tried adding aliases to ....
3 votes
1 answer
264 views

Does passing passwords as plain text arguments reduce WiFi network security?

This app uses the command line to create a WiFi access point with this command: create_ap wlan0 eth0 MyAccessPoint and you can also make a WPA + WPA2 network with this command: create_ap wlan0 eth0 ...
0 votes
1 answer
122 views

Changed user name in CLI. But even after rebooting, user name is the same [closed]

Changed user name in CLI. But even after rebooting,user name is the same in GUI. Why it didn't get changed..? Shall we try to change in GUI mode itself? The users are common to both CLI and GUI right?
6 votes
2 answers
25k views

loop through all files in a folder [duplicate]

I'm writing a script to get all files within a folder(including sub-folder): #!/bin/bash function loop() { files=`ls -1Fd $1` echo "$files" | while IFS= read -r file; do if [[ "$file" == */ ]]; ...
4 votes
2 answers
7k views

Adding the tar '-z' (gzip) parameter at the end of 'tar -cvpfz ...' doesn't work as expected

I was using the answers from Copy files without losing file/folder permissions question, when I ran across this interesting and unexpected behavior. Using tar cvpfz target.tar.gz dir1 works perfectly,...
1 vote
3 answers
183 views

Skype and problem with terminal [duplicate]

Recently, I have installed ubuntu 13.04, and updated it. I want to install skype. I search in "ubuntu software center" but I did not find anything. Therefore, I search on internet. I found out some ...
0 votes
1 answer
65 views

Display particular data into a file

I'm new to Ubuntu and have been using it for a couple of weeks now. Recently I encountered a problem where in I had to display a particular data on to a file. Here is the output displayed on the ...
5 votes
3 answers
4k views

Why doesn't `bc` utility exit with `^C`

I was using the bc utility recently and Ctrl+C cannot be used to exit the program. Ctrl+C's interrupt signal is returned with the message use quit to exit. I can use EOF (Ctrl+D) or quit to exit. I ...
0 votes
1 answer
518 views

Startx take me root@hostname prompt with high video but no gui

I have Ubuntu 14.04.3 LTS trusty on a PowerPC. When I first login, I got a prompt user@hostname I then run sudo startx It runs through the whole procedure but instead of getting the GUI desktop I ...
-1 votes
2 answers
3k views

difference between sudo su - and su - [duplicate]

I have tried in Google but couldn't get exactly what I need. Could somebody explain the difference between sudo su - & su - Thank you.
1 vote
1 answer
1k views

Gnuplot script bash problem

I have wrote this script in bash for f in $FILES do echo "Processing file... $f" # take action on each file. $f store current file name B=$(basename $f) filename="${B%.*}" mkdir $BASEDIR/$...

1
347 348
349
350 351
457