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
![](../../users/profiles/433090.webp)
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…
![](../../users/profiles/143515.webp)
transilvlad
- 173
- 14
-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…
![](../../users/profiles/45028.webp)
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?
![](../../users/profiles/342139.webp)
Kellen Stuart
- 97
- 4