The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

1
vote
2answers
37 views

Enable second monitor from shell

So... I have two monitors on my Ubuntu machine. And every time I launch some Windows OpenGL application under Wine it turns off the second monitor. And leaves it turned off when the application exits. ...
2
votes
3answers
164 views

How is bc different from dc?

What are the differences between dc and bc calculators? When should I use dc and when bc?
3
votes
1answer
41 views

What is 'ls quote'?

Today I happened to press ' after ls So the command is ls' After I issued this command: [edit]Seems the image can't display properly > ls' quote> ls' zsh: command not found: ls\nls > ...
6
votes
4answers
112 views

How to randomize the output from seq?

I know I can use seq to generate a random list of numbers 1, 2, 3, 4... I want to get those numbers into a random order like 3, 1, 4, 2... I know I can use shuf to shuffle the lines of a file. So I ...
2
votes
1answer
23 views

Reboot when there is a hardware failure without physical access to machine?

I'm getting this error message whathever I do: $ sudo reboot bash: /usr/bin/sudo: Input/output error $ reboot bash: /sbin/reboot: Input/output error It's a hardware failure according to this ...
1
vote
0answers
33 views

Telnet IAC commands

I want to turn off character echoing in Telnet via linux command line by sending "IAC DON'T ECHO" command. I have been searching everywhere, and I couldn't find how to to do. Basically, I don't know ...
13
votes
3answers
2k views

Why isn't there any shell command to create files?

Attention please: I am not asking how to make a file from the command line! I have been using touch for making files for years without paying attention that its main purpose is something else. If ...
0
votes
1answer
42 views

Trouble creating symbolic link [closed]

I installed a software on OpenSUSE. However, to open it one has to type /usr/local/software/start_software everytime. I tried creating a symbolic link using sudo ln -s ...
0
votes
1answer
24 views

Highlight patterns in command output (grep-like but without excluding lines) [duplicate]

I need a command that colorizes some symbol sequence in output of a certain command. I'd like it like grep make it. $ some-command | grep symbol-sequence However grep removed lines that isn't ...
1
vote
0answers
44 views

Looking for an advanced Linux podcast [closed]

I am looking for some more advanced linux podcasts then I have been able to find so far. I commute 3+ hours each way. This is a great time to catch up on tech, learn some things I may have missed. ...
15
votes
6answers
2k views

Why do I have to cd out of a deleted directory?

On my server I have a directory structure looking something like this: /myproject/code I normally have an ssh connection to the server and 'stand' in that directory: root@machine:/myproject/code# ...
-3
votes
1answer
35 views

In what directory can I find the list of terminal commands or the set of scripts that give each one its purpose/power?

Is it hidden or accessible? Also, can you create a new script and define a new command to execute system-wide by adding it to this directory and giving it the same privileges?
1
vote
1answer
172 views

What are the differences between creating a directory inside /home and /home/$USER directories?

I want to create a folder inside /home directory and another one inside /home/$USER directory. Does another user on the same system may be able to access the folder which was inside the /home ...
0
votes
1answer
51 views

Recursively delete hidden directory & its files?

I want to delete all hidden directoris from a directory and its sub-directory. I also use rm -rf .directory_name this command is iterative command I want to a recursive command. Please anybody help ...
2
votes
1answer
50 views

Difference between “eval” and “source /dev/stdin”

What is the difference between eval and source /dev/stdin? For example, we can run a list of commands in various ways like this. with eval. comd="ls" eval "$comd" with source /dev/stdin printf ...
0
votes
0answers
32 views

Is it possible to edit the '$' or '#' symbols for users? [duplicate]

What file needs to receive edits in order to make such adjustments?
1
vote
0answers
12 views

What would cause the completion percentage of a command or process to change when executing it a second time in the same environment? [migrated]

While attempting to install OpenCV I noticed that my first attempt aborted only 47% complete. Once I executed "make -j8" again the percentage elevated to 60% completion. 1st attempt: make -j8 ...
2
votes
2answers
67 views

How to rename filename with ' or ? in file name?

I have a problem renaming a file that I'm not even sure which special characters I have in the file. I'm using CentOS 6 64bit. When I ls the file: Giko Suzo San?e - Ep1.avi but when view it in ...
6
votes
3answers
467 views

What is the difference between the use of ; and executing a script

I'm using bash as my main shell, but it's an open question and responses for shells others than bash are very welcome. If I'm typing interactively #original line #wget http://something.com ...
2
votes
4answers
94 views

List all commands of a specific Debian package

I want to know the commands that a specific Debian package offers me. For example lets say I installed a package called x.deb. This package surely contains some commands that i can use. How to list ...
4
votes
1answer
139 views

How can I get less or cat to use color in the output from .cat of my .bashrc, similar to vi 'ing it?

When I vi my .bashrc file it is colorized, i.e. but when I cat or less the file I get all white, i.e. How can I get cat (and less) to have color? cat does have color for my ruby .rb files but ...
0
votes
1answer
26 views

Logging into an RDS session from the command-line

Is it possible to start an xfreerdp session into Microsoft windows from a command-line only install of Linux? The command I use from a full blown Linux install is this: $ sudo xfreerdp ...
3
votes
1answer
28 views

Change script to use whiptail instead of zenity

I'm having difficulty converting some zenity based script to use whiptail instead. The working script looks something like this: #!/bin/bash xfreerdp /v:farm.company.com \ /d:company.com \ ...
0
votes
1answer
67 views

$DISPLAY environment variable is not properly set error message

Is it possible to start an xfreerdp session into Microsoft windows from a command-line only install of Linux? The command I use from a full blown Linux install is this: $ sudo xfreerdp ...
3
votes
1answer
40 views

setting output of a command to a variable [duplicate]

How can I put the output of head -15 textfile.txt to a variable $X to use it in an if command like this: if $X = 'disabled' then ?
0
votes
1answer
24 views

Is there any command to list all related files and folders to specified file in macosx?

I have many ctags in my macosx. When doing which ctags, it gave me /usr/bin/ctags. But I also want to know where is all related folders and files to this /usr/bin/ctags Any useful command?
0
votes
2answers
27 views

Unable to access a folder through group permissions

In order to secure data on my webserver, I have moved the PHP includes to a folder called /var/www-includes (outside of /var/www, the server root). I also ran chown root:wwwadmin and chmod 770 on that ...
0
votes
1answer
23 views

arm-linux-gcc command not working

I have installed the following : yum install gcc-arm-linux* but when i am trying to run the following command: ./arm-linux-gcc it is giving the output as: ./arm-linux-gcc: no such file ...
0
votes
0answers
28 views

Mount a dropbox directory without installing the dropbox application

This is most likely to be a duplicate question, but I could not find a simple answer for my problem. My situation is as follows: I have multiple accounts on different computing clusters. I want to ...
3
votes
1answer
69 views

What's the difference between \b and \< in the grep command

In the man page of grep, I see The symbols \< and \> respectively match the empty string at the beginning and end of a word. The symbol \b matches the empty string at the edge of a ...
1
vote
0answers
17 views

How to correctly set kernel command parameter for sdboot

Thease are the kernel command line parameter Kernel command line (user set) root=/dev/mmcblk0p2 rw rootwait console=ttyPS0,115200 I am trying to run linux from sd card, and the file ...
3
votes
2answers
199 views

Is there a way to 'tee' input to a program or script?

I'm trying to find a way to use an input file for a program in such a way that I can also use stdin. For example, say I have a SQL script that creates a table. I invoke it like this: mysql -p ...
1
vote
2answers
33 views

Incorrect output from cp, rm, and so on

When I run, say, cp, I get output like the following: # cp -v Foo Bar âFooâ -> âBarâ What's up with the weird â characters? Why is the shell doing this? It looks like some kind of strange ...
0
votes
1answer
20 views

Does the unix calendar program `pal` support line breaks?

The unix program pal is one of a variety of command-line calendar programs. Based on the man page, each line refers to an event, and it does not mention event descriptions that span multiple lines at ...
2
votes
1answer
27 views

How to talk to geoclue through its dbus interface?

I'm trying to better understand what geoclue does, and how to gain information from it. From my understanding, it can be accessed through it's dbus interface to find geographic information about the ...
5
votes
1answer
37 views

Lightdm service - contradictory results for `status` command

When I run in my gnome-terminal: service lightdm status everything looks OK and it is as expected: lightdm start/running, process 1221 But when I run: service --status-all 2>&1 | grep ...
1
vote
2answers
61 views

alternative to nslookup in rhel7?

nslookup does not come preinstalled in RHEL 7 Beta. I noticed even dig and host was not pre installed. I read couple of links which mentions nslookup is dead/deprecated, so is there an alternative for ...
0
votes
2answers
33 views

Prompt when copying multiple files?

When copying multiple files from one directory to another is there a way to get bash to run through each file and ask for y/n? I vaguely remember adding something to the end of my command like 'ok?' ...
0
votes
2answers
29 views

How to display technical codec info for a FLAC file?

Given a .flac file, how is it possible to query and display the technical info relating to the codec? I looked into man flac with no luck (the --analyze output is not humanly parseable). I'm ...
0
votes
1answer
41 views

How to issue a warning to administrator (when the administrator issues a system restart) when user has process running

Background I work on a development team and for each project we have a different server setup to emulate the environment of our customers. It can be hard to keep track of what I was doing on each ...
8
votes
3answers
201 views

How to execute a command repeatedly with different arguments?

I'm on Ubuntu. I copied some arguments (separated by newline) and I can use xsel to print them out like this $ xsel arg1 arg2 arg3 arg4 ... Now, I want to use each of these arguments for another ...
1
vote
1answer
39 views

How to extract the Nth file using 7-zip

I have an archive which, for reasons beyond my comprehension, contains 900 files all with the same name. That means that if I ask 7zip to extract them all, at the end there is just one file. The ...
1
vote
0answers
28 views

How to use fslint (in particular findnl) on the command line to actually mimic the behavior of the fslint-gui?

So I am trying the fslint tools. However, the help included in those tools as well as the man page don't indicate that the cleanup actions offered by the fslint-gui are also available through fslint ...
1
vote
2answers
30 views

MediaTomb fast image resize

The goal is to setup MediaTomb to (almost) instantaneously resize a 4-7MB jpeg from its original 8 or 12MP resolution down to somewhere about 1280x* so that it can be viewed on a mobile device. ...
0
votes
2answers
65 views

Using an email without email services

I know that I can send email with the mail command. Something like echo “Hello world” | mail -s “Hello world” foo@bar.com would do the trick. But, given that I and a partner are online, how can we ...
1
vote
4answers
70 views

command to find processor speed on zlinux machine

I have the following system : $ uname -a Linux <machine-name-snip> 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:58 EDT 2008 s390x s390x s390x GNU/Linux $ cat /etc/redhat-release Red Hat Enterprise ...
1
vote
0answers
57 views

/bin/ and /usr/bin Command Tutorials [closed]

Let me first start off by mentioning that I am not a Linux newbie. I have personally been using the GNU\Linux for nearly 5 years now. However, often times I run across the commands under /bin/ and ...
0
votes
2answers
51 views

How to set Linux to ask for authentication when running potentially dangerous commands?

I've faced times when I accidentally ran dangerous commands and lost all my data. How do I set Linux to ask for current user password or root user password when running potentially dangerous commands ...
0
votes
2answers
42 views

file(1) command termination when using the -f - option

Say I'd like to use the file -f - command inside a script, and send some input using the stdin, when I'm finished I'd like to terminate it gracefully, but unfortunately I haven't found any way to do ...
0
votes
2answers
33 views

htop displays incorrectly on different vps

When I use "htop" command for linux (+F5), layout on 2 my vps different: Why on my first server I see broken tree?