Sponsored Content
Operating Systems AIX Size of file /dev/./null 2>&1 Post 302951867 by vbe on Tuesday 11th of August 2015 09:42:50 AM
Old 08-11-2015
if you go in /dev and type this command:
Code:
 ls -l n*

what do you get?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/dev/null 2>&1 question

Hi, suppose you have the following line at your crontab : 5 * * * * /usr/mine/script > /dev/null 2>&1 now i understood that the " > /dev/null 2>&1 outputs both Standard outpout and Standard Error messages to the /dev/null device or file... the first part , " > /dev/null " transfers... (1 Reply)
Discussion started by: BAM
1 Replies

2. UNIX for Dummies Questions & Answers

Creating a file / /dev/null

First of all, hello there cOmMuNity ! :cool: Well, I've got two basic questions: 1) In how many ways it's possible to create a file ? I know one manner using "touch", other typing something like echo "" > file ... The fact is that I need to overwrite the file if it exists, and touch... (8 Replies)
Discussion started by: 435 Gavea
8 Replies

3. UNIX for Advanced & Expert Users

/dev/NULL can't open this file ??

when i write the following two statements : cp /dev/NULL /clocal/mqbrkrs/user/mqsiadm/sanjay/dspmq_temp cat /dev/NULL > /clocal/mqbrkrs/user/mqsiadm/sanjay/dspmq_temp its gives me errors like : cp: /dev/NULL: A file or directory in the path name does not exist. cat : /dev/NULL can't open... (2 Replies)
Discussion started by: varungupta
2 Replies

4. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

5. Shell Programming and Scripting

Meaning of "> /dev/null 2>&1"

Hi, I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file: > /dev/null 2>&1 For example, the line below: sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1 I know for sure what "sh... (10 Replies)
Discussion started by: salanalani
10 Replies

6. Shell Programming and Scripting

Difference between ">/dev/null 2>&1" and "2>&1 >/dev/null"

Does >/dev/null 2>&1 and 2>&1 >/dev/null mean the same? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

7. UNIX for Dummies Questions & Answers

/dev/null 2>&1 Versus /dev/null 2>1

How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&" echo "hello" > /dev/null 2>&1 echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies

8. UNIX for Dummies Questions & Answers

/dev/null a file using xargs

Hi, I'm currently using the following command to wipe clean a log file which can't be straight out RM'd: cat /dev/null > server.log I'm building this into a script and I'm current working on a command to run on each machine to do this automatically however I have multiple files so I need... (11 Replies)
Discussion started by: Deehem
11 Replies

9. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies

10. AIX

Housekeeping null 2>&1 in /dev

Hello, Does anyone know how to housekeeping the null 2>&1 file in /dev? its fill up my system, please help. Thanks :b: (3 Replies)
Discussion started by: only
3 Replies
SET_NET_DEFAULT(8)					      System Manager's Manual						SET_NET_DEFAULT(8)

NAME
s_n_d, set_net_default - select the default TCP/IP network SYNOPSIS
set_net_default: not found DESCRIPTION
This manual page is here because so many others refer to it. The set_net_default command does not exist under standard Minix, because the TCP/IP server only supports one network. The server under Minix-vmd supports four different networks, that can each be chosen as the default network. The TCP/IP library and commands do have a notion about a "default network" however, because the code is shared between the Minix versions. So if you want to venture into network programming then you should know about the devices and environment variables mentioned below to make your program compatible. (Especially since there is a plan to upgrade the TCP/IP server for standard Minix.) Options and environment to change the default Many TCP/IP programs implement the following options and environment variables to change the default devices set by set_net_default. The options are only implemented for low level programs where it makes sense to name a network device. The environment variables are used in all code. You can run a process and all its children connected to a different network by setting four environment variables. ETH_DEVICE=device -E device Device to use as raw ethernet device instead of the default /dev/eth. PSIP_DEVICE=device -P device Pseudo IP device to use instead of /dev/psip. IP_DEVICE=device -I device IP device to use instead of /dev/ip. TCP_DEVICE=device -T device TCP device to use. UDP_DEVICE=device -U device UDP device to use. FILES
/dev/eth[01] First and second raw ethernet. /dev/psip[01] First and second Pseudo IP network. /dev/ip[0123] IP devices for two ethernets and two Pseudo IP networks. /dev/tcp[0123] TCP devices for same four networks. /dev/udp[0123] UDP devices. /dev/eth, /dev/psip, /dev/ip, /dev/tcp, /dev/udp Devices for the default network, links to the devices above. Eth is only present if ethernet is the default, psip only for pseudo IP. SEE ALSO
ip(4), boot(8). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) SET_NET_DEFAULT(8)
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy