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

learn more… | top users | synonyms (5)

0
votes
1answer
23 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
22 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 ...
2
votes
1answer
29 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 ...
0
votes
2answers
48 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 ...
0
votes
0answers
42 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 ...
0
votes
3answers
66 views

what is background?

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 ...
2
votes
1answer
35 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
23 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
18 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. ...
5
votes
2answers
257 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 ...
0
votes
2answers
24 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 ...
13
votes
2answers
218 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 ...
3
votes
1answer
39 views

How do you use ubuntu-drivers-common or software-properties in the command line to change graphics drivers?

Martin Pitt removed jockey-text in Ubuntu 14.04 (it's also broken in 13.10 apparently) but I used it for changing graphics drivers in the command line when X wasn't working. How do I do this now (he ...
0
votes
1answer
10 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
8answers
358 views

How to sort by row from terminal

I was looking at this question and I wondered if the following could be done from terminal. I did it in python, just want to see if it could be done from terminal, bash scripting or whatever. ...
7
votes
3answers
464 views

How to find the difference between a script file and a binary file?

$ ls -l /usr/bin total 200732 -rwxr-xr-x 1 root root 156344 Oct 4 2013 adb -rwxr-xr-x 1 root root 6123 Oct 8 2013 add-apt-repository list goes long --------- In the above adb is ...
1
vote
3answers
165 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 ...
6
votes
3answers
105 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?
0
votes
1answer
26 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
0answers
27 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 ...
0
votes
1answer
19 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 ...
12
votes
1answer
282 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 ...
4
votes
3answers
509 views

I pressed ctrl with - and now my terminal view become so small, how to recover?

I thought ctrl with + should work, but it doesn't. How could I recover it and zoom out the views?
1
vote
0answers
16 views

PAM authentication using ssh key instead of password

When I try to use chsh to change my default shell, I get prompted for my user password. The problem is I log in using my SSH key and do not have a user password - by design. Yes, I can set a ...
0
votes
1answer
41 views

how to leave a process running in backgroun on a terminal [duplicate]

I am running some simulation through a server. I usually login in the server using ssh command from the shell of my laptop. then I run emacs in terminal mode and with it I start some python ...
0
votes
0answers
26 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
1
vote
1answer
26 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 ...
4
votes
1answer
42 views

How to list all the shell keywords?

$ type if if is a shell keyword I don't know the other shell keywords. Is there any command to list all the bash shell keywords.? Note: help -m displays both shell builtins and shell keywords.
2
votes
1answer
27 views

What's the difference between shell builtin and shell keyword?

When i run these two commands, i get $ type cd cd is a shell builtin $ type if if is a shell keyword It is clearly shown that cd is a shell builtin and if is a shell keyword. So what is the ...
0
votes
1answer
22 views

Vim cannot find syntax.vim

Recently, I needed to build Vim from source to use a plugin that required Lua interpreting. This worked fine on my laptop, but my tower computer is having some issues. Any time I run Vim, I recieve ...
1
vote
1answer
26 views

Ctrl-space not working in terminal after installing Cinnamon

I recently switched my desktop environment from Gnome to Cinnamon. In my terminal, I use tmux, and have my prefix key mapped to Ctrl-space. After the upgrade, Ctrl-space stopped being captured by ...
0
votes
0answers
24 views

Permissions not changing in Terminal [closed]

I have a web server and I'm trying to change the permissions to my var/www/home folder so that it'll show on the Internet. I have created the folder home into the folder var/www/ When I do ls -l ...
0
votes
1answer
35 views

How to find the path of an mounted iso file?

I want the full path of the original iso file which was mounted inside /media/iso directory.I don't know how to get that iso file path. I tried lsblk,sudo blkid commands but nothing seems to work. ...
1
vote
2answers
23 views

How can you get the number of the processes where program is started?

First of all I save in a file all of the working processes. ps -el > file1 My idea is to count the number of lines in file1 where vi is present. I tryied something like wc -l | grep vi file1 ...
0
votes
1answer
27 views

Is it possible to highlight a text and to use a keyboard shortcut?

In order to install something usually have to run some commands. In order to make it quicker, could I highlight some command text on the internet I want to run in terminal, then press a keyboard ...
0
votes
1answer
12 views

Changing .bashrc to allow a call to “android” from any directory

I can successfully do the following command in the directory listed kn@MrComp:~/.android_os/adt-bundle-linux/sdk/tools$ android list targets Available Android targets: ---------- id: 1 or ...
1
vote
0answers
12 views

imwheel bug, scrolling doesn't work in terminal

I'm using 'imwheel' on Ubuntu to increase scrolling speed of my mouse wheel. Here is the configuration file: ".*" None, Up, Up, 3 None, Down, Down, 3 While it works fine in ...
-3
votes
1answer
43 views

I need a step-by-step guide to navigating directories in Terminal [duplicate]

I am a Linux/Ubuntu Noob and I have Saucy Salamander. Lately I installed the Android tablet emulator for Ubuntu using VirtualBox from the software center. I followed all the steps listed here but when ...
0
votes
0answers
20 views

command not found when trying to set governor

In response to my questioning here: How to really check current cpu Hz? Sylvain Pineau told me to do this command to change cpu governor: echo "powersave" ...
3
votes
1answer
30 views

Append current timestamp on files name from background running command

Following is command that I have used in bash script and it is run on background: sshpass -p prakash12 ssh -t -p $1 prakash@localhost './test_new_update_script.sh > ...
1
vote
1answer
95 views

Difference between 'grep' in Ubuntu and Kali Linux?

I always used the following command to filter out my contacts email addresses from a directory in Kali Linux: grep -rIhEo "\b[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+\b" >> 1A I tried ...
-1
votes
3answers
43 views

Open the first (or any) file from command line

Suppose I'm browsing a directory from command line with lots of files with long names. Is there a easy/fast way to open the first file from the directory, or simply any of these files? In my case they ...
1
vote
2answers
18 views

Bash/zsh: Undo erase backwards (ctrl+w)

In Bash and Zsh ctrl+w erases backwards from where the cursor is. Is it also possible to undo what I had erased? Thanks!
0
votes
2answers
21 views

lscpu output differs when called indirectly?

I use lscpu | grep 'MHz' to get my clock speed. I am getting different results based on the method I am calling this command. Method 1: typing it in the terminal CPU MHz: 1200.000 Method 2: ...
1
vote
1answer
39 views

how to go to a directory in gnome terminal which contains spaces as its name? [duplicate]

I tried to md5sum a image but the path is long, and there is no option in the file manager to open that path in gnome-terminal. Like right-click-> open current directory in terminal like it used to be ...
2
votes
1answer
27 views

Manual time syncing

Is there a command or some option in KDE environment with which I can manually sync system's time and date with a time server (eg Public Time Server (pool.ntp.org))?
2
votes
3answers
56 views

Get absolute path of files using 'find' command

Is there a way to get absolute path of a file that is being searched? For example: find .. -name "filename" It gives me results like ../filename but I want the full path. What I need is to find ...
1
vote
2answers
170 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
2answers
64 views

export $PATH not working correctly on Ubuntu 13.10

I have connected to remote Linux desktop (Ubuntu 13.10) using ssh command and try to run following command on remote desktop. On my host machine I am using Ubuntu 12.04. On remote desktop: I have ...