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

learn more… | top users | synonyms (5)

0
votes
0answers
10 views

Zeitgeist search from command line

I have a folder with a few hundred pdf files. In the past months I opened quite a few of them and would like to know which I actually opened. I know there is Zeitgeist which logs file activity but ...
46
votes
22answers
5k views

Any command line calculator for Ubuntu?

I am looking for a Calculator which can do calculations in the terminal itself without any other extra prefixes and suffixes. For example: If I typed something like 10000-9000 in the terminal, the ...
8
votes
7answers
7k views

How to print a regular file to pdf from command line

In gedit, printing a file gives an option of printing to file where the file can be saved as a pdf. How can I do the same thing from the command line?
1
vote
4answers
1k views

How to remove special 'M-BM-' character with sed

File: https://dl.dropboxusercontent.com/u/32919746/file I have file that was created by copying content from DOCX document with LibreOffice into text file. I have modified file with sed to remove ...
0
votes
4answers
91 views

What is a background process?

I always heard about background (but not desktop background) what is this really is? To better approach look at the answer of this link what is technical difference between daemon, service and process ...
41
votes
7answers
4k views

How can I easily share the output of a command or a text file with others?

I recently asked a question on AskUbuntu (or somewhere else), and a comment or answer asks me to paste the contents of some file or the output of a command to troubleshoot my problem. How do I do ...
0
votes
1answer
35 views

What commands go wild with wildcards?

Having read apt-get remove with wildcard removed way more than expected. why? (after making a similar mistake myself), I am significantly more cautious about using * in commands with which I am not ...
0
votes
2answers
34 views

Move images from sub-folders into new sub-folders

I have a folder composed of M several sub-folders, each of them containing some text files and N images (*.png) This is what the tree looks like: /parent/ /sub-folder1/ /data1.dat /data2.dat ...
0
votes
2answers
53 views

Terminal history

I looking for the terminal history. Not only the command history that is showed by typing history but terminal processes within a command. That is, I want to record the output displayed by the ...
2
votes
1answer
43 views

ufw firewall disabled - How to turn it back on?

I am using Ubuntu 12.04 and just recently noticed, that my ufw-firewall is turned [off]. I know It's turned [off] by default, but when I set Ubuntu up, I turned [on] the firewall with: sudo ufw, but ...
2
votes
1answer
31 views

Command 'latex2html'

Wonder whether this is an ubuntu question or a latex question: I am trying to output my LaTeXed cv in HTML format, using latex2html - probably the easiest way. My objective is this I want all ...
1
vote
1answer
5k views

How do I change the screen resolution using Ubuntu command line?

I installed Ubuntu and the resolution of the desktop is so big it only shows about 50% of the screen but is shows up normal while using command line. What would I type in the command line to change ...
0
votes
0answers
49 views

Using Ubuntu OS as a thin client on machines for users to access and then remote onto a windows terminal server

I was wondering whether anyone had ever installed Ubuntu OS onto a VM and then used it as host system to enable users to login to a windows terminal server from it or if this is possible at all , any ...
6
votes
2answers
270 views

How to tell which parameter is being supplied to a command with a redirectioin operator?

This works: $ echo "notify-send HELLO" | at now This doesn't: $ at now < echo "notify-send HELLO" It says 'file or directory not found". I understand there's a -f option to this ...
2
votes
1answer
44 views

Is there a plugin for the terminal which allow to detect and open files?

I'm looking for a terminal plugin/extension that would allow me to detect files path in terminal output and open them in a text editor by clicking on them. The perfect solution would open the file at ...
0
votes
0answers
37 views

Openssl - SHA256 (Base-64) using command line

I have to add hash total of a string to a file. Hash total is SHA-256 (Base-64). String stream would be as below: Transaction Type|External System Reference Number|Original External System ...
-1
votes
0answers
20 views

restrict shell commands for munin-node (netcat)

I've spent fair amount of day fiddling with this, and I'm about to give up (for today). I followed instructions outlined here: http://munin-monitoring.org/wiki/Native_ssh All works at the moment. ...
0
votes
1answer
298 views

How to launch Dolphin file manager from command line or bash script (and give it a path)?

I want to open a Dolphin window from a bash script. It may not be relevant to the question, but I will be connecting to an SFTP location in Dolphin. First I tried this command from my script: ...
0
votes
2answers
25 views

Question about lynx text browser

When I go to visit this url https://github.com/search?q=jquery+stars%3A>10+forks%3A<10&type=Repositories using this command for lynx: lynx -accept_all_cookies ...
1
vote
0answers
83 views

How to display Kanji in non-X terminal?

I have Ubuntu 12.04 Desktop installed, but disabled the start of X, because I do > 99 % of my work in a terminal. However, I have found out that the "Linux" terminal is unable to display Kanji. I have ...
17
votes
2answers
278 views

How to change number of workspaces from command line?

I'd like to change org.compiz.profiles.unity.plugins.core -> hsize and -> vsize from command line. I thought I could use gsettings set org.compiz.profiles.unity.plugins.core vsize 4 but then ...
0
votes
1answer
195 views

How to download specific images from a site index with wget?

Let's suppose that I have access to a site index and in a specific directory of this index I have a lot of images, but some of those images were resized (the originals are still there). The resized ...
0
votes
0answers
93 views

Not getting visual interface, just 'tty shell', after system update [duplicate]

I installed Ubuntu Unity 12.10 on my Sony Vaio and it was working well, until somewhere after installing the updates and installing Unsettings, Cairo dock and Ubuntu-Tweek-Tool, a window displays ...
37
votes
6answers
79k views

How do I find the kernel version, Ubuntu release and disk partition information from the terminal?

Which commands will give me information about following? Kernel Version Distribution version no. All partition size of the HDD in Terminal
0
votes
3answers
2k views

Can/How to burn a .flac to an audio cd

This is a two part question. Can I burn .flac to audio cds? this might seem silly, but I was an early adopter of mp3 players. Think several years before Ipods. I never really had the need to burn ...
19
votes
5answers
795 views

How to view multiple files in single terminal?

Sometimes I may need to access multiple log files for troubleshooting , but I don't want to open them in different terminals. What I want is to open them in same terminal. Is there any way I can ...
20
votes
6answers
1k views

Repeat a command every x interval of time in terminal?

How can I repeat a command every interval of time, so that it will allow me to run commands for checking something or monitoring directories ? I don't need a script, i need just a simple command ...
0
votes
1answer
14 views

Start scheme with 'scheme' instead of 'mit-scheme-x86-64'

I started using Ubuntu to learn how to use terminal and program and stuff. So I found a way to get scheme on my machine because I'm reading Structure and Interpretation of Computer Programs but I have ...
3
votes
2answers
5k views

connect to internet through 3g dongle in ubuntu server

As the title says, can i connect to internet through 3g dongle in ubuntu server fresh installation Any terminal / manual way? My purpose is to get connection using dongle in ubuntu server minimal ...
1
vote
1answer
2k views

Why does the Solarized theme for Oh-My-Zsh look duller on Ubuntu than on Mac?

I'm using the Solarized Dark theme for Oh-My-Zsh on both my Mac and Ubuntu computers, but the Ubuntu terminal looks terrible in comparison. The colors are dull and the names of folders are just plain ...
3
votes
3answers
1k views

Remove files of certain type, retain directory tree

I'm trying to move a bunch of .doc and .xls files, which are stored in a bunch of folders and subfolders, to a new location. I previously tried cp -r **/{*.doc,*.xls} /wherever/you/want/, which worked ...
6
votes
3answers
223 views

How can I show all file types contained in a directory?

Is there any command which tells me in the specific directory which types of files exist? I can find out the file type by using a command like od -c myfile | less. But I don't know how to do it for ...
15
votes
5answers
25k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
1
vote
3answers
182 views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
4
votes
5answers
30k views

Every command fails with “command not found” after changing .bash_profile?

I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting: env: bash: No such file or directory env: bash: No such file or directory env: bash: No such file or ...
6
votes
3answers
122 views

How to list all the packages which are installed from PPAs?

I installed many packages from many PPAs on my system. I want to list all the installed packages which are installed from launchpad PPAs, not repositories. Is this possible through command-line?
2
votes
3answers
3k views

How to forward-search-history with the reverse-i-search command (ctrl+r)?

In the readline manual # man readline The following describes how to search backward and forward. reverse-search-history (C-r) Search backward starting at the current line and moving `up' through ...
10
votes
4answers
10k views

Command line tool to crop PDF files

I am looking for an open source command line tool to crop PDF file just like we can do in Adobe Acrobat Pro. I have tried PdfTk, ImageMagick, PyPDF, and GhostScript—all with no success so far.
11
votes
3answers
4k views

How to list packages from a ppa/source in command line?

I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that? dpkg --list lists all files or just the filename.
0
votes
0answers
39 views

How to enable lock screen button in Unity after installing xscreensaver?

I need this because I replaced gnome-screensaver with xscreensaver, so the lock screen button does not work. The alias path - may be the XY problem AFAIK alias is usually used to make 'shortcut' for ...
1
vote
2answers
175 views

How would I make a program go back to the start.

So I have my program and I cannot figure out how to make the program loop back to the start. I have more of a program however this is the part where I would like the program to restart if I picked yes ...
0
votes
1answer
476 views

How to merge two .iso split-files into one image-file?

I am following this tutorial, in order to install Android onto my computer via Virtual Box. My problem is, they want you to download: liveandroidv0.3.iso.001 liveandroidv0.3.iso.002 Then they ...
0
votes
1answer
191 views

Terminal wont render in ubuntu 11.10

I am completely new to Ubuntu and I am getting used to terminal syntax and commands. When I click on my terminal to open it, nothing appears, it says it opens and I can still copy and past commands ...
14
votes
1answer
312 views

Why does `type which` say that `which is hashed`?

In case of shell-builtins (eg type itself): $ type type type is a shell builtin $ which type <Doesn't return anything since it's a shell builtin, silently exits> In case of commands ...
0
votes
1answer
29 views

No sound in Xubuntu after starting from command line

When I first installed Xubuntu, everything was working fine. Then I encountered a problem where it would start up in the command line with no GUI, but I fixed that by typing startx. The problem, ...
1
vote
0answers
19 views

Find and Delete Empty Directories [duplicate]

How to Find Folders (Directories) That are empty (Not Containing Any Files) and Delete Them By Using Terminal Command or Another Method. Filtration (Finding Directories or Files) Less than 'N' bytes ...
0
votes
1answer
21 views

Closing - not killing - gedit instances via the terminal (to save changes)?

How can I close multiple instances of Gedit windows through the command line? Some of the windows may contain changes to documents. So, I would like to be prompted to save them or not. If I use ...
19
votes
5answers
16k views

How to list all variables names and their current values?

Including not only $HOME, $PWD etc but any other you have defined.
7
votes
5answers
7k views

Automatically enter input in command line

I'm running a script that it requests entering 'y' on each operation, I am looking for a solution like $ ./script < echo 'yyyyyyyyyyyyyy' to pass all my inputs in one time.
2
votes
3answers
2k views

xhost setting at boot

I am able to set xhost at boot in Fedora by editing /etc/gdm/Init/Default and for example add: /usr/bin/xhost +local: How can similar be done in Ubuntu? I want that the /usr/bin/xhost +local: ...