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

learn more… | top users | synonyms (5)

2
votes
3answers
388 views

beginner's manuals [duplicate]

Up to now I have used Microsoft Windows. I am a beginner with Unix generally and with Ubuntu 12.04 particularly. I have got advices to try the system by a command 'Firefox' and then to install a ...
1
vote
2answers
390 views

How to check what local server is installed in my machine?

How do I know if my machine (Ubuntu) is using some local server? Like wampp, xampp or lampp? And also how do I know my Ubuntu version something like that?
5
votes
3answers
6k views

Changing behavior of bash prompt when functioning as root

Before you click away, this isn't the typical "how do I make my bash prompt have color" question. I've already customized my bash prompt to look like this: [user @ host]----[$(pwd)] $ where ...
-1
votes
1answer
92 views

how to achieve more output about hidden processes?

unhide has found hidden processes on my machine with given PID. These PID are not listed in top or in htop. how can I get more output of these hidden processes, when PID is given ?
17
votes
5answers
6k views

Run a command with the argument from the last command

When running commands, sometimes maybe you need to run a command with the argument from the last command. How can you do this? Of course, excepting the use of the arrow keys and Del keys: ...
4
votes
2answers
3k views

Command line web browser using SSH, is there any way i can use

I am connected using SSH to a Ubuntu Box which is behind firewall and routers. From that Ubuntu box i need to open a router web page and login to the router for doing some changes. How can i from ...
0
votes
2answers
433 views

Litle question about ufw command

Hi guys i would like to setup a specific rule for my ufw but i have the problem. How could i type this ? from ip adress 192.168.1.203 on interface eth0 alow port 80 I have on local pc ip address ...
0
votes
1answer
390 views

Does placing a symbolic link in the path work the same as creating a symbolic link of an executable in the path?

As the title says, I'm about to do an install of an executable. Normally I would either 1. install the executable to somewhere in my path i.e. HOME/bin/ or if that wasn't feasible 2. would add the ...
0
votes
1answer
303 views

Update error Xubuntu 13.04

When I try to install or remove items I'm unable to do so due to 3 programs that aren't fully installed. Ive tried removing them and reinstalling but no luck when I tried to configure I got this:- ...
0
votes
3answers
3k views

How to open a Ruby file in terminal?

I have a ruby file saved on my desktop as test.rb. How can I open it with terminal? I have already tried to use /home/desktop/test.rb and what I get in response is bash: /home/desktop/test.rb: No ...
-1
votes
2answers
404 views

'Failed to fetch' when trying to upgrade using terminal [duplicate]

W: Failed to fetch http://ppa.launchpad.net/s-elser/winelol/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found W: Failed to fetch ...
-1
votes
2answers
204 views

Alt+F2 to run terminal fails to do anything

Using Alt+F2, I type: sudo Terminal But nothing happens. I am not aware of making any changes and this used to work. I am using Ubuntu 12.04 LTS 64 bit.
0
votes
1answer
466 views

Undefined reference to symbol 'FcPatternAddDouble' - issue with building program

I'm Ubuntu 13.04 user. I haven't been able to build/install Japanese third-party software for artists called AzDrawing. Based on readme file, I executed make command in proper directory. At first it ...
1
vote
1answer
136 views

How to run a command for all users in a specific group at login, any help would be appreciated

We are using Ubuntu Server 12.04.2 to host virtual devices in our office. Our boss has written a program for Ubuntu that logs all activity and time spent at a single workstation to monitor misusage of ...
0
votes
1answer
552 views

How can I unmount user-mounted disks under /media/$username from the command-line? [duplicate]

In Xubuntu 12.10, I can mount external disks that are attached and they appear under /media/$username/$diskname. I can unmount them by going to the desktop, right-clicking, waiting 6 seconds or so, ...
1
vote
1answer
691 views

Control Fan Speed Command Line

After running service kmod start I get this error: Rejected send message, 1 matched rules; type="method_call", sender=":1.77" (uid=1000 pid=2871 comm="start kmod ") ...
1
vote
0answers
315 views

How to find launcher command?

I set a Launcher on the side of my Ubuntu Desktop a long time ago and I included a couple flags (I think that's what they are called) and I would like to run the same program from the terminal using ...
26
votes
4answers
4k views

What does ~$ stand for?

What does ~$ stand for? For example: user@ubuntu:~$ So far I know that the $ sign is a symbol for a regular user. If I'm not mistaken root have # at the end. I also found a lot of commands in the ...
-2
votes
2answers
160 views

Why are these command prompts necessary? Or can I do most of these things from the GUI? [closed]

I tried Ubuntu in the past, and found it great, until I found out I needed arcane commands such as: wget https://launchpad.net/~upubuntu-com/+archive/gtk3/+files/win2-7_0.1_all.deb sudo dpkg -i ...
1
vote
2answers
77 views

green header file

In terminal, when I type ls, I see some header files (like foo.h) in green. As far as I know, green corresponds to executable files. So why some of the those header files are in green?
3
votes
3answers
8k views

How to check crc of a file?

I was looking this question and appears everything but crc. Is there a good Ubuntu way around there to do this?
7
votes
2answers
14k views

Get information about a video from command-line tool [duplicate]

How can I get information about a video with a command-line tool? (e.g. video duration, audio codec, bitrate etc)
2
votes
2answers
6k views

How do I do Xdcc downloads on the command line?

I need a command line Irc client (e.g. Irssi) that can download files from a Xdcc bot. I already tried Irssi, joined the channel and requested a file from the Xdcc bot using the usual /msg botname ...
0
votes
1answer
3k views

Apply iconv to all of the files in a directory

While trying to convert a collection of .srt files: iconv -f cp1256 -t utf-8 directory/* > target/* it converts all of the 22 files in the directory to one file in the target directory called *. ...
0
votes
1answer
104 views

Partially overwrite in a file through script

I see <command> >> <filepath> appends the command line to the file and <command> > <filepath> replaces the entire contents of the file with the command given ...
3
votes
1answer
6k views

Cannot access the /usr/local/bin directory

I am installing software via the terminal. One of the installation steps requires to copy some binary files to the /usr/local/bin directory. Using the following command: cp file1 file2 file3 ...
0
votes
1answer
199 views

terminal locked with matlab installation

I was trying to install matlab couple of days ago but the process stuck due to the malfunction of the ISO file. Now I cannot stop this installation because it prevents me to get update or upgrade. ...
2
votes
1answer
1k views

set limit to data transfer/copy speed

On command-line and/or file managers (such as nautilus), how do we set an upper limit to data transfer/copy speed? I haven't found anything on the manuals of "cp" or "mv". I wan't to know this ...
0
votes
3answers
2k views

Output system processes via ps

I need to output system processes via ps. As far as I know, flag F (first column) is responsible for this: 1 means that this is system process. How can I output only these processes without others? ...
2
votes
1answer
1k views

shorten file path in terminal

I would like to shorten the file path that is currently active in the terminal to allow more space. This is a shortened example but I sometimes have filepaths that I am working with that are 6 levels ...
4
votes
1answer
18k views

Reattaching to an existing screen session

I have a program running under screen. In fact, when I detach from the session and check netstat, I can see the program is still running (which is what I want): udp 0 0 127.0.0.1:1720 ...
3
votes
3answers
6k views

How to copy a directory from one hard drive to another with every single file?

I have a folder I just luckily recovered sitting on: /media/sdc1/Pictures with a BUNCH of subdirectories and files that I need. I want to copy these to a folder on: /media/sdb1/Pictures What ...
2
votes
1answer
2k views

how to zip two files using 7zip via command line option

how to zip two files using 7zip via command line option. i want zip both files versioninfo.ini and Summary.xml with name Local.zip exmple 7za a -t7z Local.7z versioninfo.ini Summary.xml (not ...
0
votes
1answer
135 views

How to list the source URLs from saved html files from a folder?

I have a lot of html files in a folder. I used them in a project. I want to build a References.txt file in which the URL from which each html file was saved will be listed with the time stamp on which ...
1
vote
2answers
1k views

I can't use HTTP Proxy in the shell

I am a Linux Ubuntu user and I have some problem setting the proxy on my entire system. I go into the network settings of my Gnome and then I go to the Network Proxy settings mask and then I put my ...
2
votes
1answer
328 views

With gpg --verify, how do I distinguish valid signatures and valid signatures from trusted keys programmatically?

I want to write a script that runs gpg --verify to check a signature. The gpg command returns 1 for invalid signatures and 0 for valid ones. But it gives different output for keys that are in my ...
1
vote
1answer
442 views

Load Pidgin from the command line and join an IRC channel

I would like to be able to add a function to my .bashrc or .profile file in Ubuntu 13.04 that loads Pidgin and automatically joins a given IRC channel. Is this possible?
7
votes
4answers
9k views

Selecting text in the terminal without using the mouse

I am about to press enter to run a command in terminal, but before doing that, I want to copy the command to clipboard without using the mouse. How? If you're somewhere other than the terminal, ...
3
votes
1answer
7k views

How to ENABLE paste in terminal with (middle) mouse button

After an apt-get update && apt-get upgrade my middle mouse button paste stopped working on the Xserver/12.04.2 LTS. It might have been due to a apt-get autoremove as well, which i ran just ...
0
votes
1answer
539 views

How I can I unsource my environment?

I have source my environment and some environment variables were set, but i need to shift back to my previous environment, how should i do it ? Is there any way to move to the last environment ?
3
votes
3answers
3k views

How to rename multiple files sequentially from command line?

How to rename file as below AS1100801000002.RAW7AGS AS1100801001008.RAW7AH4 AS1100801002001.RAW7AH9 AS1100801003002.RAW7AHE AS1100801004009.RAW7AHT AS1100801005002.RAW7AHY AS1100801010002.RAW7AJ3 ...
13
votes
2answers
15k views

How to open the additional drivers window using command line

How can I launch the additional drivers window from the command line?
4
votes
1answer
5k views

Call Ubuntu settings with command line

What command can I use in the terminal to open the settings options?
2
votes
1answer
603 views

Replacing some characters in the previous command

Sometimes, being rushed, it is possible to type some characters wrong in a command-line. If the command is long, the mistake correction may be cumbersome (using arrow keys). So the problem is: how can ...
0
votes
1answer
141 views

No command 'update' found, what should I use instead? [closed]

I had a problem while booting my PC, the same as this one: "The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present" error at boot. I tried with these instructions, but I'm stuck at ...
1
vote
1answer
3k views

Downloading Dropbox from terminal with wget makes command crash.-UBUNTU SERVER 12.04

I have downloaded Dropbox manually on many instances on Ubuntu systems.Today I tried to use it on an Ubuntu 12.04 server edition, so I used the command wget -O - ...
0
votes
1answer
119 views

Why is wi-fi not working with terminal downloading?

I usually use internet in my college where we have to use college proxies for downloading. As a result , I had updated my apt.conf file to include the information for the college proxies so that I ...
6
votes
2answers
34k views

How to run shell script via terminal using ubuntu 13.04?

I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly ...
2
votes
2answers
405 views

List files having more than 100 lines in a directory and in all it's sub directory

How can I list files having more than 100 lines in a directory and in all its sub directories? An example of such a terminal command will be very helpful. Is there a tool to count the line numbers of ...
71
votes
9answers
6k views

Run same command again but as root

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?