04-29-2012
Location in prompt / meaning `
Hi everybody,
I'm new to this and I was trying out some basic UNIX-commands on my MacBook (Mac OS X Lion 10.7.3).
However suddenly the prompt line is changed.
The prompt used to be: macbookname username$
Suddenly the prompt is changed and has now the location in it. So now it is: macbookname:Foldername user$
The foldername changes to the folder I'm currently in.
I have a clue about what this has caused, I made a mistake by typing in cd ` instead of cd ~ The ` is the grave accent.
I can't find anywhere on the internet what cd ` does or what the single ` means in UNIX.
So basically I have 2 questions:
1) How do I remove the location (Foldername) out of this line?
2) What does cd ` mean and has that something to do with what happened.?
Thinks for any help.
Ariel1
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
2. Shell Programming and Scripting
Hi,
i have to transfer of files of User1 located in Location1 to user2 located in Location2 using shell script. Please suggest me. (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
3. Shell Programming and Scripting
Hi Everyone,
I have 1.txt
here
a
b
c' funny"yes";
d
e
The finally output is:
here
a
b
c
d
e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies
4. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to unix and shell scripting.
Please help me in resolving the below issue.
In my shell script I have a variable which stores the different files with the path. Now I need to move all the files one by one to another location.
----
1.... (4 Replies)
Discussion started by: kpagadala
4 Replies
6. Shell Programming and Scripting
Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies
7. Shell Programming and Scripting
I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt.
Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies
8. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
9. Shell Programming and Scripting
A) I would like to achive following actions using shell script. can someone help me with writing the shell script
1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using
find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies
10. Solaris
Hi,
on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies
LEARN ABOUT REDHAT
des_read_pw
ui_compat(3) OpenSSL ui_compat(3)
NAME
des_read_password, des_read_2passwords, des_read_pw_string, des_read_pw - Compatibility user interface functions
SYNOPSIS
int des_read_password(DES_cblock *key,const char *prompt,int verify);
int des_read_2passwords(DES_cblock *key1,DES_cblock *key2,
const char *prompt,int verify);
int des_read_pw_string(char *buf,int length,const char *prompt,int verify);
int des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify);
DESCRIPTION
The DES library contained a few routines to prompt for passwords. These aren't necessarely dependent on DES, and have therefore become
part of the UI compatibility library.
des_read_pw() writes the string specified by prompt to standard output turns echo off and reads an input string from the terminal. The
string is returned in buf, which must have spac for at least size bytes. If verify is set, the user is asked for the password twice and
unless the two copies match, an error is returned. The second password is stored in buff, which must therefore also be at least size
bytes. A return code of -1 indicates a system error, 1 failure due to use interaction, and 0 is success. All other functions described
here use des_read_pw() to do the work.
des_read_pw_string() is a variant of des_read_pw() that provides a buffer for you if verify is set.
des_read_password() calls des_read_pw() and converts the password to a DES key by calling DES_string_to_key(); des_read_2password() oper-
ates in the same way as des_read_password() except that it generates two keys by using the DES_string_to_2key() function.
NOTES
des_read_pw_string() is available in the MIT Kerberos library as well, and is also available under the name EVP_read_pw_string().
SEE ALSO
ui(3), ui_create(3)
AUTHOR
Richard Levitte (richard@levitte.org) for the OpenSSL project (http://www.openssl.org).
0.9.7a 2001-10-25 ui_compat(3)