Find the answer to your Linux question:

Search:

Type: Posts; User: alf55; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Alias help

    by alf55
    Replies
    3
    Views
    14,913

    Simple is to run "fred": In the directory...

    Simple is to run "fred":

    In the directory containing "fred.XXX" versions add the following script named fred (same name as the versioned files):


    cat <<'@EOF' > /tmp/fred
    #!/bin/bash
    #...
  2. I use Gentoo (have been since 2007; however,...

    I use Gentoo (have been since 2007; however, linux user since kernel was at 0.98).

    Current notebook:


    Core i7 Skylake (i7-6700K)
    64G memory
    512MB SSD
    dual 2TB hard drives
    NVIDIA...
  3. Replies
    2
    Views
    2,638

    set root=(hd1,2) says that you will find grub...

    set root=(hd1,2)

    says that you will find grub on the first hardrive on the second partition (/dev/sda2)


    linux /vmlinuz root=/dev/sda2

    is stating that kernel is a file called "vmlinuz" and...
  4. Replies
    1
    Views
    2,567

    Have you looked at: Recipes...

    Have you looked at: Recipes?
  5. Replies
    1
    Views
    1,093

    (printf "how many files = " ; find . -type f | wc...

    (printf "how many files = " ; find . -type f | wc -l) >> oo.txt

    # or

    echo "how many files = $(find . -type f | wc -l)" >> oo.txt

    # or

    printf "how many files = %s\n" "$(find . -type f |...
  6. Replies
    1
    Views
    4,177

    VirtualManger uses the owner 'qemu' in most of...

    VirtualManger uses the owner 'qemu' in most of its installations. They should be using "group" access but they do not and writes will change ownership to user 'qemu'. I use a spreadsheet (with a csv...
  7. Replies
    1
    Views
    3,851

    With gparted (make a gpt label and then partition...

    With gparted (make a gpt label and then partition normally). Here is an example of using parted.



    parted /dev/XXXX
    mklabel gpt
    mkpart gptbios ext2 1024kiB 3.00MiB
    toggle 1 bios_grub...
  8. I think that you do not have the partition...

    I think that you do not have the partition mounted or you are getting an error when logining in. Since you can log in as root , do that then do


    su -u yourusernamethatfails -

    Do you get an...
  9. Replies
    9
    Views
    3,894

    [SOLVED] The problem is that you need to use ...

    The problem is that you need to use


    ${var[index]}

    When you need the value. Such as


    echo "passarg: argv[1] = ${argv[1]} argv[2] = ${argv[2]}"
  10. Replies
    1
    Views
    1,721

    This has a Core2 Duo which means that you should...

    This has a Core2 Duo which means that you should be loading a Linux "amd64" and not a the "x64" as the Core2 Duo implemented the AMD instruction set (AMD won the 64-bit war with Intel). The "x64" is...
  11. Replies
    1
    Views
    2,549

    Most likely because you do not have the correct...

    Most likely because you do not have the correct "TERM" environment variable set (or you are connecting to a serial console). It thinks that the screen is 24 rows of 80 characters and it simply...
  12. Replies
    3
    Views
    17,935

    [SOLVED] The usage of "chroot" the system can only see...

    The usage of "chroot" the system can only see stuff in the directory tree starting at the directory used on the "chroot" command.

    Say that you had the command:


    chroot /some/path/sprecified
    ...
  13. That information is all in the header section of...

    That information is all in the header section of an email. Most email clients normally do not show this information since the 1990s. Some email clients allow you to see the headers by various...
  14. code] filelist=( $(ls -1...

    code]
    filelist=( $(ls -1 /u01/app/oracle//diag/asm/+asm[0-9]*/+[0-9]ASM/alert*) )
    echo files that matched:
    printf " %s\n" "${filelist[@]}"
    [/code]
  15. Replies
    3
    Views
    963

    You did day what you are looking for besides the...

    You did day what you are looking for besides the block device being there.

    You should look into the commands:

    file -s /dev/sdX
    blockdev --report
    lsblk
  16. Replies
    3
    Views
    935

    Windows computers generally come with recovery...

    Windows computers generally come with recovery partitions (hidden) that allow you to reset your computer back to its factory default state without juggling discs. The recovery partition allows you to...
  17. Do you have the needed firmware. Check the...

    Do you have the needed firmware. Check the output of "dmesg" for errors for the WIFI device. If you do not have the firmware, checkout
    Linux* Support for Intel® Wireless Adapters
  18. Replies
    2
    Views
    1,089

    if you have a SSH connection, you have a SCP...

    if you have a SSH connection, you have a SCP connection. Also one can use SSH in this fashion from the client:


    ssh user@host 'cd /some/path && tar cf - file1 ./../path2/file2 ...' | (cd...
  19. # path starts with joe... cd /home tar -cpvzf...

    # path starts with joe...
    cd /home
    tar -cpvzf /mnt/mybackup_Folder/back_joe.tar.gz joe

    #
    path starts within joe...
    cd /home/joe
    tar -cpvzf /mnt/mybackup_Folder/back_joe.tar.gz * .*
  20. first of all bash does not allow spaces in...

    first of all bash does not allow spaces in variable names. Also you will need to research the bash manual for regular expression compares as you to determine if the line contains the "word" and then...
  21. [SOLVED] I did know if you meant for the space after the T...

    I did know if you meant for the space after the T at the end,



    bash$ echo 'HISTTIMEFORMAT="%d/%m/%y %T "' >> /tmp/fred
    bash$ cat /tmp/fred
    HISTTIMEFORMAT="%d/%m/%y %T "
    bash$
  22. How about a single line command (assume that the...

    How about a single line command (assume that the file containing the file names is called "music_titles at does not contain characters that need to be back-quoted")?


    source <( paste <(printf...
  23. [SOLVED] Use echo 'HISTTIMEFORMAT="%d/%m/%y %T "' >> ...

    Use


    echo 'HISTTIMEFORMAT="%d/%m/%y %T "' >> .bash_profile

    or


    echo "ISTTIMEFORMAT=\"%d/%m/%y %T \"" >> .bash_profile
  24. The "public part" is the part that you share. ...

    The "public part" is the part that you share. The "private part" you keep to yourself. Hence the use of "PRIVATE" and "PUBLIC" (although the ext for the "PUBLIC part contains only "pub").

    So...
  25. Replies
    5
    Views
    1,571

    d i t t o .

    d i t t o .
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4