01-10-2002
That is a "Character Special File". In UNIX, everything is a file, The Keyboard, The Mouse, The Printer, .... UNIX communicates with any of these devices in "blocks of bytes" or "byte-by-byte". When it communicates with these devices on "byte-by-byte" basis, the file is a "Character Special File" (Exs: Keyboard, Mouse, ...). See the
/dev directory for a better understanding.
Type
file disk_query to get more information on the file. These files virtually occupy no space.
Quote:
Special files
Special files represent input/output (i/o) devices, like a tty (terminal), a disk drive, or a printer. Because Unix treats such devices as files, a degree of compatibility can be achieved between device i/o, and ordinary file i/o, allowing for the more efficient use of software. Special files can be either character special files, that deal with streams of characters, or block special files, that operate on larger blocks of data. Typical block sizes are 512 bytes, 1024 bytes, and 2048 bytes.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the original one!
... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
2. UNIX for Advanced & Expert Users
I will try to provide as many details as possible but this one has me scratching my head...
A few months ago I was asked to set up a test syslog server for internal use only. I chose to go the following route for simplicity:
1. I used Gentoo Linux so that I could have the most stripped down... (5 Replies)
Discussion started by: deckard
5 Replies
3. AIX
All,
I am trying to copy some data from /admin/reports/Sept/ccn/c_ivsstr01 to /home/users/myhomedir and I am getting an error I have never seen before:
The file access permissions do not allow the specified action.
The permissions on the file are -rw-r--r-- and I am the owner of the file... (3 Replies)
Discussion started by: kjbaumann
3 Replies
4. Programming
Hi All,
I am writing some data's into a file from C++ program. The files which i am writing is of fixed length . say 232 in length per line.
I am writing as . my c code is as
... (0 Replies)
Discussion started by: arunkumar_mca
0 Replies
5. Shell Programming and Scripting
Hi folks
I am facing a strange error while splitting a '|' delimited file 'file1' based on column '3'. (File is 40 columns wide).
I wish to create as many files 'file_n' from the file 'file1' as distinct values of the column '3'; in 'file1'
eg: file1:
qwe|qweqw|123|fg... (3 Replies)
Discussion started by: powerslave
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I need to erase a file called "-f" (minus sign and minus F)
the file inode is 9005 in the root.
Thanks for your help (9 Replies)
Discussion started by: Hexadec
9 Replies
7. Shell Programming and Scripting
hi
i have file (a metadata type file ) in this format
record
string("|") isxml ;
string("|") billing_type ;
string("|") billing_type_desc ;
string("|") ods_create_date ;
string("|") ods_update_date ;
string("|") event_key ;
string("|") target_pid ;
string("|") open_date ;
string("|")... (5 Replies)
Discussion started by: etl_guy
5 Replies
8. UNIX for Dummies Questions & Answers
I have two files
file1.txt
angie
mary
susan
file2.txt
angie blond
mary brunnet
susan red
christine blackI want to get this output
angie blond
mary brunnet
susan redI write
grep --file=file1.txt file2.txtand i get no results
i also wrote
cat file1.txt|while read line... (19 Replies)
Discussion started by: FelipeAd
19 Replies
9. Shell Programming and Scripting
Hello unix users :)
I am trying to grep a string from a file that both the file and the string may have characters in them that are quite... strange, like würzburger.
Well, bash reads this as
W%C3%BCrzburger
For example, if i do
wget W%C3%BCrzburger
the output is:
--2012-01-08... (2 Replies)
Discussion started by: hakermania
2 Replies
10. Solaris
Hello,
I have a x86 Solaris server running on VMWare. c1t0d0 is root disk of 40 GB. I am not able to find, where space is being consumed. It just available space is 2.6 GB only. There is no quota or reservation set. Can somebody give me some pointer to fix it ?
-bash-3.2# zpool list
NAME ... (6 Replies)
Discussion started by: solaris_1977
6 Replies
UNAME(1) BSD General Commands Manual UNAME(1)
NAME
uname -- Print operating system name
SYNOPSIS
uname [-amnprsv]
DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output.
The following options are available:
-a Behave as though all of the options -mnrsv were specified.
-m print the machine hardware name.
-n print the nodename (the nodename may be a name that the system is known by to a communications network).
-p print the machine processor architecture name.
-r print the operating system release.
-s print the operating system name.
-v print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.
SEE ALSO
hostname(1), machine(1), sw_vers(1), uname(3)
STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard.
BSD
November 9, 1998 BSD