Questions tagged [unix-shell]

124 questions
-2
votes
1 answer

How to hide the 'dn:' value in Ldap unix shell commands?

I got a problem to solve. How do i hide the 'dn:' part ? dn: uid=trebbouh,ou=2017_paris,ou=2017,ou=paris,ou=people,dc=42,dc=fr This is the command I used : ldapsearch -x -LLL uid=$USER -W
Muska
  • 1
  • 1
-2
votes
2 answers

Create symlink if source exists

I'm trying to make a symlink to a directory if it exists only and cannot figure out how. I tried various ideas I found and none worked. Most notable idea that i thought would do the job was to use ln -s ls /path to test the dir for ln but it did not…
-2
votes
2 answers

Run bash script with command line arguments

I want to do /usr/bin/bash myscript.sh -args which, as it stands, runs the script but doesn't pass the args to it. I realize that the conventional syntax is simply ./myscript.sh -args but I'm curious as to what I need to do in order to call the…
Trey Parkman
  • 59
  • 1
  • 3
-3
votes
1 answer

Solaris - How to tell whether machine is running SPARC or Intel Chip

What command can I run to tell whether SunOS 5.10 is running a SPARC or Intel chip?
1 2 3
8
9