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

learn more… | top users | synonyms (5)

1
vote
1answer
43 views

How to restore bash executable after accidentally delete it?

I accidentally doing something wrong, want I meant to do is: ln -svf /bin/bash /bin/sh But, I miss typing it and become: ln -svf /bin/sh /bin/bash So, bash is now a symlink that point to sh ...
0
votes
0answers
22 views

Consolas font on terminal emulators not working properly under i3-wm

I have the Consolas font configured for my terminal emulators (Terminator and gnome-terminal). My box is running Ubuntu 14.04 LTS. If I turn on my computer and log in to i3-wm the font looks like ...
0
votes
1answer
49 views

Issue while installing updates using $ sudo apt-get update

I have tried installing updates from terminal using $ sudo apt-get update and found below code errors. Err http://ppa.launchpad.net saucy/main i386 Packages 404 Not Found Err ...
0
votes
1answer
37 views

Is it there a Text User Interface (terminal application) which does what Kalarm do?

Since there's no updates on the enhancement request raised by @DavidJarvie on the KAlarm Project, documented in my previous question over here: http://askubuntu.com/a/257843/9598, I started wondering ...
0
votes
0answers
17 views

Why my profile directory contents (/home/subbaiah/<Allfolders>/*.* ) deleted? [closed]

E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_i18n_Translation-en, E:The package lists or status file ...
-1
votes
0answers
41 views

I typed a terminal command and it hung up my computer?

I typed simply unity in my terminal prompt box and suddenly everything went like freeze, more over the tabs which I opened were accessible although but indeed they were slow, even the side bar wasn't ...
0
votes
0answers
32 views

Adding a file to startup list using terminal

I have created a short bash script that I want to run on startup. Adding it to the startup list through the GUI is simple enough, but I need to do it through the command-line, as I plan to access the ...
2
votes
1answer
14 views

Prevent access to a folder in WINE (running on Lubuntu)

I have a windows executable that takes in a project file name and runs it this way, under WINE (on Lubuntu). I call the below line through a batch file that resides in the same application directory ...
2
votes
2answers
23 views

Executing wmctrl from bash

After playing a little from the terminal with wmctrl, now comes the next step. Execute wmctrl from a bash script. I do achieve to execute wmctrl in a bash when it is completely alone. Example: ...
0
votes
2answers
42 views

How can I find my ubuntu's username?

When I boot system with ubuntu all I see is my background (No DASH, can't open terminal, etc). I've googled for this issue and the only solution seems to be getting to the command line with ...
0
votes
4answers
47 views

Adding a number to a already present variable sed/grep/awk

I have this in file.txt FORM: lookupfile Version: 1 LookupFile:"$i" How can I find this in the file and add a variable b to the $i. So example INPUT FORM: ...
0
votes
0answers
20 views

Execute Script in home directory on session open [duplicate]

I have a touchpad config command (synclient RightButtonAreaLeft=0 RightButtonAreaTop=0) that I want to execute on every system boot. My special requirement is that the whole config should be in my ...
2
votes
1answer
26 views

Flush Terminal Buffer?

I have a (proprietary) program which I start with ./program -a asdf in the Terminal. When I do that, I can see all the output at the right time. However, when I want to use the programs' output in a ...
0
votes
1answer
23 views

If condition fail skip to end of file

for (( v=0; v<t ; v++ )) do awk '/TRAP-TYPE/{i++}i' $fname >tron if [ "$?" -eq 0 ] then echo "MIB file found" else t=$t-1 fi some other commands echo "MIB not ...
0
votes
0answers
14 views

lxc-ls option flag error - lxc_container: command get_init_pid failed to receive response

I'm trying to use the lxc-ls command to list LXC containers on Ubuntu 12.04, but I'm getting a get_init_pid error whenever I invoke the command with an option flag. Here is an example session: $ sudo ...
1
vote
0answers
16 views

How to require root privilege to run command or alias? [duplicate]

On Ubuntu 14.04 LTS I would like to force certain terminal commands to run as root - or at least require the user password - to execute. For instance, poweroff requires sudo while gnome-session-quit ...
1
vote
0answers
20 views

Terminal collapses when it get resized [video included]

https://www.youtube.com/watch?v=pCHCpOV-Kjk After upgrade to 15.04 my terminal acting weird when i resize it, It collapses and never back to normal no matter what, i should close/re-open to get it ...
1
vote
5answers
103 views

How do I check which terminal I am using?

I have Ubuntu on my machine and I am running awesome window manager on top of it. How do I check which terminal I am running? Is there a command for it?
2
votes
6answers
519 views

Concatenate two files and separate them with a newline

I have two files: k.txt: 3 5 7 9 19 20 h.txt: 000010 100001 111001 if I just use cat, there is no newline. I need a command which would provide a file which looks like this: 3 5 7 9 19 20 ...
0
votes
4answers
57 views

What is the group id of this group name?

How to get the group ID GID giving the group name. The output would be for example: Group adm with GID=4
4
votes
7answers
753 views

How do I round numbers to the nearest integer from the command line?

There is a file I have which look 555.92 569.472 582.389 648.078 999.702 1040.75 1386.24 1418.47 1998.26 2182.13 2384.3 I would need to round every number like this 556 569 582 Ideally i don't ...
3
votes
2answers
306 views

Tee doesn't get whole output from the pipe

I have a script executing commands like: export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH;./some_app -i $INDEX | tee $LOG echo "Number of errors: $(grep "ERROR" $LOG | wc -l)" The problem is probably in ...
0
votes
0answers
11 views

Webmin Squid Commands

Whats command do I type on the CLI if I want squid to first implicit deny everyone to use the internet then afterward a command to allow the ip address 10.1.10.201 to be able to access all websites ...
0
votes
1answer
21 views

How do I remove an update link from my terminal? [closed]

I found this guide called 'switching from LightDM to MDM,' and it was a nightmare when I had to uninstall it because of a black screen I got when I logged in. Now I have removed the packages that were ...
0
votes
2answers
27 views

How to create a zip file from contents of a folder with certain name pattern?

is it possible to create a tar.gz file from contents of a folder but only put the files with certain name pattern in the archive and ignore the rest? for example just put the files which their names ...
1
vote
2answers
102 views

Looping tr command to remove '\r' in multiple files in a directory

I have about 260 files in a directory. How can I input these files one by one into some thing like this file is an array name file=input stream of multiple files x=0 LOOP tr -d '\r' file2 rm ...
0
votes
0answers
77 views

GTK-Message, when open a file with emacs through terminal

I'm trying to open a text file through terminal just typing: emacs file.txt the file opens on emacs, but when I close the terminal emacs closes too, and I get this message in terminal ...
1
vote
1answer
40 views

How to send terminal output to text file without newline

I am using the find command to find files of a certain type recursevely in subdirectories. I am trying to send the output from the 'find' command to a text file. However the long file paths returned ...
1
vote
2answers
27 views

How to get a recursive ftp directory listing without write permissions?

I know I can run ls * on the ftp server and get everything, but there's too much for my terminal (hundreds of pages so far). using ls * > myfile isn't an option because I don't have permission to ...
1
vote
1answer
118 views

How do I remove the brontok virus that has infected my Ubuntu via Wine?

My laptop runs on Ubuntu and was recently infected with the brontok virus it managed to infect my Ubuntu - through my flash drive - because I have Wine installed. I had used the USB in an infected ...
3
votes
2answers
53 views

How can I list connected monitor(s) with xrandr?

I'm working on developing a python application for Ubuntu that enables a user to have their desired resolution without requiring graphics drivers. In order to do this I've been using xrandr, which so ...
2
votes
1answer
30 views

oh my zsh binaries

I am trying to set a few permanent aliases in my terminal export PATH=$PATH:/Applications/orca alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' alias chem='wine ...
0
votes
0answers
16 views

Totem X and Y coordinates [duplicate]

How do I set the X and Y coordinates of the totem window using command line or config file? I'm using ubuntu. The config file in the ~/.config/totem/state.ini only has these in it: [State] ...
2
votes
3answers
154 views

Install tar.gz , but no configure folder on install file

Im trying to install RokiSim a robot simulator in Ubuntu 14.04 I downloaded the tar.gz and extracted it. But didnt find any configure folder or make file to start installaton. How do I install such ...
1
vote
2answers
45 views

How to disown a chromium or chrome app on double click

I wrote a bash script to open an app (by double click) in my chromium. The code works but after opening the app when i close terminal the app also closes. I have searched through web and found out ...
1
vote
1answer
22 views

backing up and compressing /home directory using lzma

Will this work? sudo tar -cvpf backboxhome.tar.gz/home/user --lzma I am mainly confused on where to place the --lzma argument.
1
vote
5answers
134 views

Find files belonging to a user with size in MB on Ubuntu 12.04 (Precise Pangolin)

I am using this command which is working fine: sudo find / -user web132 -ls But when I am trying like sudo find / -user web132 -ls -lh I am getting a wrong syntax error. How can I get the file ...
1
vote
2answers
34 views

tmux not reading my .tmux.conf

I have the following entries within my .tmux.conf in home directory set-window-option -g xterm-keys on set -g default-terminal screen-256color set -g history-limit 10000 However an echo $TERM ...
0
votes
1answer
43 views

How to fix this error I got while Re-installing dropbox?

How can I fix this error I got while re-installing dropbox? The following packages have unmet dependencies: nautilus-dropbox : Depends: dropbox but it is not going to be installed E: Unable to ...
0
votes
0answers
15 views

Install script as service running under speciffied user

I would like to install services into init.d folder in most standard way. Suppose I have script which should be run under specific user and starts the service (tomcat8 good example) ...
0
votes
1answer
34 views

Why no ubuntu -v command? [closed]

I know that lsb_release -a as a terminal command will achieve exactly what I want (that is a quick printout of my installed Ubuntu release - 15.04). My question is more one of accessibility. Terminal ...
0
votes
0answers
10 views

Gem command to install ruby doesn't work

Trying to install a Ruby on Rails environment, but every gem command such as gem install rails results in an output of ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError) no ...
0
votes
1answer
33 views

Click every link on multiple webpages

In our project we have pages like http://123.4.5.6/3/4; inside there are a few pages. I need to access the URLs and to click on every link within them to download some files (in an automated way). ...
2
votes
1answer
75 views

How to install dli-downloader into Linux?

I want to install dli-downloader into Ubuntu. Provide step by step guide. With JDK configuration.
1
vote
1answer
37 views

Fancy apt-get output

How can you have a cleaner and fancier output with or with out colors form apt-get not apt something like the yum update output
1
vote
1answer
29 views

Why are these characters written to the terminal during clear?

I recently did a clear on my terminal and found that the following characters were printed on a the line above: [unknown character]3;J I did a clear | hexdump to look into this and found that the ...
0
votes
1answer
27 views

I moved my home folder

I was trying to move my home folder to another account so hopefully my programs would have run faster on a new user. But apparently that did not work out well and I can not login to either accounts. ...
0
votes
1answer
21 views

Node “Not a dynamic executable”

I'm running 14.04 on Linode and tried following these instructions to install NVM and then node. I can get NVM running just fine but installing Node results in cryptic "file not found" messages when I ...
2
votes
2answers
38 views

How to detect current gnome-terminal character encoding?

I am trying to detect the current gnome-terminal character encoding from the command line. I have tried using gconftool : $ gconftool-2 --get /apps/gnome-terminal/profiles/Default/encoding current $ ...
0
votes
0answers
17 views

Roundcube webmail emails filtering plugin

I have just installed roundecube web interface with Postfix & Dovecot,Every thing working fine but i want filter my mails in my inbox received from sender moves specific Folder Automatically. eg. ...