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

learn more… | top users | synonyms (6)

2
votes
0answers
18 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
348 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 ...
0
votes
2answers
2k 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 ...
9
votes
2answers
6k 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
3answers
581 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
814 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 ...
12
votes
2answers
2k 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
170 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
1answer
138 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
2k 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
1answer
82 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' every time I copy some text in terminal containing 'a'. For 'a', now I have to use Insert+a every time. The lower-case ...
1
vote
1answer
102 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
309 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 ...
1
vote
1answer
4k 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 ...
1
vote
1answer
108 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
1answer
321 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
622 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
192 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
334 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
672 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
59 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
1k 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
167 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
149 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.
8
votes
2answers
1k 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
1k 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
178 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
1k 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
89 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
246 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
30 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
108 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
1k 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
326 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
44 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. ...
3
votes
2answers
640 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 ...
0
votes
2answers
3k views

sed : difference between “ sed 's/\-.*// ” & “ sed '/\-/s/\-.*//gw ”

I am learning few simple sed commands and I have gone through few practices. Command #1 sed 's/\-.*//gw witout' tgs.txt Command #2 sed '/\-/s/\-.*//gw with' tgs.txt Output #1 $ cat with 2. ...
0
votes
1answer
197 views

Code works in Terminal, but not when in a script

I have: This is my zip file.zip in path $dec If I manually copy this code over to the terminal window, I get the correct output. But, if I take the same exact code and put it into a .sh file and ...
0
votes
2answers
74 views

Listing certain contents from a site in the terminal

This was one of the 12 problems in my practical exam today . For the first part of the task, we were supposed to list the contents of the first page from http://slashdot.org . I used lynx for this ...
3
votes
1answer
3k views

Ubuntu 14.04 pyenv command not found

Pardon if already duplicate but I tried combing through the forums but it seems I can't get anywhere. I am trying to install pyenv in Ubuntu 14.04 by doing these steps. INSTALL PYENV DEPENDENCIES ...
1
vote
2answers
253 views

Timer to shutdown

I just installed Ubuntu 14.04 on my Intel NUC DN2820. And almost every night as I lie down to sleep I listen to music, and my NUC shuts down (On Windows). On Windows it has the easiest command ever in ...
1
vote
1answer
900 views

Differences between md5pass and md5sum

This question may be insane ,but due to definition of hash algorithms, hash algorithms are some kind of functions that accept variable length input and make it encrypted and the output always has a ...
0
votes
1answer
53 views

Problems with Software Center and Terminal

Here's the problem. When I open Software Center it's black and closes after few seconds, can't do anything. And the problem with the terminal: sandro@sandro-E6224:~$ sudo apt-get upgrade [sudo] ...
1
vote
5answers
249 views

Creating command history list

Is there a way to display a list comprised of the last n terminal commands made by a particular user ?
2
votes
1answer
233 views

All files become hidden in Nautilus file manager

When I cd to a directory via Terminal and when I create a file every time via terminal, the file is not shown in Nautilus. But when I put ls command, I can see the files on Terminal. But I cannot ...
0
votes
1answer
76 views

Configuring Wacom Tablet for different programs

In the windows Wacom drivers you can set different button mapps for different programs and I was wondering if this was possible in ubuntu in anyway.
3
votes
1answer
2k views

cp Cannot Stat '-r'

Strange issue, for some reason, when I'm running a copy command, it's treating the -r flag as an argument. sudo cp –r usr/* /usr The following is the error: cp: cannot stat ‘–r’: No such file or ...
1
vote
1answer
9k views

How to combine ls and grep to list only files and using ls to count dirs

I have some troubles with combining ls and grep. The thing is that I have to use only ls and grep to list all files in home directory. Ive tried multiple of combinatnions but with no effect. I think i ...