Sponsored Content
Full Discussion: Grandpa returning to UNIX
Top Forums UNIX for Beginners Questions & Answers Grandpa returning to UNIX Post 303025764 by fossiili on Monday 12th of November 2018 04:49:07 AM
Old 11-12-2018
SOLVED

Thank you! Now I have proceeded in installing NetBSD ver. 7.1.1. It's connected with Internet Smilie

I also know that the next step is by editing the files .profile and .shrc. But there is already the version 8 available so I downloaded
NetBSD64boot.iso and NetBSD-8.0-i386-install.img.gz. I have a really old IBM NetVista pc and it will suit well for terminal work.
So I need some usb-dongle and
cp in=NetBSD-8.0-i386-install.img out=/dev/....
As much as I remember it must in Linux be like /dev/sdc in a computer with two hard disks but where then
Code:
[root@localhost ukki]# ls /dev
autofs           hugepages/          ptp0     sdb1      tty24  tty49    usb/
block/           initctl@            pts/     sdb2      tty25  tty5     userio
bsg/             input/              ram0     shm/      tty26  tty50    vcs
btrfs-control    kmem                ram1     snapshot  tty27  tty51    vcs1
bus/             kmsg                ram10    snd/      tty28  tty52    vcs12
cdrom@           kvm                 ram11    sr0       tty29  tty53    vcs2
cdrw@            lcd2                ram12    stderr@   tty3   tty54    vcs3
char/            lightnvm/           ram13    stdin@    tty30  tty55    vcs4
console          log@                ram14    stdout@   tty31  tty56    vcs5
core@            loop-control        ram15    tty       tty32  tty57    vcs6
cpu/             mapper/             ram2     tty0      tty33  tty58    vcsa
cpu_dma_latency  mei0                ram3     tty1      tty34  tty59    vcsa1
cuse             mem                 ram4     tty10     tty35  tty6     vcsa12
disk/            memory_bandwidth    ram5     tty11     tty36  tty60    vcsa2
dri/             mqueue/             ram6     tty12     tty37  tty61    vcsa3
dvd@             net/                ram7     tty13     tty38  tty62    vcsa4
dvdrw@           network_latency     ram8     tty14     tty39  tty63    vcsa5
fb0              network_throughput  ram9     tty15     tty4   tty7     vcsa6
fd@              null                random   tty16     tty40  tty8     vfio/
full             nvidia0             resume@  tty17     tty41  tty9     vga_arbiter
fuse             nvidiactl           rtc@     tty18     tty42  ttyS0    vhci
gpmctl=          nvram               rtc0     tty19     tty43  ttyS1    vhost-net
hidraw0          pktcdvd/            sda      tty2      tty44  ttyS2    vhost-vsock
hidraw1          port                sda1     tty20     tty45  ttyS3    watchdog
hidraw2          ppp                 sda2     tty21     tty46  uhid     watchdog0
hidraw3          psaux               sda5     tty22     tty47  uinput   zero
hpet             ptmx                sdb      tty23     tty48  urandom
[root@localhost ukki]#

Smilie
 

10 More Discussions You Might Find Interesting

1. Programming

Returning Strings from C program to Unix shell script

Hi, Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string. Is there any way i can return the decrypted string to Unix shell program. My shell script uses the output of the program to... (11 Replies)
Discussion started by: satguyz
11 Replies

2. UNIX for Advanced & Expert Users

pclose returning -1

Hi all, In my application i am trying to select some text & then give it to print. for this i am opening a stream using popen & then later closing using pclose. Now this is working fine in my environment (solaris) but the pclose function is failing at my clients m/c. Even though print is... (3 Replies)
Discussion started by: nimishm123
3 Replies

3. Programming

Returning Strings from C program to Unix shell script

Hi, I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script. I refered a thread in this forum. But using that command in the code, it is throwing an error clear_text_password=$(get_password) Error: bash:... (24 Replies)
Discussion started by: venkatesh_sasi
24 Replies

4. Shell Programming and Scripting

returning from a function

Hi all, I am very new to BASH shell programming. I need to return an integer from a function to the caller function. I did this: but it keeps giving me wrong return: Can someone help me out here, please? Thanks (2 Replies)
Discussion started by: alirezan
2 Replies

5. Red Hat

ps-eo returning wrong value

Hi Need some help, bit of a noobie here. This command work perfectly with unix. returns a value of 1 which is what i want. ps -eo user,comm |grep -v grep |grep -c /path to file When i run the same command on a linux server it returns a value of 0., something maybe wrong with the command.... (4 Replies)
Discussion started by: wneutt
4 Replies

6. Shell Programming and Scripting

how to capture oracle function returning 2 values in unix

i have an oracle function which returns two values, one is the error message if the function encounters anything and another one which returns a number i need to capture both and pass it on to unix shell script how to do it (2 Replies)
Discussion started by: trichyselva
2 Replies

7. Shell Programming and Scripting

Returning -ve value in a pattern

Dear Friends, I need your help once more. I want to write a simple select as follows select amount from books where sr=1234 However, if value of "Amount" is negative then it should print it as follows. "3000-" and not as "-3000" Can you help me in this? Waiting for reply Anu. (2 Replies)
Discussion started by: anushree.a
2 Replies

8. Shell Programming and Scripting

Control from UNIX script is not returning to the Parent program

Hi All, My program flow is as below Windows batch -- > Cygwin batch --> zsh script There are multiple Cygwin batch scripts that are called from Windows batch file . But when i am executing the first cygwin batch script the control goes to the zsh file and executes and stoping from... (1 Reply)
Discussion started by: Hypesslearner
1 Replies

9. Shell Programming and Scripting

Control not returning from Sqlplus to calling UNIX shell script.

Hello All, I have a UNIX script which will prepare anonymous oracle pl/sql block in a temporary file in run time and passes this file to sqlplus as given below. cat > $v_Input_File 2>>$v_Log << EOF BEGIN EXECUTE IMMEDIATE 'ALTER SESSION FORCE PARALLEL DML PARALLEL 16'; EXECUTE... (1 Reply)
Discussion started by: vikas_trl
1 Replies

10. Shell Programming and Scripting

Control not returning from Sqlplus to calling UNIX shell script.

Hello All, I have exactly same issue @vikas_trl had in following link: https://www.unix.com/shell-programming-and-scripting/259854-control-not-returning-sqlplus-calling-unix-shell-script.html I wonder if he or somebody else could find the issue's cause or the solution. Any help would... (4 Replies)
Discussion started by: RicardoQ
4 Replies
VCS(4)							     Linux Programmer's Manual							    VCS(4)

NAME
vcs, vcsa - virtual console memory DESCRIPTION
/dev/vcs0 is a character device with major number 7 and minor number 0, usually of mode 0644 and owner root.tty. It refers to the memory of the currently displayed virtual console terminal. /dev/vcs[1-63] are character devices for virtual console terminals, they have major number 7 and minor number 1 to 63, usually mode 0644 and owner root.tty. /dev/vcsa[0-63] are the same, but using unsigned shorts (in host byte order) that include attributes, and prefixed with four bytes giving the screen dimensions and cursor position: lines, columns, x, y. (x = y = 0 at the top left corner of the screen.) When a 512-character font is loaded, the 9th bit position can be fetched by applying the ioctl(2) VT_GETHIFONTMASK operation (available in Linux kernels 2.6.18 and above) on /dev/tty[1-63]; the value is returned in the unsigned short pointed to by the third ioctl(2) argument. These devices replace the screendump ioctl(2) operations of console(4), so the system administrator can control access using file system permissions. The devices for the first eight virtual consoles may be created by: for x in 0 1 2 3 4 5 6 7 8; do mknod -m 644 /dev/vcs$x c 7 $x; mknod -m 644 /dev/vcsa$x c 7 $[$x+128]; done chown root:tty /dev/vcs* No ioctl(2) requests are supported. FILES
/dev/vcs[0-63] /dev/vcsa[0-63] VERSIONS
Introduced with version 1.1.92 of the Linux kernel. EXAMPLE
You may do a screendump on vt3 by switching to vt1 and typing cat /dev/vcs3 >foo. Note that the output does not contain newline charac- ters, so some processing may be required, like in fold -w 81 /dev/vcs3 | lpr or (horrors) setterm -dump 3 -file /proc/self/fd/1. The /dev/vcsa0 device is used for Braille support. This program displays the character and screen attributes under the cursor of the second virtual console, then changes the background color there: #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/vt.h> int main(void) { int fd; char *device = "/dev/vcsa2"; char *console = "/dev/tty2"; struct {unsigned char lines, cols, x, y;} scrn; unsigned short s; unsigned short mask; unsigned char ch, attrib; fd = open(console, O_RDWR); if (fd < 0) { perror(console); exit(EXIT_FAILURE); } if (ioctl(fd, VT_GETHIFONTMASK, &mask) < 0) { perror("VT_GETHIFONTMASK"); exit(EXIT_FAILURE); } (void) close(fd); fd = open(device, O_RDWR); if (fd < 0) { perror(device); exit(EXIT_FAILURE); } (void) read(fd, &scrn, 4); (void) lseek(fd, 4 + 2*(scrn.y*scrn.cols + scrn.x), 0); (void) read(fd, &s, 2); ch = s & 0xff; if (attrib & mask) ch |= 0x100; attrib = ((s & ~mask) >> 8); printf("ch='%c' attrib=0x%02x ", ch, attrib); attrib ^= 0x10; (void) lseek(fd, -1, 1); (void) write(fd, &attrib, 1); exit(EXIT_SUCCESS); } SEE ALSO
console(4), tty(4), ttyS(4), gpm(8) COLOPHON
This page is part of release 3.25 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 2007-12-17 VCS(4)
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy