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

learn more… | top users | synonyms (5)

1
vote
1answer
58 views

Restoring a Backup from Terminal

So I have a pretty straightforward question, but have been unable to find a straightforward answer. I recently did an update on Ubuntu 14.04 and I shut down at the end of the night last night. But ...
3
votes
2answers
123 views

If I cat file to other file is there way to get them separate again?

If I use cat pic1.png >> pic2.png is there way to get the pic1.png out of that pic2.png? I know it works if I simply use some archive file and just simply unarchive it but I want to know is it ...
0
votes
1answer
24 views

Undo wordpress chmod?

firstly im new to ubuntu and I did something im not sure of. I was trying to chmod wordpress folder because it was having problem not having permission to do anything. (Already installed xampp) ...
1
vote
2answers
32 views

Select Top N files based on modification date and rsync them

I'm fairly new to linux and I'm trying to transfer some N files based on Modification Date. I've found this commandls -tr | head -100, which to my understanding, will list the Top 100 Files (head ...
0
votes
1answer
49 views

JDBC Connection Pool details on Glassfish

I can get some basic information from Glassfish v4 about the JDBC connection pool from the CLI with asadmin: thufir@dur:~$ thufir@dur:~$ glassfish-4.1/glassfish/bin/asadmin Use "exit" to exit and ...
19
votes
2answers
1k views

Does using -v (verbose) slow commands down?

In this question: How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash? it is asked how to delete all file in a folder, and not the folder itself. Matts ...
0
votes
0answers
59 views

On Boot System messages

Is there a way to display what is happening during boot? My system seems to be running very slow on boot now that I have two static Ip's set in the interfaces file. During boot I get stuck at a ...
0
votes
1answer
32 views

UnECM isn't working, returning “command not found”

I'm trying to get the unecm command of ecm tools to work, and I installed it through apt-get. It keeps returning command not found when I try to run it. I looked in Synaptic, and it says that it is ...
1
vote
2answers
28 views

Convert emf to PNG image using command line

Is there any command line tool available to convert emf to png images? I tried imagemagic, but it says decoder for emf not found
1
vote
0answers
31 views

Why are new folders I create in Ubuntu 12.4.5 disappear to lost+found?

Every time I've created a new folder that I want to save under Documents, they disappear to lost+found file. I've done the following suggestions by reading another post but it only created a recovery ...
0
votes
2answers
32 views

How can I send an XMPP message using the command-line?

What options are available on Ubuntu 14.04 to send XMPP (Jabber) messages using a command-line client? Background: I want to configure XMPP notifications for my Icinga server.
0
votes
1answer
24 views

What does this test really do (Loopback TCP Network Performance)?

I found in the phoronix test suite a micro benchmark called "Loopback TCP Network Performance 1.0.1", the same kind of command used here: nc -d -l 9999 > /dev/null & time dd if=/dev/zero ...
0
votes
2answers
54 views

Why can't I run apt-get update? [duplicate]

I just installed Chrubuntu 14.04 LTS with unity and this is what happens when I try to run apt-get update.
0
votes
0answers
32 views

black screen in single user mode

Trying to run without X, in order to install video driver on new Ubuntu 14.04.1 installation. But, when entering single user mode (either via grub or shutdown), I see lots of scrolling 'echo' on ...
5
votes
0answers
122 views

Access to /dev/ttyUSB0 and sudo

This is my first question here. I am running Ubuntu 12.04 and have an application accessing the USB port of computer. My Ubuntu username is gadu. Until today, i've always used the following command: ...
3
votes
4answers
253 views

How to write literal \n in a file as text from the terminal?

I write this in terminal: printf ' \n\necho -e \"writes (>> appends) in note.txt this text'\n'on 2lines (with "-e" and "'\n'" help)\" >> note.txt\n' > note.txt I get this in ...
1
vote
2answers
35 views

How to check if ufw is running programmatically

In most services (e.g. privoxy) there is a clean way to get the service status: ps -C [servicename] Then by checking the exit code ($?): 0: the service was running 1: not running This is not the case ...
2
votes
2answers
136 views

How do I replace multiple lines with single word in file(inplace replace)?

Content of my filename file is as following(for example): My block of line starts from here START First line second line third line END and end to here for example. I want to replace block of ...
1
vote
3answers
209 views

Changing ownership of folder not working!

I am trying to change the ownership of a folder and subfolders by typing either of these: sudo chown $user -R /usr/bin/.folder/ sudo chown $user -R /usr/bin/folder/ sudo chown $user -R ...
5
votes
1answer
93 views

A terminal based markdown editor that supports shortcuts

I am looking for a terminal based markdown editor which support shortcut keys like ctrl+b which will output **enter bold text here** or something like that to the markdown file. Same way for italics, ...
0
votes
0answers
30 views

Gnome 14.04 no interface for file and terminal

i'm using ubntu gnome 14.04 for maybe 3 months it was performing great. this days i installed several Gnome Extensions i loved them and today i was using it like i used to and suddenly i found that ...
0
votes
2answers
95 views

Why 'echo $(cat /path/to/fileName)' list my files and folders?

I'm working on a text-processing to providing an answer for user's question on Au. When I want to try printout the content of the file by echo $(cat /path/to/filename), it list my files and folders ...
0
votes
1answer
53 views

How to fix dangling symlink error

I am trying to install transmission on my ubuntu 14.04 server and I am unsure whether to skip this part or not. I am trying to give permissions to a folder with sudo chmod -R 770 ...
0
votes
1answer
44 views

Changing SH Directory

I want to have a main launcher that executes a python program The directory is /Downloads/Test/ #!/bin/bash/ python Test.py I want to be able to run the file in the terminal, without the following ...
2
votes
2answers
35 views

How to install the Jason plugin for jEdit?

I am a newbie in Ubuntu (14.04) so I am very appreciative if you can guide me how to install Jason as a plugin of jEdit. Jason installation homepage. jEdit plugin installation instructions. The ...
17
votes
4answers
3k views

Why wouldn't `which` command work for `cd`? Can't find the executable `cd` too!

I tried which cd and it didn't give a path but instead returned the exit code 1 (checked with echo $?). The coreutil cd itself is working, so the executable should be there right? I also ran a find ...
11
votes
4answers
1k views

What is the Command Line Equivalent of “Safely Remove Drive”?

What is the command line equivalent of the Nautilus feature called "Safely Remove Drive". Specifically, I am removing a USB flash drive.
0
votes
1answer
16 views

Explain in details egrep line

Hi i found in the internet egrep line. The line founds the longest line in the text. But i dont understand specific elements. Maybe someone could explain me all line? Here it is: egrep -n "^.{$(wc -L ...
0
votes
0answers
36 views

14.04: How to ssh/scp as root with NO password prompting? [duplicate]

We upgraded from 12.04 to 14.04. We have a dozens of processes that perform automation tasks for us and we use root with ssh/scp. After the upgrade root couldn't ssh/scp into the servers at all. We ...
0
votes
1answer
32 views

Customize Ubuntu GRUB

I want to fully customise the GRUB menu, is that possible? I mean, on the top of the grub screen, its written "Ubuntu GRUB 2.0 " such and such, I want to change these texts also. SUppose i want to ...
2
votes
2answers
72 views

Change text in many files

I have a C++ project, where each file has at its beginning some lines of license. Now, that my license have changed, I need to update it in each file. I don't want to do it manually, since its lots of ...
0
votes
0answers
34 views

rtorrent multiple commands after download finish

I cannot get two commands to work after a download is finished in rtorrent. First I want the completed files to move to another folder which works fine, but then I cannot get it to fire the second ...
1
vote
3answers
44 views

How do I find a recent file by date created?

If I want to find a file by name, I do the following: find -name app If I want to find a file by type, I do the following: find -name app -type d However, because app is such a generic name, ...
0
votes
1answer
63 views

Change manual page option color

I see the man page options very dark. I use the konsole terminal in Kubuntu. I want to change the colour, how can I do it. The solution that I've found only works until shutdown. The terminal ...
16
votes
1answer
1k views

What does su > echo “<username>” mean?

When I was entering the command su > echo "sachin" it was asking for a password. When I gave my password, some strange things happened as you can see: One more thing: there is another user, ...
0
votes
1answer
40 views

User in www-data group can't view directory

I've added a user (test) to the group www-data with the following command: sudo usermod -a -G www-data test When I try to view a directory with permissions 744, it says Server returned empty ...
0
votes
1answer
40 views

Open a shell script in gui [duplicate]

I want to run a shell script. Its a .sh-file. If i make double click, it opens the file in gedit. I know how to execute it in the terminal, but thats a huge way to get every time in the right ...
0
votes
1answer
36 views

Ubuntu 14 lubuntu terminal transparency does not work

I have tried other related question on lubuntu desktop, on Ubuntu 14, on my Lenovo Laptop Z50. But the screen is not transparent.
0
votes
2answers
48 views

Where can I learn Terminal Commands? [duplicate]

I am currently a new user to Ubuntu. I want to learn about terminal and how to use it properly, what it's used for, and reading material on how to learn the different commands properly. This is the ...
1
vote
1answer
75 views

How to use the rtcwake command

I would like to get my rtcwake command to wake my computer from sleep at 06:00 the following day. Here is the command I'm using: rtcwake -m mem -u -t $(date +\%s -d "tomorrow 06:00") So far it ...
2
votes
1answer
29 views

Terminal errors on terminal startup

Whenever I start the Terminal, I get two errors at the top that say -bash: export:, then a path string, and then : not a valid identifier. I know that these errors are being thrown because of an ...
1
vote
0answers
43 views

When I upgraded from 12.04 to 14.04 terminal did not recognize password [closed]

When I upgraded from 12.04 to 14.04, my terminal password no longer worked.
0
votes
1answer
78 views

The gsettings command line tool doesn't change the background

I've been using elementary os for the last half a year and now I have installed the latest Ubuntu on my system. On elementary os, I was using this command to change the desktop background: gsettings ...
1
vote
1answer
27 views

How to process output from smbclient

I connected to a Windows share using smbclient. In smbclient shell I can't pass an argument (ls -lh)! I can't place a pipe (ls | grep 4547)! I can't even redirect output to a file like in a basic ...
1
vote
1answer
35 views

How to remove “dpkg -l” line with “in” for unwanted i386 package on amd64 system?

I will really appreciate your help with this. When I run dpkg -l bash, I get this: Desired=Unknown/Install/Remove/Purge/Hold | ...
1
vote
2answers
77 views

Loop through all folders and executing script

I have a bash script install.sh in my current directory and I have a directory apps which contains multiple directories. I want to loop through these sub directories in app folder and execute some ...
-1
votes
1answer
41 views

why can the terminal not find my executable

Hey all i have been experimenting with make and Ubuntu 14.04 in order to automate the build i have created 2 simple programs test2.exe test2.c #include <stdio.h> int main() { ...
0
votes
2answers
31 views

unable to render java script in chromium browser in ubuntu 14.04

while trying to render a simple java script file to print fibonacci table ,I am getting nothing (a blank page) in chromium... as below <!DOCTYPE html> <html> <head> <title> ...
1
vote
0answers
50 views

Help with curl command line?

i've been trying to upload file with curl command line, but this message appear on my terminal curl: (7) SOCKS4 reply has wrong version, version should be 4.
2
votes
2answers
43 views

Ubuntu equivalent of CentOS success / failure

A lot of services in CentOS look like this (except green and red, respectively): $ sudo service blah start Starting blah: [ OK ] $ sudo service notrunning stop Stopping notrunning: ...