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

learn more… | top users | synonyms (5)

1
vote
2answers
15 views

How to start a firefox from cron

I need to run a Java applet from a Firefox. The problem is, I need to run this Firefox from a cron. I run from cli and its work fine, but when put the command in the cron it failed: */1 * * * * ...
1
vote
4answers
110 views

compare a string in two files

I am trying to get the name of the user from one file and their corresponding details from my other file. I use the command awk -F : '{ print $1 }' user-name it gives me the list of all the ...
1
vote
1answer
14 views

passing a font as an argument to a script

I am trying to use osdSH for notifications. It has a 'font' parameter that receives a curiously formed string. From the man: -f -font Set font (Default: ...
6
votes
1answer
38 views

What is the $BASH_COMMAND variable good for?

According to the Bash manual, the environment variable BASH_COMMAND contains The command currently being executed or about to be executed, unless the shell is executing a command as the result of ...
-1
votes
0answers
18 views

Can't understand the directory or tree system to establish a link within Ubuntu 12.04 [on hold]

Without formal training using Unix I made changes/fixes using advice from a forum, the advice is good but there are gaps. /usr/lib/mozilla/plugins< How do I find out if that is the correct ...
0
votes
1answer
52 views

Sudo command problem on Ubuntu 14.04

When type sudo command by Terminal then show error, How to fix this sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize ...
3
votes
1answer
43 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
1
vote
0answers
16 views

Fullscreen is black with Fontconf warnings after updating Ubuntu

After having upgraded Ubuntu, I had the problem where Ubuntu was stuck in a login loop. To try fix it, I used commands from this forum: Ubuntu gets stuck in a Login Loop. Now, when I try to start ...
0
votes
0answers
24 views

How to Kill and Alternate X session via cli

Can someone tell me how to remove dormant X sessions. This question is similar to Logging out other users from the command line, but more specific to controlling X displays which I find hard to kill. ...
0
votes
1answer
21 views

how to concatenate two strings in shell script in 3.13.0-34-generic kernel

I want to concatenate two strings for the shell file im getting error when i have created the shell file in following manner could you please suggest how to get it set export ...
0
votes
2answers
26 views

Why the same .sh does not work with 2 different users executing it?

I have rwo users User1 and User2. I have this script1.sh inside User2 home folder: #!/bin/bash cd /home/user1 && ./script2.sh that calls script2.sh: #!/bin/bash if [ 2 > 1 ]; then ...
1
vote
0answers
28 views

vi issue in SSH TTYs to Ubuntu 14.04.1 LTS

After upgrading my server to Ubuntu 14.04.1 LTS, I can no longer use the vi editor to edit anything in an SSH terminal (I access the server by launching ssh sessions from Cygwin running on Windows). ...
0
votes
2answers
26 views

How to search strings inside files like in Windows without search monkey?

Hi I am using a vmware through which I cannot connect to internet because of security restrictions. I was wondering if there was a way to search for strings through the terminal but then find which ...
1
vote
1answer
31 views

How to install Firefox Aurora from a terminal?

I want to install Firefox Aurora in Ubuntu 14.04 from the terminal (I know there are other ways) but I can't. I've downloaded firefox-33.0a2.ca.linux-i686.tar.bz2 (linked from the download page) and ...
0
votes
3answers
51 views

How do I list all available shell builtin commands?

We know bash supports number of buitin commands like: $ type type cd help command type is a shell builtin cd is a shell builtin help is a shell builtin command is a shell builtin I want to get ...
3
votes
2answers
222 views

What is use of command: `command`?

Recently I found command: command which has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information ...
1
vote
1answer
65 views

Linux terminal: Keyboard shortcut for moving across tabs [on hold]

Is there any way to move across the different tabs in linux terminal like Ctrl + Tab for moving across different tabs in web browsers. I have tried Alt + 1 , Alt +2 etc... for moving along the ...
0
votes
2answers
58 views

How do I get rid of the password promting in the Terminal? [duplicate]

I am new to Ubuntu and I have a looot of issues :))! I saw that many things can be solved by typing commands in that window, terminal, which is kinda new to me( I am Windows 7 user, not a developer). ...
0
votes
0answers
22 views

Ubuntu 14.04 cannot start after execute command 'sudo apt-get install gtk+-' and shutdown laptop

Well, a little while ago, i was installing a serie of apps, and one requirement was to have installed gtk+ 3.4, next, as can be expected, I googled how to install it and...I executed the command 'sudo ...
0
votes
0answers
16 views

No Downloads, Documents, … folders in Home folder after installing dvsdk

Today I have installed dvsdk package in Home folder. For installing i have changed the mode using chmod 777 and executed ./[package_name]... After that, it asks where to install, I chose home ...
2
votes
1answer
30 views

How to run a command without keyboard? [duplicate]

I am wondering if it is possible to run a command without keyboard. Actually, I would like to run dmesg and save the output into a text file. I have written previously a bash script which does the ...
3
votes
1answer
23 views

Launch file manager from terminal with a keyboard shortcut

I would like to use a keyboard shortcut to launch the file manager in the working directory of the terminal (the reverse equivalent of Keyboard shortcut for "open a terminal here"). How can ...
1
vote
0answers
18 views

WiFi Repeater Creation

I need to make my pc act as wifi repeater. It is possible in windows using netsh commands or connectify software http://www.wikihow.com/Create-a-WiFi-Hotspot-Using-the-Command-Prompt Is there any ...
1
vote
1answer
21 views

“Close Nautilus and open terminal in the same directory”?

Is there a way to do this? Whether by a keyboard shortcut or a context menu item or something? Note: I specifically mean "close Nautilus" -- this works for opening a terminal without closing ...
-1
votes
2answers
40 views

Ubuntu ssh clients

is there a ssh client similar than filezilla but i all so need to use terminal sometimes. Support for ssh access key is all so requirement. It would be great if i just could jump up and down files in ...
0
votes
1answer
47 views

How does sudo!! work on Ubuntu

I love the idea behind the command: sudo!! but it doesn't really work on ubuntu (14.04 and earlier). When I type apt-get install htop It will obviously tells me to run the command as super ...
0
votes
1answer
13 views

How to mount a drive when in xmonad using terminal?

So, I've been itroduced to XMONAD by now, and he tiling window manager seems classic. I'm stuck when I have to access a file from another drive (It's a NTFS drive), so I found the way to list the ...
0
votes
1answer
36 views

Alias to open multiple text files in different directories from terminal

After hours of searching and trying different gedit plugins I did not manage to add a session saver to gedit to open some files in Ubuntu 14.04 (see here). So, I am trying to create a permanent ...
0
votes
1answer
14 views

What's my public IP over a Tor?

I'm attempting to figure out how to obtain the IP address that represents my connection over a tor network. What do I type into a terminal to see this information. Ultimately, I'm attempting to create ...
1
vote
1answer
21 views

display only the git root directory if it is a git directory in PS1

I know you can do something like this for the PS1: Corvid @ ~/github/gitdirectory (master) $ but, this might be a bit odd: I want to only show the basename of the git directory, no matter where I ...
2
votes
2answers
31 views

How to check if I can connect to a server port?

I have a Riseup account, but I just can't get the SMTP to work. I have tried all the tutorials, nothing. Neither Thunderbird nor Sylpheed work. Then I thought that my ISP might be blocking the ports ...
3
votes
1answer
19 views

How to scroll down vboxmanage output?

When I type the vboxmanage command I get a sort of manpage output, where it shows all the information at once. How can I view the info incrementally like less/more commands with files?
2
votes
3answers
43 views

An Ubuntu/Linux alternative of Bulk Rename Utility for Windows?

I have only spent 5 months with Ubuntu and it has been an awesome experience, I hardly boot into Windows now, but there are some things I miss, like the Bulk Rename Utility I used to have in Windows. ...
0
votes
2answers
16 views

How can I bulk-add a file's creation date to the filename?

I have generated a time-lapse series of images and have named them sequentially {0000..9999}.jpg This isn't great for browsing the whole set as it's harder to tell when a given image was taken from ...
0
votes
0answers
16 views

WUBI admin permission in graphic environment and installing question

While I can more or less create directories and such in folders like usr and bin ("root directories" right) through terminal comfortably (I say more or less because I set the password through wubi and ...
0
votes
1answer
28 views

What command will start debian upgrade? [duplicate]

I'm looking for a command that starts verbose terminal version of what can I see after clicking Upgrade in update manager: What command(s) can do that?
2
votes
1answer
20 views

Terminal tab not opening in same directory

Since upgrading to Ubuntu 14.04 whenever I open a new Tab in the Terminal I am in the Home directory instead of the directory I was in in the other Tab. How can I change it to stay in the directory ...
0
votes
1answer
25 views

apt-get update error 14.04 [duplicate]

Im new to linux and im having this problem whilst trying to fix a grub boot problem. this is the problem if someone could please help me with this. thank you. ps, freshly installed via DVD, fresh out ...
1
vote
1answer
33 views

Turn off AP (hotspot) through terminal

How can I turn off the AP hotspot through the terminal, since when I turn it off in network settings the program crashes. Also: How do I get networking to start when the computer boots up? It doesn't ...
-1
votes
1answer
37 views

How to start executable program from terminal?

I downloaded a program from the internet. I simply took the file from 'Downloads' and put it on my desktop. I can launch the program by double clicking on it. However I cannot figure out how to start ...
0
votes
1answer
52 views

What are all of the command line options for Google Chrome?

I use Google Chrome as my main browser, and I wanted to know what things I can do with it from command line - especially commands that you can't do with the GUI.
1
vote
0answers
54 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
-1
votes
2answers
42 views

My computer wont let me do sudo commands [duplicate]

I took off the password (I thought it was annoying and I am the only one who uses my computer) and now I cant do any sudo commands or put the password back on. Help!
1
vote
0answers
24 views

How does a keylogger respond when the user switches profiles

I'm wanting to log keystrokes on this ubuntu computer and I was wondering how a keylogger program responds when the user goes from a default user account and then logs in as root or vice versa. For ...
14
votes
2answers
803 views

How to see list of ASCII code on the terminal

Once on a web site, I saw one command which shows the list of all ASCII codes on the terminal. But now I forgot that website and also that command. I need the list of them. Is there a command which ...
0
votes
0answers
19 views

dislplay a text in the virtual console login [duplicate]

I want to display a text "thank you for logging in " when the user will exit from the virtual console login what should I do?
39
votes
6answers
5k views

What is the difference between Ctrl-z and Ctrl-c in the shell?

Can anyone tell me the difference between ctrl+z and ctrl+c? When I am in terminal , both the combinations stop the current process but what exactly is the difference between both?
2
votes
5answers
257 views

How to get the terminal text those are overflowed during command execution?

Some commands have very large output texts in terminal. Sometimes some lines of texts goes out of the terminal during command execution. How to get that texts? Update: I mean the terminal that comes ...
1
vote
1answer
55 views

“rfkill list all” shows nothing in command line

I'm using dual boot of Ubuntu 12.04 and Windows 8.1. When I run rfkill list all it shows as follows: :~$ rfkill list all :~$ Please Help. update: Laptop model: Fujisu Lifebook LH532. It has a ...
1
vote
1answer
42 views

Resize multiple files and rename them properly

I have a command line problem - probably a pretty easy one, but it seems I can't enter the right words into google. So I want to resize all *.png images in the folder using imagemagick - this would ...