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

learn more… | top users | synonyms (5)

0
votes
1answer
51 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 ...
1
vote
1answer
20 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
22 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
37 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
20 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
60 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
18 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
18 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
24 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
28 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
39 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
40 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
62 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
57 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
44 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
27 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 ...
15
votes
2answers
866 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
262 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
62 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 ...
0
votes
1answer
35 views

Complicated script involving command line and XFCE Terminal

I run Ubuntu 14.04 and installed the XFCE Terminal for some reason, and what I want to do is make a script to go to a folder on my hard drive under /Server/Gen2 and run several .sh scripts in ...
11
votes
2answers
805 views

How to merge images in a single PDF file

I have some images which I want to merge. The meaning of merge is that, if I have 5 images, I want to put hem near each other is this way: I want to do that command line. For example the command ...
2
votes
3answers
290 views

Trouble using cd command with “~” or “$HOME” in bash scripting

We know that ~ and $HOME refer to the home directory of the current user. (For me echo ~=echo $HOME=pandya). But I can't use it in bash scripting. Here is a simple example script: #!/bin/bash echo ...
0
votes
1answer
27 views

remove directory to Grandpa directory and delete the parent directory

Sometimes , we note that we have unuseful nested containers(directrories) . For example mkdir -p ~/grandpa/pa; And pa directory is the only file existed on grandpa. Hence , all files of pa ...
2
votes
2answers
66 views

Run program through terminal with custom name [SOLVED] [duplicate]

I want to run a program, for example gedit from terminal. How can I run gedit through terminal by just typing ge on terminal?
3
votes
3answers
109 views

How do I move thousands of files from a list?

So, I have a list of files in a text file. I believe it's about 100,000 files. The files in said list are spread across many directories, have different sizes, filenames, extensions, ages, etc. I am ...
11
votes
4answers
1k views

Making my first bash script, can't get the cd command to 'stick.'

For my first bash script, I want to create something that's really been annoying me: when I switch folders, I want the contents of that folder to be displated automatically. I tried adding this ...
1
vote
0answers
54 views

Why does apt-get abort by itself, as though I'd pressed 'N'?

On Ubuntu 14.04, when I try to install an app or even just do: sudo apt-get upgrade I always end up with this message at the end: Do you want to continue? [Y/n] Abort. I didn't type anything, it ...
0
votes
0answers
11 views

Console Mode VIM 256 Color Support

This question is about using the console mode (i.e. ctrl+alt+f1) and not about using a terminal emulator. When running from a terminal emulator, my VIM uses 256 colors without a problem. I've tried a ...
0
votes
0answers
66 views

Invalid entry length (0). DMI table is broken! Stop. displayed when enquiring about system-product-name in the terminal.

When I type this command: sudo dmidecode -s system-product-name in my terminal on a dual boot system with Mac 0SX 10.9.4 and Ubuntu 14.04. I get the following output: MacBookPro11,1 Invalid ...
1
vote
1answer
42 views

uTorrent server only working with 'sudo -i' option

Apparently it's not a working/not working issue. I have setup uTorrent server in my Xubuntu 14.04 following these instructions. How do I install utorrent on ubuntu 14.04 other instructions seem ...
0
votes
1answer
72 views

block certain dangerous commands?

In my High school there are few computer having Ubuntu 14.04 installed and many students know the Root password, how can I block/disable certain dangerous commands like :- rm -rf / rm -rf * ...
1
vote
1answer
25 views

Fullscreen and Repeat Video with Totem Player

I want to open a video from command line and I want the video to be opened as fullscreen and be repeated forever. I searched for fullscreen, and found the --fullscreen switch in Totem. However, ...
1
vote
1answer
19 views

Terminal message “Access control disabled”

Every time I open up the terminal the message access control disabled, clients can connect from any host pops up in the first line. Then the terminal behaves as usual, no errors at all. But this ...
2
votes
1answer
42 views

script in bash not understood using terminal in Ubuntu 12.04 [closed]

Can anyone tells me what does this script means found in a .sh file:: [ ! -n "$T_R" ] && echo "Message Appear" && exit 1;
0
votes
1answer
21 views

variable.sh is not exporting the variable using terminal

I want to export many paths using a .sh script. after running it nothing is exported I don't know why. so if anyone can advise. This is the script used: #!/bin/bash txtrst=$(tput sgr0) # Text reset ...
0
votes
1answer
38 views

Incorrect shell password correct terminal password

I'm trying to make some changes from the ctrl+alt+f1 menu, but the shell only rejects my login ("login incorrect" message). This is the same login and password that is accepted EVERYWHERE ELSE I'm ...
0
votes
1answer
45 views

How to convert Arabic subtitles to utf8 the right way?

Most DVD burners (if not all) ask for subtitles to be encoded in utf8, sure that's easy for file in *.srt; do ◀ iconv -f ISO-8859-1 -t UTF-8 -o "$file".utf "$file" && mv "$file".utf "$file" ◀ ...
1
vote
1answer
31 views

Declare a variable when running the script bash

How to declare the variable content when running the script? I know that is possible to use $1 $2 $3 to set a variable when running the script ./script.sh this is sparta, but I did not found a way to ...
0
votes
1answer
34 views

wicd-curses problem on Ubuntu 14.04

How to get wicd-curses to work on Ubuntu 14.04. This command works great on Ubuntu 12.04.
0
votes
2answers
78 views

Getting List of Running processes and applications

How can I see which application and what processes are running recently after the login using terminal command.
5
votes
2answers
378 views

Undo copy (cp) command action

I copied some file from source folder into destination folder by using bellow command line in terminal. sudo cp From_SOURCE/* To_DESTINATION/ Now I want to undo this command.
0
votes
1answer
35 views

call shell script from php when ubuntu 14.04 (rightly) disables the shell for www-data

I just migrated from 12.04 to 14.04. 14.04 (sensibly) disables login / shell for www-data. But my php site needs to run some shell scripts to run stuff like kindlegen, rsyncing files to another server ...
0
votes
0answers
22 views

Permissions when running second level script

Evening Everyone, I have 1 bash script that starts the program Motion (some may be familiar with). Motion links to a script in the motion.conf upon picture save or file save to a perl script that ...
0
votes
2answers
32 views

Why doesn't this second nohup command run?

Everything runs except the last line: #!/bin/bash xinput set-prop 11 "Device Accel Profile" -1 xinput set-prop 11 "Device Accel Velocity Scaling" 1 xinput set-prop 11 "Device Accel Constant ...
0
votes
2answers
34 views

How do I get my shell script to automatically accept prompts?

I made a simple shell script (that I run as root) to download essential apps that I might need whenever I reinstall ubuntu: It looks like this: apt-get install docky && apt-get install geany ...
2
votes
4answers
63 views

Moving all files of a certain type or extension

I have a large external with many subfolders that I want to move all videos, pictures, and music to another hard-drive, what would be the best way to do this?