Questions tagged [shell]

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion. Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion.

Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

The name was first used by Unix operating system for an interpreter used for command prompt, but currently the term shell refers to BASH(Bourne Again SHell) and other command prompt interpreters too.

1348 questions
-1
votes
1 answer

Cacti Export Tool Script

I'm looking for any script that possible to export graph of Cacti into CSV/text format. I have several interfaces in different devices, so I want to export those graph by using cron's job for sending report of bandwidth utilization…
Sokphak
  • 13
  • 1
  • 5
-1
votes
3 answers

What shell scripts have run

Is there any way to determine what shell scripts ran within a certain time frame? I.e. I need to know all the shell scripts that ran yesterday between 2:00 an 5:00.
-1
votes
3 answers

grep command does not search the complete pattern

I am facing a problem while using the grep command in shell script. Actually, I have one file (PCF_STARHUB_20130625_1) which contains below…
-1
votes
1 answer

accessing own XAMPP directory through shell putty

I am trying to compare directories from a shared host server and directories located in my own computer. Own computer has XAMPP as the server. To compare these two directories, I need access to the directories in folder htdocs (i.e.…
IberoMedia
  • 203
  • 2
  • 4
  • 8
-1
votes
1 answer

filenames, ASCII unicode escaped sequences to UTF8

I'm not sure if I've grasped the issue here so if I haven't just say so and I'll edit the title. My problem is the following: I have an Ubuntu 12.04 server (UTF-8 locale) to which users upload files via a web app or through shell. So I have no…
D.Mill
  • 379
  • 5
  • 15
-1
votes
1 answer

How to tar into a directory.

I would like to be able to tar all of my files so that when the are extracted they're in a sub directory I have specified. For example if I have File1 File2 and File3 inside of my current directory I would like to run a tar -jcvf files.tbz2 ./* in a…
Lethjakman
  • 101
  • 2
-1
votes
1 answer

Different behavior from ubuntu server and ubuntu client on windows

#!/bin/bash # Reading cat /home/radiare/Desktop/first.txt | while read LINE do if [ "$LINE" == "false" ]; then echo "Inside first loop" break fi done cat /home/radiare/Desktop/second.txt | while read LINE do if [ "$LINE" == "false" ]; then echo…
user1597811
  • 101
  • 2
-1
votes
3 answers

"su" does not work on FreeBSD

Below I sun "su" command on FreeBSD: FreeBSD rand.vstyle.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0 amd64 This is server RAND :) [svn@rand ~]$ su logostudiotest1 /bin/ls Password: /bin/ls: /bin/ls: cannot execute binary file Why "su" does not work?!
porton
  • 312
  • 1
  • 14
-1
votes
2 answers

Compress only some files type

I start on shell and i don't know how to compress a folder including just the .jpg and .jpeg files. Anyone can help me? Thank you
Sebastien
  • 99
  • 2
-1
votes
1 answer

find a date in a log file

I want to find a date in a log file and print from that date till the end of log file and that date is 5 days prior to the end of log file which is 27/Dec/2002 the log file is like this : 213.64.56.208 - - [01/Jan/2003:05:42:53 +0100] the whole…
matarsak
  • 37
  • 5
-1
votes
1 answer

problem with while loop

here is the script I wrote but it seems it has problem ! I want to print the last X days of a log file ! and here I assume that X is 5 to later generate it ! please help ! for d in \ $(sed -nre 's/.*\[(..)\/(...)\/(....):(..:..:..) .*/\1 \2 \3…
matarsak
  • 37
  • 5
-1
votes
3 answers

Determine all users on the Linux machine

Possible Duplicate: How to list all users and groups on linux? How to determine all the users on a Linux machine (not only the ones who are logged in)? I searched and found the following command: $ cat /etc/passwd | grep "/home" | cut -d: -f1 But…
sumit
  • 147
  • 1
  • 1
  • 6
-1
votes
2 answers

How to make jailed shell?

How to make jailed shell? jailed shell means limited shell account for linux users. (as cpanel defination) I don't use any control panel like cpanel.
suzannak
  • 1
  • 1
-1
votes
2 answers

Shell script output and input from c programs

I am new to Shell scripting.How am I supposed to take the output of a c program that i execute and give it as an input to another c program all using shell.
myax
  • 9
  • 1
  • 2
-1
votes
1 answer

Debian: setup aliases in /etc/profile

I need to run a script in /etc/profile to setup aliases for all users login thru SSH. But this doesn't work: setup_aliases.sh #!/bin/bash alias d='sh /opt/d/d.sh' alias dc='d c' alias de='d e' ------------ append this to: /etc/profile .…
ngduc
  • 109
  • 2