Linux OS Dev

Kernel programming for Linux operating systems can be done with many different languages; C, C++, Python, Perl and Java, which are some of the most common languages used.There are also many different varieties of Linux, such as Ubuntu, Fedora and OpenSUSE.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello, how can I start a container and open new ports?
0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I have a situation that i have a linux rhel and want to zip up all files that where generated in the last 5 minutes and tar it into one file

I need to do this only in one specific folder

thanks
0
Hi,
how to do vi mode copy paste
what is mt what it means by tick which key i have to press for tick
mt
y tick t

what is keeping in buffer

mt
d tick t

what is d tick t

seems cygwyn not suporting vi.

how to practice vi on any free downloaded software or online.

what is p for paste and u undo commands?

what is map [ j 0.
 map [ j $.
please advise
0
hi,


when ii type below commands i am getting errors with paths

saiganesh@LAPTOP-EJBON1NM ~
$ /etc/vimrc
-bash: /etc/vimrc: No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$ ~/.vimrc
-bash: /home/saiganesh/.vimrc: No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$



can you please advise on how to resolve them.
0
saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
    14072   16116   14072      16120  pty1      197609 23:24:55 /usr/bin/ps
S   14584       1   14584      10368  pty0      197609 22:48:56 /usr/bin/man
S   11244       1   11244      14032  pty0      197609 21:50:41 /usr/bin/cat
S    4288   14584   14584      13752  pty0      197609 22:48:56 /usr/bin/less
    16116   14124   16116       6224  pty1      197609 23:24:48 /usr/bin/bash
    14124       1   14124      14124  ?         197609 23:24:48 /usr/bin/mintty

saiganesh@LAPTOP-EJBON1NM ~
$ kill 16116

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


can you please advise why kill not working as above?
0
saiganesh@LAPTOP-EJBON1NM ~
$ mkdir gp

saiganesh@LAPTOP-EJBON1NM ~
$ cp * gp/
[b]cp: -r not specified; omitting directory 'gp'[/b]

saiganesh@LAPTOP-EJBON1NM ~
$ cd gp

saiganesh@LAPTOP-EJBON1NM ~/gp

Open in new window

why i am geting above error while copying all files to gp directory? please advise
i want to try rm and rmdir also
0
saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$ ls *.txt
test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$ ls *.file
test.file  test2.file  test3.file

saiganesh@LAPTOP-EJBON1NM ~
$ ls ?.file
ls: cannot access '?.file': No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
[b]$ ls ?.fil*
ls: cannot access '?.fil*': No such file or directory
[/b]
saiganesh@LAPTOP-EJBON1NM ~
$ ls ?est.fil*
test.file

saiganesh@LAPTOP-EJBON1NM ~
$ ls ?est*.fil*
test.file  test2.file  test3.file

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


i wonder why above highlighted one not working
please advise
0
saiganesh@LAPTOP-EJBON1NM ~
$ cat>test4.txt
eee
saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$[b] chmod 642 test4.file[/b]
chmod: cannot access 'test4.file': No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
[b]-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt[/b]

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


when i tried as above it is not working in cygwin

when i tried here
https://www.tutorialspoint.com/execute_bash_online.php

it says
$bash -f main.sh
chmod: changing permissions of 'main.sh': Operation not permitted
how to see terminal in above site?

please advise
0
$ cd /home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ls -ltr
total 1
-rw-r--r-- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file

saiganesh@LAPTOP-EJBON1NM ~
$ chmod 0=w test.file
chmod: invalid mode: ‘0=w’
Try 'chmod --help' for more information.

saiganesh@LAPTOP-EJBON1NM ~
$ [b]chmod o=w test.file[/b]

saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 1
-rw-r--[b]-w- 1 saiganesh None 5 Jan 14 21:54 test.file[/b]
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


as aboe i got write on others. But how to get both read and write to others on test,file

please advise
0
saiganesh@LAPTOP-EJBON1NM /bin
$ ls /bin/pwd
/bin/pwd

saiganesh@LAPTOP-EJBON1NM /bin
$ cd /bin

saiganesh@LAPTOP-EJBON1NM /bin
$ pwd
/bin

saiganesh@LAPTOP-EJBON1NM /bin
$ ls
'[.exe'                      fold.exe           ps.exe
 addftinfo.exe               gawk.exe           ptx.exe
 apropos                     gawk-4.2.0.exe     pwd.exe
 arch.exe                    gdiffmk            readlink.exe
 ash.exe                     getconf.exe        readshortcut.exe
 awk                         getent.exe         realpath.exe
 b2sum.exe                   getfacl.exe        rebase.exe
 base32.exe                  getopt.exe         rebaseall
 base64.exe                  gkill.exe          rebaselst
 basename.exe                grap2graph         rebase-trigger
 bash.exe                    grep.exe           refer.exe
 bashbug                     grn.exe            regtool.exe
 bunzip2.exe                 grodvi.exe         rename.exe
 bzcat.exe                   groff.exe          renice.exe
 bzcmp                       grolbp.exe         reset
 bzdiff                      grolj4.exe         rev.exe
 bzegrep                     grops.exe          rm.exe
 bzfgrep                     grotty.exe         rmdir.exe
 bzgrep                      groups.exe         run.exe
 bzip2.exe                   gunzip             runcon.exe
 bzip2recover.exe            gzexe              rvi
 bzless                      gzip.exe           rview
 bzmore                      head.exe         

Open in new window

0
Free Tool: Subnet Calculator
LVL 11
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

hi,

i have installed cygwyn and practicing on my local windows laptop
https://cygwin.com/install.html

i gave commands as below


saiganesh@LAPTOP-EJBON1NM ~
$ whoami
saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ls

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$  cd /

saiganesh@LAPTOP-EJBON1NM /
$ ;s
-bash: syntax error near unexpected token `;'

saiganesh@LAPTOP-EJBON1NM /
$ ls
bin       Cygwin.bat  Cygwin-Terminal.ico  etc   lib   sbin  usr
cygdrive  Cygwin.ico  dev                  home  proc  tmp   var

saiganesh@LAPTOP-EJBON1NM /
$ cd home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ cd ..

saiganesh@LAPTOP-EJBON1NM /home
$ ls
saiganesh


saiganesh@LAPTOP-EJBON1NM /home
$


my question is when i gave cd .. it supposed to go to home right and when i said ls it should have said home instead of saying saiganesh
please advise
0
I am running (first time) a cpanel (cloud Linux) server as a guest on esx6.5.

I want to increase the size of the hard drive, preferably the /home partition.

I know how to increase the hard drive allocated to the guest but what is the appropriate way to resize the visible hard drive on the guest and the  /home partition.

I know I could easily just add a secondary hard drive but would rather resize the /home if possible. Unfortunately my Linux knowledge is 'basic'

Thanks for any help you can provide.

Raoul
0
I am getting this error message, when I was trying to run rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm on Red Hat Linux 7.4 (Kernel version: 3.10.0-693.1.1.el7.x86_64). Can some one let me know what is problem and what should be the proper procedure to fix it. Here is the output mentioned below,

#rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm
Installing lin_tape-3.0.23-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sCvFVM
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.23
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.23.tgz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.23
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KGligF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.23
++ echo x86_64-redhat-linux-gnu
++ cut -f 1 -d -
+ p=x86_64
+ '[' x86_64 == i386 ']'
+ '[' x86_64 == i586 ']'
+ '[' x86_64 == i686 ']'
+ '[' x86_64 == ppc64 ']'
+ '[' x86_64 == powerpc ']'
+ '[' x86_64 == powerpc64 ']'
+ '[' x86_64 == s390 ']'
+ '[' x86_64 == s390x ']'
+ '[' x86_64 == ia64 ']'
+ '[' x86_64 == x86_64 ']'
+ proc=AMD
+ make KERNEL=3.10.0-693.1.1.el7.x86_64 PROC=x86_64 SFMP=0 driver
make: Nothing to be done for `driver'.
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hQeoFx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64 '!=' / ']'
+ rm -rf …
0
I'm trying to run x11vnc with the --passwdfile option. This option sends a challenge string to the VNC client. The client opens a dialog on the user's screen asking for a password. The client then sends the response string back to the VNC server. The VNC server calls the program referenced by the --passwdfile parameter with this string in the following format:

A two-byte length (in this case 16), followed by the challenge string (16 bytes), followed by the response string (16 bytes). What I get back, in hex is:
 0: 0A 6E 65 78 74 0A 31 36 0A 23 36 F4 E1 03 EE 30    .next.16.#6....0
10: 16 85 FC E9 4C F1 F5 16 5C 2C D5 5C 93 C2 21 29    ....L...\,.\..!)
20: 3A DF C2 A2 7C E9 1F 1A D7                         :...|....

Open in new window

The <newline>next<newline> can be ignored as this is debug stuff from my script. The strings are:
Challenge:
23 36 F4 E1 03 EE 30 16 85 FC E9 4C F1 F5 16 5C

Response:
2C D5 5C 93 C2 21 29 3A DF C2 A2 7C E9 1F 1A D7

Open in new window

The manpage defines the response string as, "client's response (i.e. the challenge string encrypted via DES with the user password in the standard situation)." I have no further information or documentation. I assume one must use the challenge string to decode the response string and get the user-entered password, but I've no idea how to do that.
0
hi

How to Make The Text Cursor Automatically when i'm on console text ?
I use directly on boot the tty console and desactivate graphical mode.

Thanks for your reply,

someone talk me about : /etc/inittab, or /etc/fstab
But i don't think it's good idea to modify 2 by 5
0
winscp wht is difference between location profiles and bookmarks

/crm/home/xyz2abc/exp/net/ccfg/crm

i have above book mark
i have to give a name to it saying "server1 config property file path"
i see rename option under location profiles not under bookmarks
but location profile again shows local directory and remote directory
what that means?

i am confused
https://winscp.net/eng/docs/ui_locationprofile
also under book marks what is difference between site book marks and shared book marks

https://winscp.net/eng/docs/ui_opendir

please advise
0
hi,

i created aaa file under gp foler under root of tutorialpoint



sh-4.4$ /bin/bash                                                                                                                                                                            
bash-4.4$ [wd                                                                                                                                                                                
bash: [wd: command not found                                                                                                                                                                
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                                                                                                                                
bash-4.4$ mkdir gp                                                                                                                                                                          
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                          …
0
hi,

what is difference between mv vs cp

when we use which one. any advantage of using one over other

please advise
0
hi,

what is difderence between ls -R vs ls -r

please advise
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

hi,

i got new server ip session. I need to add this to mputty/tabbed puty. How to add it. Please advise step by step procedure for it.
0
As below   recursive search not working for me
http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/

$ grep -r "ramesh" *

please advise
0
winscp shows server name i gave like puppy but not putty or mputty which gives some host name.

how to see in putty /mputty server name at the top of the window as putty not some meaning less host etc thing which i do not understand?
0
I am installing spacewalk on RHEL7.

I was following this article.

https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall

I am getting the following error when i execute,
yum -y install spacewalk-postgresql


Error: Package: jboss-jstl-1.2-api-1.0.3-15.1.el7.noarch (epel)
           Requires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
Error: Package: jboss-jstl-1.2-api-1.0.3-15.1.el7.noarch (epel)
           Requires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
Error: Package: jpam-0.4-28.el7.x86_64 (spacewalk)
           Requires: apache-commons-beanutils
Error: Package: jboss-jsp-2.2-api-1.0.1-15.1.el7.noarch (epel)
           Requires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
Error: Package: spacewalk-jpp-workaround-2.3.5-1.el7.noarch (spacewalk)
           Requires: apache-commons-validator
Error: Package: struts-1.3.10-14.1.el7.noarch (epel)
           Requires: mvn(commons-validator:commons-validator)
Error: Package: apache-commons-chain-1.2-12.1.el7.noarch (epel)
           Requires: mvn(commons-digester:commons-digester)
Error: Package: python-cheetah-2.4.4-4.el7.x86_64 (epel)
           Requires: python-pygments
Error: Package: spacewalk-jpp-workaround-2.3.5-1.el7.noarch (spacewalk)
           Requires: apache-commons-digester
Error: Package: jboss-jsp-2.2-api-1.0.1-15.1.el7.noarch (epel)
           Requires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
Error: Package: …
0
--> Finished Dependency Resolution
Error: Package: spacewalk-taskomatic-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3 >= 3.6.10
           Available: hibernate3-3.2.4-1.SP1_CP01.9.jpp5.noarch (jpackage-generic)
               hibernate3 = 3.2.4-1.SP1_CP01.9.jpp5
Error: Package: spacewalk-java-2.7.115-1.el7.noarch (spacewalk)
           Requires: tomcat-taglibs-standard
Error: Package: spacewalk-java-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: spacewalk-java-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: cglib-2.1.3-4.jpp5.noarch (jpackage-generic)
           Requires: asm >= 1.5.3
           Available: asm-1.5.3-7.jpp5.noarch (jpackage-generic)
               asm = 1.5.3-7.jpp5
Error: Package: spacewalk-taskomatic-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: spacewalk-taskomatic-2.7.115-1.el7.noarch (spacewalk)
           Requires: concurrent >= 1.3.4-21
           Available: concurrent-1.3.4-9.jpp5.noarch (jpackage-generic)
               concurrent = 1.3.4-9.jpp5
Error: Package: spacewalk-java-2.7.115-1.el7.noarch (spacewalk)
           Requires: apache-commons-el
Error: Package: spacewalk-taskomatic-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: spacewalk-java-2.7.115-1.el7.noarch (spacewalk)
           Requires: hibernate3 …
0
good morning

I am currently presenting problems with three virtual servers, with Redhat operating system version 6.6, since it is not loading the operating system correctly and does not finish starting.

Restart the server repeatedly, migrate another host, and the fault persists. Attach pictures of the errors I am observing.

Stay tuned to your comments.

Best regards.
Errores-Linux.docx
0

Linux OS Dev

Kernel programming for Linux operating systems can be done with many different languages; C, C++, Python, Perl and Java, which are some of the most common languages used.There are also many different varieties of Linux, such as Ubuntu, Fedora and OpenSUSE.

Top Experts In
Linux OS Dev
<
Monthly
>