9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
2. What is on Your Mind?
Hello,
Just wanted to have a suggestion on UNIX carrier path and I couldn't found any proper forum/blog where I can put this question better than this one.
I have been working on Solaris from past 13 years and some years on Linux. It was completely on Admin side and never on development or... (12 Replies)
Discussion started by: solaris_1977
12 Replies
3. What is on Your Mind?
Hi All,
This question is regarding career path. I was not sure about which forum I should drop it, so putting it here.
I have 12 years of experience on UNIX i.e. majority of Solaris and some of Linux (Suse & Red Hat). Since starting I have been working on 100% administration side and I am not... (0 Replies)
Discussion started by: solaris_1977
0 Replies
4. What is on Your Mind?
First I like to say hi to all the people in this community. The reason I am here is because I am lost and looking for advice on my career path.
Here is a short history. I worked in the IT industry for about 10 yrs, sys admin, QA, and developer. During 911 I lost my job. Since then I have... (4 Replies)
Discussion started by: navy
4 Replies
5. What is on Your Mind?
Hi Admins and Moderators,
I am already in job for more than 2 years.
I need some guidance in deciding the career path.
Please suggest what should be the correct forum to post this to ?
Rgrds,
Rohit
Moved thread to appropriate forum. (0 Replies)
Discussion started by: csrohit
0 Replies
6. Programming
Hi,
I am having experience on Perl and C# and worked as Windows Sytem Admin and now iam planning to become a UNIX developer.
I am having knowledge on basic UNIX..
can any one suggest me any good material for c/c++ UNIX programming.
on what all things a UNIX Programmer needs to... (0 Replies)
Discussion started by: chandrareddy1
0 Replies
7. What is on Your Mind?
Hi,
I've been in the IT field for a few years now, less than 10. I've done a little of everything from database administration, development, systems administration, and unix administration. Although, I wouldnt say I'm a senior level in any of those. Unix definitely stands out in my preferences... (5 Replies)
Discussion started by: NycUnxer
5 Replies
8. What is on Your Mind?
This is a very serious post. I am a Cell Technician (Cellular Base Station Tech) who is completely bored because my job has basically evolved into a Field Secretary position. I love working on T1's and troubleshooting equipment outages and so on and so forth but my job has become VERY... (2 Replies)
Discussion started by: CoopDeVille
2 Replies
9. UNIX for Dummies Questions & Answers
I just completed my solaris 10 certification, i also plan on learning shell scripting in depth can anyone advise what is the best way to job hunt in this field i have extensive expierience on windows networking and i am based in atlanta, ga
Any suggestions??? (0 Replies)
Discussion started by: niravx18
0 Replies
CHDIR(2) Linux Programmer's Manual CHDIR(2)
NAME
chdir, fchdir - change working directory
SYNOPSIS
#include <unistd.h>
int chdir(const char *path);
int fchdir(int fd);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
fchdir():
Since glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || _POSIX_C_SOURCE >= 200809L
Before glibc 2.12:
_BSD_SOURCE || _XOPEN_SOURCE >= 500 _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
DESCRIPTION
chdir() changes the current working directory of the calling process to the directory specified in path.
fchdir() is identical to chdir(); the only difference is that the directory is given as an open file descriptor.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
Depending on the file system, other errors can be returned. The more general errors for chdir() are listed below:
EACCES Search permission is denied for one of the components of path. (See also path_resolution(7).)
EFAULT path points outside your accessible address space.
EIO An I/O error occurred.
ELOOP Too many symbolic links were encountered in resolving path.
ENAMETOOLONG
path is too long.
ENOENT The file does not exist.
ENOMEM Insufficient kernel memory was available.
ENOTDIR
A component of path is not a directory.
The general errors for fchdir() are listed below:
EACCES Search permission was denied on the directory open on fd.
EBADF fd is not a valid file descriptor.
CONFORMING TO
SVr4, 4.4BSD, POSIX.1-2001.
NOTES
The current working directory is the starting point for interpreting relative pathnames (those not starting with '/').
A child process created via fork(2) inherits its parent's current working directory. The current working directory is left unchanged by
execve(2).
The prototype for fchdir() is only available if _BSD_SOURCE is defined, or _XOPEN_SOURCE is defined with the value 500.
SEE ALSO
chroot(2), getcwd(3), path_resolution(7)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-20 CHDIR(2)