Search:

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

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    12
    Views
    441

    [all variants] Re: help with find and grep

    find . -name "*.txt" | xargs grep -Hin 'string1\|string2'
  2. Replies
    6
    Views
    726

    [ubuntu] Re: Logrotate problem

    Files are rotated for multiple reasons like desired periodicity (daily, weekly, monthly, etc) and also the file size. That is, once the file exceeds a certain size, it is rotated. So one thing to...
  3. Replies
    10
    Views
    4,526

    [lubuntu] Re: Execute terminal command at startup

    You can try putting these commands in the .bashrc file in the HOME directory.
  4. Replies
    10
    Views
    1,124

    [ubuntu] Re: rsync bass ackwards

    Once an external drive is connected (mounted) on a computer, you can copy files using rsync in either direction. That is from the local hard disk of the computer to external drive and vice-versa.
    ...
  5. Replies
    4
    Views
    979

    [ubuntu] Re: Meld Diff - directory comparison help?

    From the command line,

    diff -Nur directory-1 directory-2 > differences

    Check the file differences in a text editor for differences between the two directories. For interpretation of diff...
  6. Replies
    3
    Views
    373

    [ubuntu] Re: Adding -lpthread to Complex Makefile

    Put the libraries where you are linking the object files.


    server: server.cc $(OBJFILES)
    $(CC) -o $@ $^ -lpthreads

    client: client.cc $(OBJFILES)
    $(CC) -o $@ $^ -lpthreads
  7. [SOLVED] Re: How to install tar.gz or tar.bz2 files on Ubuntu 12.04

    For tar.gz,

    tar -xvzf filename.tar.gz

    For tar.bz2,

    tar -xvjf filename.tar.bz2
  8. Replies
    11
    Views
    904

    [ubuntu] Re: /var/log taking huge disk space

    For more information about logrotate, refer to the link,

    http://www.softprayog.in/tutorials/logrotate
  9. Replies
    21
    Views
    749

    [SOLVED] Re: vi editor ^v^m lost special meaning

    Try this,

    :1,$s/old-string/new-string/g

    That is,

    :1,$s/G53G28G49Z-\.25/G90G53G49Z0%0d G91G28Z0/g

    1,$ means the entire file (first and the last lines). To work on a part of the file, you...
  10. Replies
    3
    Views
    547

    [SOLVED] Re: Rsync or cp command

    rsync is the preferred command. The following command should be sufficient,

    sudo rsync -avz /server/ /backup/
  11. Replies
    4
    Views
    512

    [lubuntu] Re: Need help fixing the Cmos time.

    The following link gives the details regarding setting the hardware clock:

    http://www.softprayog.in/tutorials/hwclock-the-hardware-clock-query-and-set-program
  12. Replies
    5
    Views
    1,044

    Re: Using top with custom configuration files

    You can link top with some other name. For example,


    ln -s /usr/bin/top topsy
    ./topsy

    Now, top is started with the name topsy, which is shown in top left corner. When you give the W command,...
  13. Replies
    6
    Views
    646

    [ubuntu] Re: storing files outside of /home

    One way is to make another partition, say /home1, at the time of installation and put those files in /home1/username, after setting the user and group ids of /home1/username to that of the current...
  14. Replies
    7
    Views
    508

    [ubuntu] Re: tar and gzip at same time from one command

    In order to use bzip2 for compression, try


    tar -cvjf myfolder.tar.bz2 /path/to/directory
  15. Replies
    9
    Views
    803

    [ubuntu] Re: keeping the same internal IP address

    Instead of DHCP, you can use static IP address set manually. Just click the networking applet icon, edit connections and in the IPV4 settings, change Method to Manual. Enter the address, netmask and...
  16. Replies
    9
    Views
    1,038

    [all variants] Re: cron.daily not running jobs

    Try to rename your script as get_xmltv (leave out the .sh suffix) and see whether that makes a difference.

    anacron and cron use run-parts to execute the scripts in cron.daily. run-parts does not...
  17. [ubuntu] Re: How to copy files/Directory from remote pc ?

    1. rsync is a good command to copy files, locally as well as from remote host.

    2. Using rsync, you can copy entire directory trees from remote host to local host and vice versa.

    The following...
  18. Replies
    3
    Views
    337

    [ubuntu] Re: Beginning pointers

    It is much easier to use the NetworkManager applet in the top panel as compared to editing the /etc/network/interfaces file. Although I am not sure whether it is available in the version you are...
  19. Replies
    17
    Views
    942

    [SOLVED] Re: Help in Shell Scripting

    For substituting the command output in `command`, single back quotes need to be used.


    #!/bin/bash
    echo Enter Sides
    read l
    read b
    area=`expr $l \* $b`
    echo The area of rectangle with sides...
  20. Replies
    6
    Views
    476

    [ubuntu] Re: Backup documents

    rsync is the command by which you can only backup the files which have changed since the last time (rsync) command was run. This link gives the details,
    ...
  21. Replies
    1
    Views
    225

    [ubuntu] Re: Wireless ceased working

    Try the command,

    sudo rfkill unblock all
  22. [SOLVED] Re: Which is better: at, anacron, or fcron/fcronq

    Use anacron. The following link gives more information,

    http://www.softprayog.in/tutorials/anacron
  23. [all variants] Re: Configuring LogRotate for non /var/log logs.

    Try,


    /root/memlog {
    daily
    missingok
    rotate 7
    dateext
    create 640 root root
    }
  24. Replies
    2
    Views
    413

    [SOLVED] Re: Creating a simple Makefile for these files

    # Makefile for DASM

    CC = gcc
    CFLAGS = -O2 -Wall -g $(DEFINES)
    INCPATH = -I.
    LDFLAGS = $(SYSLDFLAGS) $(MYLDFLAGS)
    LIBS = -l$(SYSLIBS) $(MYLIBS)
    RM = rm -f
    HEADERS= dasm.h dprotos.h...
  25. Replies
    5
    Views
    979

    [all variants] Re: NTP / WGET to know the time in Paris?

    There are two parts of the problem. First, finding the current time using the NTP. Second, formatting the time using the date command.

    The current time can be found using the ntpdate command,

    $...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4