0

The first command works, but geany can not open syslog? I am the owner of the copied syslog.

Why is that? The file is only 1.4 Mb.

cp /var/log/syslog /home/andy/Downloads/syslog.txt
geany /home/andy/Downloads/syslog.txt
#rm /home/andy/Downloads/syslog.txt

When geany tries to open it, it just opens a untitled file.

9
  • do you have any error messages? are you running it as user andy? probably a permission issue
    – Cagri
    Sep 9, 2022 at 2:01
  • Does this answer your question? Text editor to edit large (4.3 GB) plain text file
    – karel
    Sep 9, 2022 at 2:11
  • @Cagri Yes, I am running as andy.
    – fixit7
    Sep 9, 2022 at 2:29
  • 1
    From the first sentence of the accepted answer to the linked question: "Another method is to use split. Split the file into 8 pieces and manipulate the files with an editor."
    – karel
    Sep 9, 2022 at 2:59
  • 1
    @fixit7 If the above link answered your question please click the "Yes" option to the right of "Does this answer your question?" in the light blue banner above your question.
    – karel
    Sep 9, 2022 at 3:41

1 Answer 1

0

Rather than spend a long time finding an editor to open a large file, I went with this. The last 1000 lines of syslog are enough to meet my needs.

 cd /home/andy/Downloads
    tail -n 1000 /var/log/syslog > syslog.txt
    geany syslog.txt
    rm syslog.txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .