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

learn more… | top users | synonyms (5)

2
votes
1answer
100 views

VIm: using substitute command

I'm trying to use the substitute command in VIm but don't get the result I excpect: I'm editing an html file, and for example I'd like to replace all "é" characters by the é code (yes it's in ...
-1
votes
1answer
159 views

How can i directory changes and with terminal showing me stay home directory command line?

If i want directory changes and with terminal showing me default directory stay , when changes directory khan@raselkhan:~$ cd '/media/khan/Development/Express' then showing me below ...
0
votes
1answer
62 views

bash- Control-C behavior (^C) / gksudo vs sudo

This is about how the ctrl+c key press has a different effect when performed to a gksudo instance as opposed to a sudo instance. I executed the following using gksudo to read an installation failure ...
0
votes
1answer
42 views

Typing special characters in terminal

I want to be able to type a special character (é) in terminal. I found a webpage which tells me to push a dead_acute key along with "e" key and that's it. ...
0
votes
0answers
25 views

There is no shell for current user

I am facing a very strange error. I was using fish shell with oh-my-fish (https://github.com/bpinto/oh-my-fish) and I tried to change my command line to bash using: $ chsh -s /bin/bash [my_username] ...
-1
votes
2answers
40 views

How i can change root to user directory?

I want to change root directory back to home directory, how can I achieve this? What I have now: root@raselkhan:~# pwd /root What I had before: khan@raselkhan:~# pwd /khan/home
1
vote
0answers
14 views

Software Updater not detecting all upgrades [duplicate]

This happens every so often, I run this command in Terminal (after running sudo apt-get update): sudo apt-get upgrade And I get an output such as (this is what I got today): Reading package ...
1
vote
1answer
67 views

Can't ls in /etc directory and more

I am using 14.04, I recently did an update with the software updater and things went wrong. Not sure what however, I just kept running it until it said that things were up to date. Now things are ...
-1
votes
1answer
57 views

Where is Ubuntu terminal located?

I am trying to add terminal as external tool to compile javascript with node.js. I am following this article which is based on windows , and i am stuck at figuring out location of terminal ...
1
vote
0answers
31 views

Terminal display problem [duplicate]

I've got an annoying problem with my terminal. The problem existed with the gnome terminal and even though i've got the terminator terminal as a default the problem persists! When a code line is too ...
0
votes
0answers
57 views

Job failed to start | error processing package | dependency problems [duplicate]

I type this command from Terminal to install a desktop for Ubuntu 14.04 in a GetClouder instance. apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal Seems ...
6
votes
3answers
1k views

Difference between ls -l and ll?

I'm relatively new to programming as a whole and some tutorials have been telling me to use ls -l to look at files in a directory and others have been saying ll. I know that ls is a short list, but is ...
0
votes
2answers
46 views

how to query maas API with curl

I am trying to figure out how to query the MAAS server using curl. I am starting to experiment with CLI query so that I may build a python script for remote command and query without having to use ...
1
vote
3answers
124 views

Start a programs in terminal only by name

I'm new to the Linux environment and I noticed there are many programs of which we can use only the program name to start them in the Linux terminal. E.g. gedit, vi, firefox Instead of providing ...
11
votes
2answers
1k views

What is the first number for in a 4-number chmod argument (such as `chmod 4555`)?

When I install a program, it recommends me to do chmod 4555. Okay, i know about values if I just use three numbers. For example chmod 555 test-file will give -r-xr-xr-x 4 for write, 2 for read ...
0
votes
1answer
49 views

Can`t log in to dekstop /etc/profile: bad variable name

I'm having problem. I can't log in to desktop, password is correct, but when I log in then screen goes black and goes back to login screen. With Alt+Ctrl+F3. I went to shell then logged in for to ...
0
votes
0answers
41 views

update-apt-xapian-index and chrt

update-apt-xapian-index can be an annoyance on older computers. Are there any bad side-effects known when changing scheduling priority to SCHED_BATCH in for example apt-apian-index with chrt -b ...
0
votes
1answer
38 views

How to check if a variable is empty on command line? [duplicate]

I have the following shell script echo "please enter user name: " read USER_NAME while [ ! "$USER_NAME" ] do echo "User name can't be empty please re-enter: " read USER_NAME done How can I do the ...
2
votes
1answer
529 views

shell script for connect server through ssh terminal?

How to write shell script for connect multiple server through ssh terminal. Its should open multiple tab in terminal and connect multiple servers through ssh ex ssh test@192.168.2.1 ssh ...
0
votes
0answers
33 views

Gnome terminal does not take lowercase 'a' input from keyboard

my ubuntu terminal doesn't take lowercase letter 'a' only. Also it parses 'a' everytime i copy some text in terminal containing 'a'. For 'a', now I have to use Insert+a everytime. The lowercase 'a' ...
0
votes
0answers
20 views

Any body works on FBReader open source?

cannot install open source. it gets stuck after make install command. error in this line: @install -m 0644 $(wildcard data/icons/toolbar/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) error ...
1
vote
1answer
71 views

When to apt-get upgrade

It seems that every time I install software an apt-get update is helpful but when exactly is an apt-get upgrade necessary? Or perhaps, when is it helpful?
0
votes
1answer
42 views

JDK issue, terminal won't recognize commands (javac, javah ect) when JDK is installed.

Hi I installed JDK alongside Netbeans 8.0.1 and all the java commands are found in: /home/username/jdk1.8.0_31/bin and it's not recognized in the terminal when I type javac, javah ect. Can someone ...
0
votes
0answers
35 views

How to manually start ps2 mouse from command line

It appears I have an intermittent issue in that it's a coin toss whether my ps2 mouse will work after boot. From the time stamps in dmesg it appears to be timing related, and rather than spend ...
0
votes
1answer
146 views

How to format an external 64GB SD card (exfat) using command line?

I have an microSD card with 64GB capacity which has exFAT file system. If I insert it to my card reader, it is mounted automatically. But I am looking for a command to format the card. I installed ...
0
votes
1answer
32 views

Is there any command line equivalent for “Edit Connection” GUI?

I found that there are at least three methods to assign a spoofed MAC address to my network connection: Method (1): Assign a MAC address to a connection using "Edit connection" GUI in WiFi (or ...
0
votes
0answers
27 views

Run a command at boot [duplicate]

I'm still new to the Ubuntu / Linux OS. I currently run a Minecraft server from my Ubuntu 14.04.1 PC at home. Sometimes the power fluxes and forces the computer to shut down. I have the BIOS set to ...
0
votes
0answers
111 views

Batch processing folders with `find` and imagemagick's `montage`

So I've been working at this for a while and I think I'm ready to give up. I trying to process sub-folders with imagemagick's montage to create contact sheets. This is basically as close as I've ...
8
votes
1answer
519 views

How to `touch` files recursivelly?

I need to change the timestamp of about 5000 files. Typing touch file1.txt, touch file2.txt will take me forever. Is there a way to do something in the lines of touch -R *?
0
votes
1answer
36 views

How to start CAESES free?

I have downloaded the program CAESES free on my Ubuntu 14.04.1 LTS and unpacked it into the folder /home/xyz/Programy/CAESES-FFW_3.1.2_Linux.x86_64. The program developer proposes to use the bash for ...
2
votes
1answer
47 views

Can simple scripts use GUI file manager to select file?

I have an extremely simple script that currently executes a command on a file located in the same folder: command ./file_in_folder option output. It would be better if script asks user which file they ...
0
votes
3answers
74 views

Shut down terminal sudo command

I would like to know which is the proper sudo terminal command to shutdown the computer gradually, saving everything, closing everything in the right order, and basically doing everything the computer ...
0
votes
1answer
36 views

Help with an IF and SED to replace \n

I have a filename variable that sometimes gets set as: attachment; JobRunStatisticsReport_20150122.zip In the File Manager window, it looks like this: I need help coming up with an IF statement ...
1
vote
1answer
66 views

How to use unzip in linux terminal SSH?

I just zip a file in my remote server using the command "unzip" in the SSH terminal. It works fine but leaves a new folder called "__MACOSX". Is there any way to make that the command delete this ...
0
votes
1answer
52 views

Ubuntu: How to execute a script without using terminal? [duplicate]

This is my dilemma. I have a program that can only be launched through terminal. So, right now I am always having to first open the terminal and then do the following ./theGUIScript. It runs but I ...
0
votes
1answer
20 views

How can I change the mode of Sqlite Database?

I want to add some record in my database it is read_only by default, how I can change its mode to add the record. I want some linux command, I was trying gfix but it failed to execute.
7
votes
2answers
798 views

Command-line presentation tool for Linux?

In a few days I am going to give a presentation about Linux. So I want to show Linux in style. So I want any tool for presentation. I heard about Mdp. Now I want to make my own. How can I create ...
5
votes
2answers
345 views

Move multiple files to a dir if their names contain the same string present in dir name

I have multiple files in one folder: ABA.xy BEB.xy ACA.xy The same files with different extension in another folder ABA.rr BEB.rr ACA.rr Then I have single folder for each file name ABA BEB ACA ...
1
vote
1answer
26 views

How can I save output of past commands in an xterm?

I have ran several commands in an xterm. I can scroll up and see the output but now I want to save that output. But I did not use screen or script or output-redirection for these past commands. Is it ...
1
vote
2answers
477 views

Difference between `sudo su` and `sudo fish` [duplicate]

I am running fish (Friendly Interactive Shell) as my standard shell in Ubuntu 14.04, rather than bash. I noticed the following behaviour and don't know, if any of these are the preferred one to gain ...
1
vote
1answer
30 views

Redirection with pipe

I have the following command to be executed. ls > myFile.txt | wc The output of the command shown is 0 0 0 Why isn't the above command giving the line/word/character count of ls output? Am ...
0
votes
2answers
48 views

Terminal exits after pressing <Enter> or <Tab>

When I open terminal and press Enter or Tab multiple times, terminal exits i.e. when i type ls and press Enter or cd and press Tab all the terminal window get close. How can I solve this problem?
0
votes
1answer
23 views

accessing ubuntu teminal sessions [duplicate]

Is it possible to access a terminal session after closing terminal? I ran into some interesting information about my installation of Ubuntu using the terminal, and I would like to retrieve that ...
0
votes
2answers
52 views

How do I use the set command to find directories in my path?

I am taking a linux class this semester and one of the questions on a lab is: Use the set command to find out all directories in your path. Normally, I would just use $PATH to find out the ...
0
votes
1answer
102 views

Getting No Such File in Directory running wget script

I'm very new to Ubuntu and scripting. I am a Windows sysadmin. I need to schedule a .csv download once a day for my job. First I tried to use the windows version of WGET and had was able to create ...
-1
votes
1answer
27 views

Downloading file from website

Hello 1st time user of Linux and I am using Ubuntu 14.04 and having issues downloading files while using the terminal. wget "http address" is no issue but when i attempt to output to a specified ...
0
votes
1answer
29 views

Keyboard layout related issue - fixed in GUI but receive error in terminal

I run on Ubuntu 14.04. I have an issue related to the keyboard layout in GUI mode. I managed to fix it in the GUI by using: setxkbmap -layout us [1] and adding it to the ~/.bashrc. That works fine. ...
0
votes
0answers
37 views

Bash script environment can't get exported variable from user

I have a user daniel, from which I'd like to retrieve an exported value as root. So I did some research and came up with this command: $ su - daniel -c '. ~/export_script; echo $EXPORT_PATH' > ...
3
votes
2answers
582 views

I need regex(7)'s manual, but man command shows regex(3)'s manual

I understand there are many manuals (which are displayed by man command) in Ubuntu that has same names and are distinguished by a number. For example there is regex(3) and regex(7). If I type man ...
-1
votes
0answers
24 views

How do i make a live usb for ophcrack from terminal?

I am having trouble creating a live usb for ophcrack using unetbootin, how would i create a live usb for this software from the terminal. Any suggestions? Thanks for your all your help.