Tagged Questions

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

learn more… | top users | synonyms (5)

-1
votes
0answers
9 views

malformed line error [duplicate]

I have tried different commands to look at the sources list to fix the line. Malformed line 48 in /etc/apt/sources.list (dist parse) and nothing seems to work. I have tried using the root command in ...
0
votes
2answers
59 views

command not running in rc.local but works in terminal

My entire rc.local file #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on ...
0
votes
3answers
23 views

Check whether less than some amount of free disk space from the command line

There are several questions and answers on askubuntu about seeing disk space from the command line. Naturally, df is the go-to tool for this. However I want a script at login to raise an alert if ...
1
vote
3answers
31 views

How I can compile my all less files to css files in one command in Terminal? [closed]

I know how do this for a single file, I use this a command in terminal: lessc example.less > example.css But, I have a many files and do this for each individual don't make sense
5
votes
3answers
175 views

How to compare output of a running process?

I am running a benchmark on gem5 simulator, which keeps printing output to terminal while its running. I already stored a sample run of the same benchmark in a text file. So now I want to compare the ...
7
votes
4answers
1k views

How can I delete a file if it starts with <html> in bash?

I need a bash command to delete the entire file if the file itself begins with <html>. I'm not sure the best way to go about this... Context: I download a series of files via curl requests. ...
0
votes
1answer
52 views

ACL permission defaults are not applying to new files

I am trying to set up ACL's so that all new sub-directories and files withing a directory automatically inherit it's parents permissions. From what I understand I could achieve this by setting the ...
0
votes
1answer
33 views

How to copy and paste files with CLI and have a status [duplicate]

I am trying to copy large amounts of data using SSH so all I have is the CLI. I am using the cp -a /source/* /dest/ method but I can't tell how fast it is copying or what the progress is. Is there ...
1
vote
0answers
42 views

Whatever I type in the terminal I get prompted to install grub?

Ok, whatever I type in the terminal I get the message from the SS after 3sec, and it just goes in a loop, my grub is working fine and I have no idea why this is coming up. I installed Ubuntu 14.04.1 ...
1
vote
0answers
15 views

Entering an encrytion phrase through a serial port connection

I am building an Ubuntu 14.04 stand alone server, text install. I have rerouted the console through serial port /dev/ttyS0. During boot I am getting the full boot up display through the serial port. ...
0
votes
2answers
64 views

How Can I Remove All Characters After a Certain Character Appears Twice Using Bash Scripting?

I have multiple files in a directory over 200 which I would like to rename by removing all other characters including the character and the rest after it appears twice. Example: One of the files in ...
2
votes
1answer
61 views

Sed matching problem, output not as expected

What I need to accomplish: I want to recursively match everything from string1 to fixed_string (both included) on text_files and output the results onto a result_file. My command is as follow: sed ...
0
votes
1answer
44 views

How do keep the modified Logitech T650 trackpad configuration persistent

The most essential features of the Logitech T650 trackpad works right out of the box. However, I was unable to get ‘Natural scrolling’ to work. After a bit of searching, I was led to this post by ...
0
votes
2answers
60 views

How to replace a string of text with input from another file

I am working on a script to configure a server. Basically the script installs several services and copies configuration files in to place. I would like to replace the username in one of the ...
1
vote
2answers
68 views

How to invert colors in multiple images using Gimp in terminal?

I need to convert multiple .png images from black (and dark grey) to white (and light grey). I have found that I eed to use gimp plugin "plug-in-vinvert" but I can not figure out how to use it. I have ...
1
vote
1answer
65 views

Check Lock Keys state from command-line

I want to check Lock keys (i.e Caps Lock, Num Lock, Scroll Lock etc.) state (On/Off) from command-line. How do I check state via terminal command?
0
votes
1answer
50 views

Backspace not working in ubuntu terminal

Till yesterday the backspace was working perfectly . But something happened and backspace stopped working in the terminal alone . Backspace is working perfectly in other cases ..like in a normal text ...
0
votes
1answer
44 views

How to launch GUI app (in Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6)

I want to know that how can I launch GUI apps from tty (Ctrl+Alt+F1-F6) into GUI mode (Ctrl+Alt+F7) Sometimes, users having problem with GUI mode like: can login to GUI but Launcher is not working or ...
0
votes
1answer
26 views

Ftp login without shell access

I am using proftpd. Uncommented in /etc/proftpd/proftpd.conf: RequireValidShell off But now, even a user with right shell acess /bin/bash cannot log via FTP. I am getting this error: ...
0
votes
1answer
426 views

How to fix this after command sudo apt-get upgrade

uugana@Hunnu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to ...
3
votes
1answer
55 views

How to make the terminal autocomplete based on previously entered commands? [duplicate]

It's normal when using terminals that pressing up and down cycles through previous commands entered chronologically. I learned from a site how to add to that behaviour by autocompleting what I'm ...
2
votes
3answers
42 views

SED \n and \ into nothing

The people on this forum have been a tremendous help! Thank you so much! Here is my string ...
0
votes
1answer
37 views

Help decoding Base64 using base64 -d

**** This post links to Windows-Based malware executables!!! DO NOT EXECUTE DECODED SAMPLE **** I hope I can post this here without having it pulled down. I have 2 seemingly identical base64 ...
1
vote
1answer
28 views

Monitor folder contents changes

I can monitor the content changes of a file using tail -f command Is there a similar way of monitoring the changes of a directory structure the way tail -f monitors file? I have a long running ...
0
votes
2answers
43 views

Root permissions or logon [duplicate]

I know this sounds naive but, why can't I log on as root or give my ID root permissions? Why do I have to use Terminal? I mounted a drive and now want to give permissions to other PC on my network to ...
2
votes
1answer
38 views

Customising terminal environment

I want to customise the command prompt. I've added: PS1='\[\e[1;30m\][\[\e[1;34m\]\u@\h \[\e[0;36m\]\A\[\e[1;30m\]]\[\e[1;37m\]~\W\[\e[0;37m\] \$ \e[0;100m' to ~/.bashrc. It is all good except ...
2
votes
2answers
49 views

Displaying TTY name in Terminal name

I am wanting to know how I can display the TTY a terminal is currently using in the window name of the Terminal. I don't see any options in Terminal Preferences to display such thing on the Terminal ...
0
votes
1answer
67 views

Locate two variable strings and write one as a file [closed]

I have a text document that contains 2 lines of information. Line 1 contains a filename, and line 2 contains an reference ID. The document contains additional strings other than the desired ...
4
votes
1answer
53 views

Disable Control+Alt+End

Background In xfce4, pressing Ctrl+Alt+End hotkey cycles to the next workspace. The settings for this can be displayed from the command line using: xfconf-query -c xfce4-keyboard-shortcuts -lv | ...
1
vote
0answers
27 views

Reading Cronjob Output [duplicate]

I have a task setup to run on my cronjob where I need to read the output. What I need from the output is the starting character (let's say A) and the ending character (let's say Z). A helps me ...
0
votes
0answers
30 views

Terminal question linux [duplicate]

im new in Linux and in my terminal i got this Downloads$ before typing a command. Is there a way to change it or remove it? For example: elementary@elementary-laptop: ~/Downloads$
0
votes
0answers
19 views

Change your password on the command line 14.04 [duplicate]

How can I change my password on the command line with Ubuntu 14.04
0
votes
1answer
94 views

How do I autorun terminal commands at startup in Lubuntu 14.04 LiveCD?

I'm doing some remastering of Lubuntu 14.04 LiveCD, and need to run the following command at startup: /sbin/ifconfig eth0 10.10.10.1 netmask 255.255.0.0 First, I tried modifying rc.local as ...
1
vote
2answers
51 views

Why does my script work when started from console but does not work when started via upstart?

I am running Ubuntu 12.04. Here is what I am trying to do: I copied and adapted a shell script from here: http://yatse.leetzone.org/redmine/boards/2/topics/2088. It listens to UDP port 9 for ...
0
votes
1answer
93 views

Add custom script to PATH

I know there are quite some answers about that, but still could not make my way around it. I read all this and tried to follow the example under System-wide environment variables (for my case of ...
0
votes
3answers
47 views

Where do programs installed with apt-get come from?

I haven't been able to figure this out by searching. If I use: sudo apt-get install package_name where does that package actually come from? How can I tell if it comes from a trusted source? ...
0
votes
0answers
56 views

How to send email with sendemail without MTA?

Perl 5.18.2 Ubuntu 14.04 We use a commercial SMTP service. Need to send email from command line via cron. So no user intervention is important. No DNS going, no incoming connections or mail, this ...
3
votes
1answer
108 views

In 14.04 how do I run a bash script I wrote without opening a terminal?

I use terminal a lot. I wrote a script and have it in ~/blah/script.sh now. How can I run the script from Unity (Dash?)? A long time ago I would have used ALT-F2 and typed my command, but that ...
1
vote
1answer
52 views

Starting program via terminal and putting it immidiatly in the bg / bashrc

So i am trying to start a Programm by using the terminal but i also dont want it to be locked to the said terminal. i added an alias inside the bashrc for easy startup: alias tksuite='sudo sh ...
1
vote
1answer
75 views

Available updates not shown when login to terminal Ubuntu 14.04

When I login to my server terminal over ssh I just see: Using username "username". Ubuntu 14.04.1 LTS Authenticating with public key "mykey" from agent Last login: Wed Oct 22 09:17:02 2014 from ...
0
votes
2answers
38 views

Ubuntu Server and Desktop GUI Simultaneously

[I am a Linux n00b.] I know that it is POSSIBLE to do this, and from my research, the drawback is just that your system is bogged down from the GUI. All I want to use my server for is hosting ...
0
votes
0answers
29 views

Error in terminal while trying to install

I was trying to install unity-tweak-tool and I get this error: error in 'Config-Version' field string '2:0.116.2042+git178455c-1ubunt�1': invalid character in revision number I know I need to fix ...
0
votes
2answers
79 views

mount multiple hard drives to one folder as one drive

I'm pretty new to this and have been searching for this a while now.. I need to be able to mount multiple hard drives as "one drive" at /mydata folder. How do i do this as easy as possible in ...
1
vote
1answer
37 views

Batch renaming files from the commandline [closed]

I have files with the following names: 1_shahlirtsb_p.mp3_103899.mp3 2_shahlirtsb_p.mp3_103898.mp3 3_shahlirtsb_p.mp3_103897.mp3 4_shahlirtsb_p.mp3_103896.mp3 5_shahlirtsb_p.mp3_103895.mp3 ...
1
vote
1answer
88 views

How can I change audio output to HDMI from command line?

Backstory This thread suggests pacmd list-sinks and switching to a different sink with pacmd set-default-sink "SINKNAME", but my laptop only appears to have 1 sink, so that didn't help me. This ...
0
votes
0answers
48 views

Failure during ssl handshake while sending mail using openssl

I am trying to send mail from terminal using openssl by connecting to gmail's server using ssl on the port 465. Things are fine until i enter from address and authenticate. But when i enter RCPT TO, i ...
7
votes
2answers
656 views

Ending tail -f after print n lines

I have the following. A Java process writing logs on file A shell script starting the Java process. I need to read the log file after start Java process to check correct starting. I have try with ...
1
vote
2answers
53 views

Custom keyboard shortcut to lauch a terminal and run a command without exit in the end [duplicate]

I want to create a shortcut to run a command with keyboard shortcut But when I press "alt+ctrl+a" terminal open and immediately close. Please help me to edit below command for prevent from close ...
0
votes
1answer
25 views

Login welcome message but no shell?

I've created a user on my Ubuntu machine so that some people can log in and set up SSH tunnels and also so they can download some files from the system. I don't want them to have shell access at all. ...
0
votes
1answer
188 views

Failed to Fetch Trusty?

so here's my problem, i update every once in a while but this time it's different, it throws me an error: W: Failed to fetch cdrom://Ubuntu-GNOME 14.04.1 LTS _Trusty Tahr_ - Release amd64 ...