Tagged Questions

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

learn more… | top users | synonyms (5)

0
votes
3answers
14 views

Rename Multiple files Contains *

I have a set of files which the file names contains with the character '*'. For Example, a file name is like '***abcdef'. I want to change this file name as '3_abcdef'. I have a script to rename ...
0
votes
1answer
25 views

Displaying command progress in SSH terminal

I'm currently upgrading my Ubuntu server from 14.04 to 14.10, and I'm curious about something. If my SSH session gets disconnected during either this or any other long-running command, reopening the ...
0
votes
2answers
20 views

Understand free command with top command

I have a doubt. I start ubuntu and run free command. I will get the total free space available. Let say it as 100MB. Now I run a few applications. So after some time, I again run the free command. ...
0
votes
0answers
14 views

I can not boot directly into Text Mode in 14.10

I want my Ubuntu 14.10 system to boot directly into command line, so I changed the grub file in (/etc/default/grub) like this : (#)GRUB_CMDLINE_LINUX_DEFAULT=”quiet” GRUB_CMDLINE_LINUX=”text” ...
0
votes
1answer
22 views

can not install speed dreams in my ubuntu 14.10

The error is Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not ...
0
votes
0answers
33 views

Script problem at boot ubuntu

I have an application in C++ which show a ipcamera video when I send it a value by ethernet. I want that the application start at boot in automatic way. This is my script: #!/bin/sh ...
0
votes
2answers
19 views

Write to syslog from the command line

How can I write an entry into /var/log/syslog from the command line?
1
vote
1answer
26 views

Is it possible to shorten a unix terminal command to a shorter one? [duplicate]

Let's say I have this command: /sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}' Is it possible to shorten this to let's say writing host in the command line?
0
votes
1answer
20 views

Installing Flocker on Ubuntu 14.0.4.1 server

I am installing flocker-cli and dependencies inside the virtualenv and also upgrading the pip Python package manager to its latest version inside the virtualenv. I am getting some error. Error ...
2
votes
2answers
287 views

cd to a directory has hash (#) [duplicate]

Well, I have few directories have name contains hashes (#, eg: #abczxy). Now I can't to execute this cd #foo it will redirect me back to the root directory equal with this command cd The question is, ...
0
votes
1answer
26 views

Script problem Ubuntu

I am working under ubuntu 14.0.4, I have an application which I did in C++. This program only receives ethernet values, and show up an Ipcamera video which depends of the receives value. I am using ...
0
votes
0answers
23 views

kowing a specific user logged in 1 min

echo “ enter the login name of the user “ read name period=0 until who| grep –w”$name 2> /dev/null /* search for the user error are send to special file */ do sleep 60 period=`expr ...
6
votes
2answers
184 views

Can I recover command line deleted file from trash bin?

I have mistakenly deleted a file via while connected ssh. How I can recover that file or, if ubuntu has something like trash bin or so ?
3
votes
2answers
45 views

How to print the first three digits after the decimal point of a floating number?

I am new to BASH and learnt that both printf and echo write to the standard output. But, I came through the following example which reads an expression from input and computes the result to accuracy ...
1
vote
4answers
50 views

How Can I Run an Shell Script With .desktop Config File?

I am trying to run a shell script with a .desktop file but it doesn't seem to work, producing an error of There was an error launching the application at each attempt. I have the sh and .desktop files ...
0
votes
0answers
18 views

can not use deb command [duplicate]

I am having problems with malformed lines in the sources list. when I try to replace the source list using the source list generator as the root user I get the error deb command not found.
-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
32 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
16 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
28 views

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

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
4
votes
3answers
105 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 ...
6
votes
3answers
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
0answers
28 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
29 views

How to copy and paste files with CLI and have a status

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
11 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
54 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
52 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
28 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
50 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
46 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 ...
0
votes
0answers
18 views

which header file is used for IO [on hold]

How to solve this problem I dont know in whihc header file the cin and cout functions have been declared this is the Main Problem with me cout was not declared in this scope
1
vote
1answer
39 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
33 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
33 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 ...
-1
votes
1answer
39 views

bash: ./configure: No such file or directory [closed]

I am real noob in ubuntu. I am currently working for my university project where I am supposed to install "ns miracle". It has a prerequisite, "ns allinone 2.xx", which I installed successfully. But ...
0
votes
1answer
18 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
117 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
43 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
39 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
29 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
19 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
33 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
28 views

Customising terminal enviroment

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 ...
1
vote
2answers
31 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
63 views

Locate two variable strings and write one as a file

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 ...
3
votes
0answers
29 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
26 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
18 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