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

learn more… | top users | synonyms (1)

0
votes
1answer
54 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
56 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. ...
16
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
40 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
185 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
73 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
118 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
33 views

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

What file needs to receive edits in order to make such adjustments?
2
votes
2answers
101 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
491 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
143 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
205 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
63 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
114 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
687 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
68 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
35 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
92 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
38 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
1answer
62 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
99 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
23 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 ...
4
votes
2answers
243 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
49 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
33 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
94 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
51 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
3answers
266 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
39 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
93 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
43 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
282 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
112 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
67 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
74 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
82 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
182 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
64 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
59 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
49 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
50 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?
4
votes
1answer
113 views

One liner for padding columns (similar to printf) of output from the previous pipe command?

I'd normally use printf to pad each cell with enough whitespace to maintain header position over its respective column. Ultimately I can just iterate over each line of the output and do enough cut ...
1
vote
0answers
65 views

CLI network management

I've set up a console typewriter: a laptop with a minimal Debian install and no X server. I use it as a typewriter and I use wifi to sync my documents. I connect to wifi using wpa-supplicant. That ...
3
votes
1answer
261 views

What code runs when I type “sudo service nginx start”

I am having this problem: http://stackoverflow.com/questions/10939072/add-nginx-as-a-ubuntu-service-stop-and-reload-doesnt-work I am trying to understand if my code to start nginx is point to the ...
1
vote
1answer
75 views

Command works with tilde at the end. How?

I'm on Ubuntu. I have a script called myscripts in /usr/bin/myscripts This script simply changes the current directory to ~/Work/MyScripts Normally, I simply open a terminal and type ~/Desktop$ . ...
2
votes
5answers
63 views

Printing specific section of a line when a trigger value is present

I'm parsing data in the following format: prop1=value1:prop2=value2:prop3=value3+prop1=value4:prop2=value5 parts of the string are delimited by + properties can appear in any order the desired ...
2
votes
2answers
118 views

Custom help / man -like command (for reminders)

I often end up in a situation, where I don't use a command for a while, but then suddenly need to use it; and I need to wade through several help pages until constructing the command line I want. Case ...
0
votes
0answers
39 views

Is it possible to attach `kinit` to the first attempt to `ssh` without a Kerberos ticket?

My university uses Kerberos-based authentication for login to our unix servers. One way to get passwordless login is to run kinit, type my password, and then run ssh@host. For this setup, I do the ...
0
votes
0answers
27 views

What do the number in the file metadata mean [duplicate]

I typed ls -l in the terminal to get the file metadata of all files in the current folder What do the circled number : 1 & 2 represent in regard to the file metadata ???
1
vote
0answers
25 views

Set memory allocation for applications in Ubuntu [duplicate]

I have an application running under Ubuntu that tries to consume all available memory. Is there a way to specify and restrict the allocations available for a given application?