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

learn more… | top users | synonyms (6)

-1
votes
1answer
3k views

how to install zip package from cd on ubuntu server using command line? [closed]

i installed ubuntu server, don't have internet connection but have .zip package on a cd. how do i install it? mounted the cdrom already and can see the application
0
votes
2answers
83 views

Where can I put commands that I want to run for all interactive, non-login shells?

Normally, in bash, the answer would be ~/.bashrc or /etc/bash.bashrc. But unfortunately Ubuntu is sourcing these files from ~/.profile and /etc/profile respectively. So, where should I put such ...
0
votes
1answer
629 views

Can't Change To Document Directory [duplicate]

I'm brand new to Linux, and know pretty much nothing. I wanted to learn about the Linux terminal and started watching a video, the video showed how to switch directories and they switched to the ...
0
votes
1answer
149 views

“System is running in low-graphics mode” error [duplicate]

I am very new to working with Ubuntu and working with command line input. Last night I tried to install Netflix desktop app which required wine-compholio, wine-browser-installer and lib(I forget the ...
0
votes
2answers
3k views

Change or Assign a Drive Letter to an external hard drive (or any drive)

I have an external hard drive that I formatted with Ubuntu (using the Gnome Disk Utility aka Disks) as an NTFS file system. Most of my computers in the house run Linux but I have a house mate using ...
3
votes
1answer
2k views

Console doesn't show pretty UTF-8 characters in Shell

I want to write some pretty, special characters taken from Web in my Shell Console with echo command. I want to write, for example, ▲ character, but it shows me ��� character. How can I solve the ...
0
votes
0answers
19 views

Why sudo passwd doesn't work anymore? [duplicate]

I installed eset, but it asked for the root password and I had not set one yet. So I went to the terminal typed in sudo passwd, set the password, and installed eset no problem. But now, like 10-15 ...
0
votes
1answer
894 views

How to install Synaptics touchpad manager with terminal? [duplicate]

I need to get this to get my touch-pad working but I am unable to install it with Ubuntu Software Center as it says ` "Update Error: Require Installation Of Untrusted Packages"
3
votes
1answer
231 views

Open man pages in help window using terminal

While using Gnome Do, I discovered that man pages could also be opened in help window as shown in this image. What is the command to open manuals in help through terminal?
0
votes
1answer
2k views

How do I add a standard user into sudoers' file using `echo`? [duplicate]

I am using Ubuntu 12.04 and I was doing through a terminal tutorial. There was explained about echo command and he mentioned something about adding your name to the sudoers file using echo >>. I ...
0
votes
1answer
156 views

how to find which packages from official Ubuntu repositories need to be updated (in respect to current state)?

how to determine which packages from official Ubuntu repositories need to be updated (in respect to current state) and to download these packages Thanks. Hey Denarsson, your script was very helpful ...
0
votes
1answer
449 views

How can I open thunderbird in the system tray with a command

How can I open thunderbird minimized with a command? nohup thunderbird & doesn't work with it, while it works with skype and amarok...
1
vote
1answer
34 views

How to create a command toggle?

I have a launcher currently on my XFCE panel that I would like to open a window. However, I want to make it only open the window if no other instance is running. If an instance is running, the windows ...
3
votes
1answer
64 views

Stop process on power button press

I have an old ubuntu pc running a minecraft server, but I only want it on at certain times. I want to be able to turn it on and off using only the power button. I am able to turn it on, but to turn ...
0
votes
0answers
43 views

Kill process on port 80 [duplicate]

Hi 'yall I tried running this command on my terminal to kill the tcp process so I can start my apache service. But it's seem there's some kind of mistakes. Here is the result and the command line I've ...
2
votes
1answer
4k views

Can't run screen due to “cannot open terminal '/dev/pts/1' - please check” error

To learn some server management I just created a new Ubuntu 12.04 server. Since I only had a root account I created a new user with adduser kramer65. I then switched to that user using su kramer65. I ...
1
vote
2answers
532 views

Not able to delete folder from gui or terminal

"NvXhVL3Rue" this unknown folder got created automatically. I am not able to change permission Not able to delete from terminal it stucks need to hit ctrl+z when i open folder its blank stuck at ...
0
votes
3answers
70 views

Shell asks me to install IDLE despite it being already installed

I executed this command to open a .py file in idle terminal : idle python_file.py Shell displayed the following message in response : The program 'idle' is currently not installed. You can ...
2
votes
0answers
52 views

who / w / logname broken in multiple terminals

I have a strange problem: In a GUI session, depending on the terminal being used the following two (related) problems appear: who and w doesn't list the user's active session logname returns ...
0
votes
2answers
48 views

When I use the text command line interface it says my login is incorect

I need to install a .run file. So I went to the text command line interface ( The thing that you do by pressingAlt+Crtl+F1). I put my login information correctly but it tells me my login is ...
2
votes
3answers
387 views

How to check if alias is not replacing an actual command?

How can I know if an alias I make (in .bash_aliases) is not replacing an actual command by same name? I don't want to do such things by accident. (I looked in "Questions that may already have your ...
2
votes
2answers
427 views

My computer is lagging and giving an I/O error

So, heres the deal, I got my CPU from a friend who works in robotics April 14th 2013, and now February 20th 2014, less than a year later, it has ceased to cooperate. I was playing Minecraft this ...
3
votes
1answer
86 views

How to prevent right-click opening new terminal instance

I often copy text into the terminal, for instance from a website or for a particularly difficult to spell filename, when I right-click the terminal to paste things however one of two thins will ...
0
votes
1answer
211 views

wc -l in multiple file or directories

in current directory, there are some RunId from an experiment, is there any command to count number of RunId's separately at once. I am using now the following for each one of the RunId for the ...
2
votes
2answers
117 views

Efficiently search sorted file

I have a large file containing one string on each line. I would like to be able to quickly determine if a string is in the file. Ideally, this would be done using a binary chop type algorithm. Some ...
1
vote
1answer
944 views

Switching the default session ubuntu 13.10 [duplicate]

When my ubuntu 13.10 boots the screen goes black and has no response. I used to run on gnome fallback and would like to switch back to it but I can't get to the login screen due to the automatic ...
0
votes
2answers
435 views

How can I open programms e.g. Skype minimized with a command line? [duplicate]

I am configuring shortcuts and just thought that it would be awesome to be able to open skype, thunderbird and this stuff minimized with a command-line-shortcut? Is there a way I could do this?
2
votes
4answers
1k views

Can I open a certain website with a command line? [duplicate]

I am configuring hotkeys for commands and want a way to open websites from the command line. For example, how would I open YouTube directly in Firefox without first opening the browser and then ...
3
votes
1answer
563 views

Confirm shutdown with Zenity?

I got this command which enables me to shutdown Ubuntu 13.10 directly from the keyboard (without needing to open a terminal and running something like sudo shutdown -h now): dbus-send --system ...
6
votes
2answers
849 views

Oneliner command to use kill given tcp port number instead of PID?

I often do e.g. sudo netstat -lpn |grep :8088 view the output tcp6 0 0 :::8088 :::* LISTEN 11189/java and then sudo kill -kill 11189 I'd ...
3
votes
1answer
232 views

Why does arp take so long to execute?

I'am on a wireless network. On windows, arp -a doesn't take long to complete, but on Ubuntu it takes a very long time?
0
votes
1answer
159 views

Ubuntu Linux Filepath for Windows mounted drive

I'm using ubuntu desktop. I mounted a windows drive using the "connect to a server" option. It now shows up in the "Network" list right above "Browse network". I'm trying to cd to this folder in ...
0
votes
0answers
21 views

How do I make a file default opened by the terminal on double click? [duplicate]

This is my file, which I saved as eclipse-start.sh https://gist.github.com/Meai1/d02bc20836f97f6ecb3e I also made it executable. But it always starts in gedit??
1
vote
1answer
25 views

Need help with an script executed in terminal

Can anybody tell me what is wrong in this script? `for i in {1..7}; do for j in {1..5}; $a =$ix630; $y =$jx900; do mogrify -crop $ax$y+675+900 +repage ...
0
votes
1answer
42 views

Terminal window does not contain username with only prompt

I was sourcing a file to install OpenFOAM after long time also my user name in terminal didn't come up as i have attached a snap shot i can see only prompt. How to resolve this ?
0
votes
1answer
129 views

Best way to burn data to dvd using command line

I have three kinds of file: Iso file, Directory, Txt file, ISO: debian7.iso Directory: Archives from /var/cache/apt/archives File: README I want to burn them into a DVD using command line... ...
1
vote
1answer
27 views

Pipe or log APT, keeping Notes

I am making a script that installs a dynamic list of packages and I need to know if a package is 'redirected' to another packages such as rpm-dbg -> librpm-dbg. The way I was going to do that was as ...
0
votes
3answers
154 views

server version where do I go to from command line interface prompt (DOS-type screen) [closed]

help I am new to Linux/Ubuntu. I installed the server edition on a micro server instead of Windows home server as used on my other one. After 3 attempts it finally installed. However all I get at ...
2
votes
2answers
79 views

Findd command in Ubuntu

In this link, I saw a guy using findd command. But, it seems Ubuntu doesn't have this command by default. Are there any similar alternatives or how I could get it installed (recommend the best way) ? ...
1
vote
1answer
90 views

Access terminal stdin when it's the source of the bash script itself

This is slightly messy to explain. I have a script that I want to deploy like this: curl -Ls example.com/myscript.sh | bash The trouble is the script reads from standard input like so: echo "You ...
0
votes
1answer
53 views

How to correctly store setings

I have made my .bashrc give me two types of prompts; longp: xanth@X-VboxTux:~➤➤➤ and shortp: ➤ I have done this by writing a 0 or a 1 to a file and then to determine what prompt should be shown ...
0
votes
1answer
2k views

Cannot connect using wpa_supplicant

I have set up a usb wifi dongle ( Ralink 148f:7601 ) and now I want to connect with it to my router. I am using the following commands : $ wpa_passphrase "SSID" "password" then copy the psk I ...
1
vote
1answer
167 views

Simple: check if volume group is found with a if

I am working on a script to check if volume group vg0 exist. The problem is that it return Found even when I delete the volume group. So very unsure what is wrong. #!/bin/bash if vgdisplay | grep ...
1
vote
2answers
281 views

screen shot from command line

I am writing a sh file to take screen short and want to schedule in crontab but when i run the .sh file it run OK no problem happens but when try to schedule it in crontab i got an error like ...
0
votes
1answer
385 views

Bash script fault creating mdadm array

I am working on a script to create md1 array, first to check if the array exist if not it will create it. I get command as command mdadm not found and a few others. The script wont run. ...
1
vote
3answers
2k views

Command to run GUI Frontend for apt-get update

I want know, if there is any command to run apt-get update in GUI like in the picture following: All i want to do is to write a script which will update the software sources through this gui ...
1
vote
3answers
771 views

How do address these WARNING's when I open firefox from the terminal? [duplicate]

When I open my Firefox Web Browser from the terminal I get these following warnings. william@william-AO722:~$ firefox (process:5672): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == ...
4
votes
3answers
5k views

Why are there so many console messages from GTK+ applications?

I have tried to open Software Center using the command line software-center and it did worked. I mean, Software Center opened and works fine, BUT, at the same time, in the Terminal window I see a ...
4
votes
5answers
390 views

If for a command to check if it succeed

I'm working on my bash script to create logical volumes. I have this command which I want to put in a if to check of each of these succeed. What is the easiest way to do that? #!/bin/bash pvcreate ...
2
votes
1answer
117 views

Drag text from terminal?

Is there anyway I can drag the text out from terminal and release in some other terminal or text file? I am asking for a laptop, where a touchpad is used.