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

learn more… | top users | synonyms (6)

0
votes
0answers
56 views

Alt-Tab into certain applications results in ~3.5s keyboard input lag, but not touchpad lag

I'm on ubuntu 14.04. sWhen I alt-tab into certain applications, including gnome-terminal, Sublime Text 3, and LibreOffice Writer, there is an initial keyboard input delay of ~3.5 seconds. After that ...
0
votes
1answer
61 views

How do you make sure that new hostname is successfully broadcast to the network?

I am trying to reset my hostname, but I am not sure if the broadcast is successful or not, is there a way to check? user:~$ sudo hostname newhostname user:~$ sudo dhclient sudo: unable to resolve ...
3
votes
2answers
127 views

grep regex pattern causes unexpected command behavior

I'm searching for lines with $ and consecutively ' or " through this grep in my terminal: grep "\\$('|\")" -rin folder_path After pressing enter the terminal doesn't think the line is complete so ...
0
votes
1answer
138 views

How to change display's position from command line?

How can I use the command prompt to do get the setup shown below? Edit: I need the secondary display to be located to the left and half-way to the top of the primary display, as shown above. The ...
0
votes
1answer
32 views

How do I find out why I get anytime the same error message from an original Ubuntu script?

Swap2Ram.sh always produces its error message, even when I have enough ram left. Any ideas? #!/bin/sh mem=$(free | awk '/Mem:/ {print $4}') swap=$(free | awk '/Swap:/ {print $3}') if [ $mem -lt ...
1
vote
0answers
53 views

Access ubuntu terminal/sudo after pressing ctrl c and restaring while upgrading system

I tried to upgrade my system from 14.10 to 15.04 and while I was installing it asked me if I want to replace config file. I tried to compare, then didn't know how to exit Ipressed ctrl c and then I ...
4
votes
1answer
692 views

terminal command for listing available shells

I need to check out which shells are available. Which command gives me available (installed shell like, tcsh, csh, bsh) shells in terminal?
9
votes
2answers
697 views

Piping to “type” command

I want to find out the type of several commands. Is it possible to pipe or xargs a search result from find into the type command in Linux? For example: find . -name anacron | type or find . -name ...
2
votes
1answer
180 views

Print again the last printed paper using command line

The scenario : I want to print again the last printed paper in my printer... Is't possible... I've came to some commands such as lpstat, lpr , lp but can't find if such option is really exist. Any ...
0
votes
1answer
97 views

How do I bind Windows key using command line?

I want to map Windows key (without any additional key) on Ubuntu to be able to launch Terminal (xterm). I've already went through this information but I don't know how to go from there. How can I ...
4
votes
1answer
569 views

Suddenly can't run sudo

I didn't do anything on the computer except Internet for a few days and suddenly when I tried to do: $ sudo apt-get update I got: sudo: effective uid is not 0, is /usr/bin/sudo on a file system ...
-1
votes
1answer
138 views

how to solve “No such file or directory ”error? [closed]

No such file or directory error is being displayed although the directory(folder) is existing
2
votes
1answer
174 views

How to make a bootable pendrive in command-line?

How could a Bootable USB Pendrive can be created using the Ubuntu command-line. Can we use a script for the same? Can somebody help on this?
1
vote
1answer
107 views

How to pass the line number, where the mismatch occurred in awk, to Shell variables?

I am trying to compare two csv files. I want the line numbers to be stored into shell variables or array. I tried something like this: paste <(awk -F, '{print NR,$1}' file1) <(awk -F, ...
2
votes
2answers
31 views

remove file with -h_some_file_name in shell [duplicate]

I have a problem when trying removing a file with name something like -h_some_file_name, this is because of generated script that I made and forget to check the prefix. If I run the command rm ...
0
votes
3answers
171 views

Run commands “without” terminal

Months ago I saw a guy running commands from a small, text-box-like window, showing nothing else other than the text-box for you to write the command. Such text-box would popup by pressing some ...
0
votes
1answer
372 views

How to find a graphics driver that works (faulty with nouveau & nvidia)?

I'm unable to access my Ubuntu 14.04 or Win XP partitions. When I try to log in to Ubuntu sometimes I get to the password point and my mouse stops working, or I get a black screen before that and ...
1
vote
3answers
254 views

Remove duplicated from two files and merge the unique ones

I Have two big text files, checksums_1.txt and checksums_2.txt, I want to parse these files and remove duplication between them and merge the unique lines in one file. Each file have the following ...
3
votes
2answers
279 views

How to execute a shutdown with timer and screensaver command in a script

I made this script when executed will shutdown my system (after some time) and should enable a screensaver. #!/bin/bash sudo shutdown -h +30 gnome-screensaver-command -a There are mainly two ...
0
votes
1answer
288 views

Installed script with pip: Run like a command

I installed this python script scdl to download audio from soundcloud. The script is installed to ~/.local/bin How can I run this script in a terminal like a programm? So I don't enter the whole path ...
2
votes
0answers
718 views

Having problem with opening softwares from the terminal (including wireshark & gedit)

I am using Ubuntu 14.10 and I am having errors opening softwares from the terminal. For example: build@build:/usr/local/bin$ sudo wireshark gdk_mir_display_open Failed to connect to Mir: Failed to ...
0
votes
0answers
17 views

Getting message about not installed Sphinx

I try to use Sphinx, when I run: sudo indexer --all , getting the folowing: Sphinx 2.2.7-id64-release (r4883) Copyright (c) 2001-2015, Andrew Aksyonoff Copyright (c) 2008-2015, Sphinx Technologies ...
204
votes
9answers
12k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
2
votes
3answers
2k views

What does `pbrun -u [username] dap' do?

What does pbrun -u [username] dap do? I tried to search for the dap option, but not sure exactly what this dap stand for and its functionality.
2
votes
1answer
531 views

How to redirect stderr to a file

While using nohup to put a command to run in background some of content appear in terminal. cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: ...
192
votes
6answers
21k views

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.
4
votes
4answers
100 views

Terminal: Avoid repeating directory multiples times to reach files within

I have two files file1.txt , flie2.txt in a directory X. I want to copy those files to my current working directory which is far away from the directory X. so I end up with a command like: cp ...
0
votes
1answer
28 views

Is it possible to bring terminal (invoked from GUI) to the CLI terminal?

Due to graphics driver failure after dist-upgrading my "AMD powered" system I am unable to login to my account. The login screen is just bouncing back and not showing me the result of that upgrade ...
3
votes
1answer
141 views

Why does shutdown from a remote terminal fail to power off my machine? [duplicate]

I have noticed that if I shutdown Ubuntu 14.04 from a remote terminal via ssh and running sudo shutdown now, the machine does not power off. If I use the GUI (shut down using Unity on the machine ...
0
votes
1answer
748 views

How is it possible that I can execute JAR file from shell?

I always thought, only executables in UNIX/Linux are ELF-files and shell scripts. But i found that it is possible to use just $ ./file.jar instead of $ java -jar file.jar. How are JAR-files special? ...
1
vote
1answer
228 views

Ruby command not recognized after installing it with rvm

I followed this tutorial to install ruby with rvm: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm The problem is that ...
8
votes
4answers
698 views

How can I change the filename timestamp?

I have dat files' names in chronological order: FileName_YYYY_MM_DD_HHMM.dat Is there any commands for adding 30 minutes to each timestamp?
4
votes
1answer
2k views

Installing Spotify

Hi everyone I'm attempting to install spotify, I've been running linux for less than 24 hours so please cut me some slack if this seems trivial. Here is a link to the webpage ...
6
votes
1answer
661 views

How to recover accidentally removed /bin/ls binary

I have mistakenly deleted the ls executable from the /bin folder. Can I recover it or install it through the terminal?
18
votes
5answers
6k views

How to delete all files except one named file from a specific folder [duplicate]

Here is the situation. I have a directory which contains many files with different extensions. I want to delete all files except one with a specific name. This could be easily done using the GUI by ...
5
votes
1answer
126 views

How to use some of the arguments of a previous command without retyping

Back to Run a command with the argument from the last command. This post explained how to use previous commands argument in the new command. My question is how to iterate among those arguments? For ...
2
votes
1answer
92 views

Most of the time I get '^?' instead of backspace action

I am finding a lot of the time that if I press BACKSPACE I just get this in the GUI Terminal app: ^? I also find that if I press INSERT that I get: ^[[2~ And this is becoming rather annoying as ...
1
vote
1answer
58 views

Problem while trying to create an alias

Goodmorning I was trying to create an alias so as to launch matlab easier. I read this post :How to create a permanent "alias"? and I used the commands in this line echo "alias ...
1
vote
2answers
49 views

How to bring wlan0 up without connect to any access point?

How to bring my wlan0 interface up without connect to any access point using command line? Note: Ubuntu Server 14.04
2
votes
0answers
126 views

'sudo poweroff' in Terminal turns screen of but does nothing else

I have found that recently when I execute the command: sudo poweroff In the GUI Terminal app that what actually happens is that my screen fully turns off, but my machine does not. It just sits ...
0
votes
2answers
614 views

Using script /bin/sh -c gnome-terminal to open 4 Terminal Windows at Startup

I'm trying to open 4 Terminal Windows at startup and I'm using the script below to do so. However, it's only opening 1 terminal Window instead of 4. /bin/sh -c gnome-terminal; /bin/sh -c ...
5
votes
1answer
1k views

Working with text files encoded as Windows-1250 and UTF-8

I am switching between Ubuntu and Windows frequently therefore I have some encoding problems with text files. If I save text file in Ubuntu, everything works fine in both systems. But Ubuntu doesn't ...
14
votes
2answers
1k views

Copy files and directories without files content

Is there a way to copy directory structure with files but without their contents. I mean that I want exactly the same directories with files names but leaving them blank/empty. I have few example ...
4
votes
1answer
907 views

Is it possible to view Google Chrome bookmarks and history from the terminal

Is it possible to view Google Chrome bookmarks and history by using command line?
1
vote
0answers
886 views

Problems Installing Metasploit Framework on Ubuntu

I have encountered 3 problems while following this guide to installing Metasploit Framework on Ubuntu and Debian: 1) After installing proper version of ruby, there is a command given for installing ...
5
votes
2answers
1k views

How to create a rotation animation using shell script?

I looking for a script that creates a rotating animation using character /,-, | and \. If you continuously switch between these characters it would look like its rotating. How to make this?
1
vote
1answer
49 views

problem using unrar and adding alternative search paths

following this guide http://www.reddit.com/r/PleX/comments/2pxx9e/rar2fs_install_guide_linux/ Im stuck at : "./configure" ending with error saying Can't find unrar source - add alternative source ...
2
votes
1answer
440 views

How to make a batch file add users to groups?

I need help with a GCSE project, I'm stuck on the last question. It asks for a bash script to create users, and then assign them to groups. I've already made the script add new users, but I'm unsure ...
1
vote
2answers
255 views

Running Transmission as Root

How can I run Transmission as root? I have tried sudo transmission with no joy. qBittorrent works, but I have to download it.
4
votes
1answer
126 views

Keyboards writes “bad” space characters in gnome terminal

It looks like at random times my keyboard inserts a character that is displayed as a space character but isn't one, preventing the shell from interpreting it correctly. For example before "sort" below ...